{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "dcded768",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Variables de entorno cargadas.\n"
     ]
    }
   ],
   "source": [
    "import { load } from \"https://deno.land/std@0.224.0/dotenv/mod.ts\";\n",
    "\n",
    "// Carga el .env en Deno.env (envuelto en try-catch)\n",
    "try {\n",
    "  // Intentamos cargar y exportar las variables de entorno\n",
    "  await load({ export: true });\n",
    "  console.log(\"Variables de entorno cargadas.\");\n",
    "} catch (e) {\n",
    "  console.log(\"No se pudo cargar las variables de entorno (.env)\");\n",
    "}\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "id": "009c2b89",
   "metadata": {},
   "outputs": [],
   "source": [
    "async function buscarBibliografia(query) {\n",
    "  // maxResults define cuántos libros quieres obtener (máximo 40)\n",
    "  const url = `https://www.googleapis.com/books/v1/volumes?q=${\n",
    "    encodeURIComponent(query)\n",
    "  }&maxResults=10`;\n",
    "\n",
    "  try {\n",
    "    const response = await fetch(url);\n",
    "    if (!response.ok) {\n",
    "      throw new Error(`Error en la petición: ${response.status}`);\n",
    "    }\n",
    "\n",
    "    const data = await response.json();\n",
    "\n",
    "    if (!data.items) return []; // Retorna vacío si no hay resultados\n",
    "\n",
    "    // Mapeamos el JSON para extraer solo la información útil para el RAG\n",
    "    const libros = data.items.map((item) => {\n",
    "      return {\n",
    "        ...item,\n",
    "      };\n",
    "    });\n",
    "\n",
    "    return libros;\n",
    "  } catch (error) {\n",
    "    console.error(\"Hubo un error con la API de Google Books:\", error);\n",
    "    return [];\n",
    "  }\n",
    "}\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "id": "2c41fa30",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Promise { \u001b[36m<pending>\u001b[39m }"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "[\n",
      "  {\n",
      "    \"kind\": \"books#volume\",\n",
      "    \"id\": \"EX2LNkSqViUC\",\n",
      "    \"etag\": \"kcJzqQBaPHY\",\n",
      "    \"selfLink\": \"https://www.googleapis.com/books/v1/volumes/EX2LNkSqViUC\",\n",
      "    \"volumeInfo\": {\n",
      "      \"title\": \"CUDA Programming\",\n",
      "      \"subtitle\": \"A Developer's Guide to Parallel Computing with GPUs\",\n",
      "      \"authors\": [\n",
      "        \"Shane Cook\"\n",
      "      ],\n",
      "      \"publisher\": \"Newnes\",\n",
      "      \"publishedDate\": \"2012-12-28\",\n",
      "      \"description\": \"If you need to learn CUDA but don't have experience with parallel computing, CUDA Programming: A Developer's Introduction offers a detailed guide to CUDA with a grounding in parallel fundamentals. It starts by introducing CUDA and bringing you up to speed on GPU parallelism and hardware, then delving into CUDA installation. Chapters on core concepts including threads, blocks, grids, and memory focus on both parallel and CUDA-specific issues. Later, the book demonstrates CUDA in practice for optimizing applications, adjusting to new hardware, and solving common problems. - Comprehensive introduction to parallel programming with CUDA, for readers new to both - Detailed instructions help readers optimize the CUDA software development kit - Practical techniques illustrate working with memory, threads, algorithms, resources, and more - Covers CUDA on multiple hardware platforms: Mac, Linux and Windows with several NVIDIA chipsets - Each chapter includes exercises to test reader knowledge\",\n",
      "      \"industryIdentifiers\": [\n",
      "        {\n",
      "          \"type\": \"ISBN_13\",\n",
      "          \"identifier\": \"9780124159884\"\n",
      "        },\n",
      "        {\n",
      "          \"type\": \"ISBN_10\",\n",
      "          \"identifier\": \"0124159885\"\n",
      "        }\n",
      "      ],\n",
      "      \"readingModes\": {\n",
      "        \"text\": true,\n",
      "        \"image\": true\n",
      "      },\n",
      "      \"pageCount\": 591,\n",
      "      \"printType\": \"BOOK\",\n",
      "      \"categories\": [\n",
      "        \"Computers\"\n",
      "      ],\n",
      "      \"averageRating\": 1,\n",
      "      \"ratingsCount\": 1,\n",
      "      \"maturityRating\": \"NOT_MATURE\",\n",
      "      \"allowAnonLogging\": true,\n",
      "      \"contentVersion\": \"1.5.5.0.preview.3\",\n",
      "      \"panelizationSummary\": {\n",
      "        \"containsEpubBubbles\": false,\n",
      "        \"containsImageBubbles\": false\n",
      "      },\n",
      "      \"imageLinks\": {\n",
      "        \"smallThumbnail\": \"http://books.google.com/books/content?id=EX2LNkSqViUC&printsec=frontcover&img=1&zoom=5&edge=curl&source=gbs_api\",\n",
      "        \"thumbnail\": \"http://books.google.com/books/content?id=EX2LNkSqViUC&printsec=frontcover&img=1&zoom=1&edge=curl&source=gbs_api\"\n",
      "      },\n",
      "      \"language\": \"en\",\n",
      "      \"previewLink\": \"http://books.google.com.mx/books?id=EX2LNkSqViUC&printsec=frontcover&dq=CUDA+Programming&hl=&cd=1&source=gbs_api\",\n",
      "      \"infoLink\": \"https://play.google.com/store/books/details?id=EX2LNkSqViUC&source=gbs_api\",\n",
      "      \"canonicalVolumeLink\": \"https://play.google.com/store/books/details?id=EX2LNkSqViUC\"\n",
      "    },\n",
      "    \"saleInfo\": {\n",
      "      \"country\": \"MX\",\n",
      "      \"saleability\": \"FOR_SALE\",\n",
      "      \"isEbook\": true,\n",
      "      \"listPrice\": {\n",
      "        \"amount\": 664,\n",
      "        \"currencyCode\": \"MXN\"\n",
      "      },\n",
      "      \"retailPrice\": {\n",
      "        \"amount\": 664,\n",
      "        \"currencyCode\": \"MXN\"\n",
      "      },\n",
      "      \"buyLink\": \"https://play.google.com/store/books/details?id=EX2LNkSqViUC&rdid=book-EX2LNkSqViUC&rdot=1&source=gbs_api\",\n",
      "      \"offers\": [\n",
      "        {\n",
      "          \"finskyOfferType\": 1,\n",
      "          \"listPrice\": {\n",
      "            \"amountInMicros\": 664000000,\n",
      "            \"currencyCode\": \"MXN\"\n",
      "          },\n",
      "          \"retailPrice\": {\n",
      "            \"amountInMicros\": 664000000,\n",
      "            \"currencyCode\": \"MXN\"\n",
      "          },\n",
      "          \"giftable\": true\n",
      "        }\n",
      "      ]\n",
      "    },\n",
      "    \"accessInfo\": {\n",
      "      \"country\": \"MX\",\n",
      "      \"viewability\": \"PARTIAL\",\n",
      "      \"embeddable\": true,\n",
      "      \"publicDomain\": false,\n",
      "      \"textToSpeechPermission\": \"ALLOWED\",\n",
      "      \"epub\": {\n",
      "        \"isAvailable\": true,\n",
      "        \"acsTokenLink\": \"http://books.google.com.mx/books/download/CUDA_Programming-sample-epub.acsm?id=EX2LNkSqViUC&format=epub&output=acs4_fulfillment_token&dl_type=sample&source=gbs_api\"\n",
      "      },\n",
      "      \"pdf\": {\n",
      "        \"isAvailable\": true,\n",
      "        \"acsTokenLink\": \"http://books.google.com.mx/books/download/CUDA_Programming-sample-pdf.acsm?id=EX2LNkSqViUC&format=pdf&output=acs4_fulfillment_token&dl_type=sample&source=gbs_api\"\n",
      "      },\n",
      "      \"webReaderLink\": \"http://play.google.com/books/reader?id=EX2LNkSqViUC&hl=&source=gbs_api\",\n",
      "      \"accessViewStatus\": \"SAMPLE\",\n",
      "      \"quoteSharingAllowed\": false\n",
      "    },\n",
      "    \"searchInfo\": {\n",
      "      \"textSnippet\": \"Later, the book demonstrates CUDA in practice for optimizing applications, adjusting to new hardware, and solving common problems.\"\n",
      "    }\n",
      "  },\n",
      "  {\n",
      "    \"kind\": \"books#volume\",\n",
      "    \"id\": \"BkAyEAAAQBAJ\",\n",
      "    \"etag\": \"AbjfVVyvwFE\",\n",
      "    \"selfLink\": \"https://www.googleapis.com/books/v1/volumes/BkAyEAAAQBAJ\",\n",
      "    \"volumeInfo\": {\n",
      "      \"title\": \"Multicore and GPU Programming\",\n",
      "      \"subtitle\": \"An Integrated Approach\",\n",
      "      \"authors\": [\n",
      "        \"Gerassimos Barlas\"\n",
      "      ],\n",
      "      \"publisher\": \"Morgan Kaufmann\",\n",
      "      \"publishedDate\": \"2022-02-09\",\n",
      "      \"description\": \"Multicore and GPU Programming: An Integrated Approach, Second Edition offers broad coverage of key parallel computing tools, essential for multi-core CPU programming and many-core \\\"massively parallel\\\" computing. Using threads, OpenMP, MPI, CUDA and other state-of-the-art tools, the book teaches the design and development of software capable of taking advantage of modern computing platforms that incorporate CPUs, GPUs and other accelerators. Presenting material refined over more than two decades of teaching parallel computing, author Gerassimos Barlas minimizes the challenge of transitioning from sequential programming to mastering parallel platforms with multiple examples, extensive case studies, and full source code. By using this book, readers will better understand how to develop programs that run over distributed memory machines using MPI, create multi-threaded applications with either libraries or directives, write optimized applications that balance the workload between available computing resources, and profile and debug programs targeting parallel machines. - Includes comprehensive coverage of all major multi-core and many-core programming tools and platforms, including threads, OpenMP, MPI, CUDA, OpenCL and Thrust - Covers the most recent versions of the above at the time of publication - Demonstrates parallel programming design patterns and examples of how different tools and paradigms can be integrated for superior performance - Updates in the second edition include the use of the C++17 standard for all sample code, a new chapter on concurrent data structures, a new chapter on OpenCL, and the latest research on load balancing - Includes downloadable source code, examples and instructor support materials on the book's companion website\",\n",
      "      \"industryIdentifiers\": [\n",
      "        {\n",
      "          \"type\": \"ISBN_13\",\n",
      "          \"identifier\": \"9780128141212\"\n",
      "        },\n",
      "        {\n",
      "          \"type\": \"ISBN_10\",\n",
      "          \"identifier\": \"0128141212\"\n",
      "        }\n",
      "      ],\n",
      "      \"readingModes\": {\n",
      "        \"text\": true,\n",
      "        \"image\": true\n",
      "      },\n",
      "      \"pageCount\": 1026,\n",
      "      \"printType\": \"BOOK\",\n",
      "      \"categories\": [\n",
      "        \"Computers\"\n",
      "      ],\n",
      "      \"maturityRating\": \"NOT_MATURE\",\n",
      "      \"allowAnonLogging\": false,\n",
      "      \"contentVersion\": \"2.5.5.0.preview.3\",\n",
      "      \"panelizationSummary\": {\n",
      "        \"containsEpubBubbles\": false,\n",
      "        \"containsImageBubbles\": false\n",
      "      },\n",
      "      \"imageLinks\": {\n",
      "        \"smallThumbnail\": \"http://books.google.com/books/content?id=BkAyEAAAQBAJ&printsec=frontcover&img=1&zoom=5&edge=curl&source=gbs_api\",\n",
      "        \"thumbnail\": \"http://books.google.com/books/content?id=BkAyEAAAQBAJ&printsec=frontcover&img=1&zoom=1&edge=curl&source=gbs_api\"\n",
      "      },\n",
      "      \"language\": \"en\",\n",
      "      \"previewLink\": \"http://books.google.com.mx/books?id=BkAyEAAAQBAJ&pg=PA392&dq=CUDA+Programming&hl=&cd=2&source=gbs_api\",\n",
      "      \"infoLink\": \"https://play.google.com/store/books/details?id=BkAyEAAAQBAJ&source=gbs_api\",\n",
      "      \"canonicalVolumeLink\": \"https://play.google.com/store/books/details?id=BkAyEAAAQBAJ\"\n",
      "    },\n",
      "    \"saleInfo\": {\n",
      "      \"country\": \"MX\",\n",
      "      \"saleability\": \"FOR_SALE\",\n",
      "      \"isEbook\": true,\n",
      "      \"listPrice\": {\n",
      "        \"amount\": 1170,\n",
      "        \"currencyCode\": \"MXN\"\n",
      "      },\n",
      "      \"retailPrice\": {\n",
      "        \"amount\": 1170,\n",
      "        \"currencyCode\": \"MXN\"\n",
      "      },\n",
      "      \"buyLink\": \"https://play.google.com/store/books/details?id=BkAyEAAAQBAJ&rdid=book-BkAyEAAAQBAJ&rdot=1&source=gbs_api\",\n",
      "      \"offers\": [\n",
      "        {\n",
      "          \"finskyOfferType\": 1,\n",
      "          \"listPrice\": {\n",
      "            \"amountInMicros\": 1170000000,\n",
      "            \"currencyCode\": \"MXN\"\n",
      "          },\n",
      "          \"retailPrice\": {\n",
      "            \"amountInMicros\": 1170000000,\n",
      "            \"currencyCode\": \"MXN\"\n",
      "          },\n",
      "          \"giftable\": true\n",
      "        }\n",
      "      ]\n",
      "    },\n",
      "    \"accessInfo\": {\n",
      "      \"country\": \"MX\",\n",
      "      \"viewability\": \"PARTIAL\",\n",
      "      \"embeddable\": true,\n",
      "      \"publicDomain\": false,\n",
      "      \"textToSpeechPermission\": \"ALLOWED\",\n",
      "      \"epub\": {\n",
      "        \"isAvailable\": true,\n",
      "        \"acsTokenLink\": \"http://books.google.com.mx/books/download/Multicore_and_GPU_Programming-sample-epub.acsm?id=BkAyEAAAQBAJ&format=epub&output=acs4_fulfillment_token&dl_type=sample&source=gbs_api\"\n",
      "      },\n",
      "      \"pdf\": {\n",
      "        \"isAvailable\": true,\n",
      "        \"acsTokenLink\": \"http://books.google.com.mx/books/download/Multicore_and_GPU_Programming-sample-pdf.acsm?id=BkAyEAAAQBAJ&format=pdf&output=acs4_fulfillment_token&dl_type=sample&source=gbs_api\"\n",
      "      },\n",
      "      \"webReaderLink\": \"http://play.google.com/books/reader?id=BkAyEAAAQBAJ&hl=&source=gbs_api\",\n",
      "      \"accessViewStatus\": \"SAMPLE\",\n",
      "      \"quoteSharingAllowed\": false\n",
      "    },\n",
      "    \"searchInfo\": {\n",
      "      \"textSnippet\": \"... programming. Since the OpenMP 4.0 specification published in 2013, it can also target GPUs. OpenMP is covered in Chapter 8. • OpenACC: An open ... <b>GPU programming</b>: CUDA 6.2 <b>CUDA&#39;s programming</b> model: threads, blocks, and grids.\"\n",
      "    }\n",
      "  },\n",
      "  {\n",
      "    \"kind\": \"books#volume\",\n",
      "    \"id\": \"hI14CgAAQBAJ\",\n",
      "    \"etag\": \"fI7TnUzZENs\",\n",
      "    \"selfLink\": \"https://www.googleapis.com/books/v1/volumes/hI14CgAAQBAJ\",\n",
      "    \"volumeInfo\": {\n",
      "      \"title\": \"GPU Programming in MATLAB\",\n",
      "      \"authors\": [\n",
      "        \"Nikolaos Ploskas\",\n",
      "        \"Nikolaos Samaras\"\n",
      "      ],\n",
      "      \"publisher\": \"Morgan Kaufmann\",\n",
      "      \"publishedDate\": \"2016-08-25\",\n",
      "      \"description\": \"GPU programming in MATLAB is intended for scientists, engineers, or students who develop or maintain applications in MATLAB and would like to accelerate their codes using GPU programming without losing the many benefits of MATLAB. The book starts with coverage of the Parallel Computing Toolbox and other MATLAB toolboxes for GPU computing, which allow applications to be ported straightforwardly onto GPUs without extensive knowledge of GPU programming. The next part covers built-in, GPU-enabled features of MATLAB, including options to leverage GPUs across multicore or different computer systems. Finally, advanced material includes CUDA code in MATLAB and optimizing existing GPU applications. Throughout the book, examples and source codes illustrate every concept so that readers can immediately apply them to their own development. - Provides in-depth, comprehensive coverage of GPUs with MATLAB, including the parallel computing toolbox and built-in features for other MATLAB toolboxes - Explains how to accelerate computationally heavy applications in MATLAB without the need to re-write them in another language - Presents case studies illustrating key concepts across multiple fields - Includes source code, sample datasets, and lecture slides\",\n",
      "      \"industryIdentifiers\": [\n",
      "        {\n",
      "          \"type\": \"ISBN_13\",\n",
      "          \"identifier\": \"9780128051337\"\n",
      "        },\n",
      "        {\n",
      "          \"type\": \"ISBN_10\",\n",
      "          \"identifier\": \"0128051337\"\n",
      "        }\n",
      "      ],\n",
      "      \"readingModes\": {\n",
      "        \"text\": true,\n",
      "        \"image\": true\n",
      "      },\n",
      "      \"pageCount\": 320,\n",
      "      \"printType\": \"BOOK\",\n",
      "      \"categories\": [\n",
      "        \"Computers\"\n",
      "      ],\n",
      "      \"maturityRating\": \"NOT_MATURE\",\n",
      "      \"allowAnonLogging\": false,\n",
      "      \"contentVersion\": \"1.3.3.0.preview.3\",\n",
      "      \"panelizationSummary\": {\n",
      "        \"containsEpubBubbles\": false,\n",
      "        \"containsImageBubbles\": false\n",
      "      },\n",
      "      \"imageLinks\": {\n",
      "        \"smallThumbnail\": \"http://books.google.com/books/content?id=hI14CgAAQBAJ&printsec=frontcover&img=1&zoom=5&edge=curl&source=gbs_api\",\n",
      "        \"thumbnail\": \"http://books.google.com/books/content?id=hI14CgAAQBAJ&printsec=frontcover&img=1&zoom=1&edge=curl&source=gbs_api\"\n",
      "      },\n",
      "      \"language\": \"en\",\n",
      "      \"previewLink\": \"http://books.google.com.mx/books?id=hI14CgAAQBAJ&pg=PA199&dq=CUDA+Programming&hl=&cd=3&source=gbs_api\",\n",
      "      \"infoLink\": \"https://play.google.com/store/books/details?id=hI14CgAAQBAJ&source=gbs_api\",\n",
      "      \"canonicalVolumeLink\": \"https://play.google.com/store/books/details?id=hI14CgAAQBAJ\"\n",
      "    },\n",
      "    \"saleInfo\": {\n",
      "      \"country\": \"MX\",\n",
      "      \"saleability\": \"FOR_SALE\",\n",
      "      \"isEbook\": true,\n",
      "      \"listPrice\": {\n",
      "        \"amount\": 797,\n",
      "        \"currencyCode\": \"MXN\"\n",
      "      },\n",
      "      \"retailPrice\": {\n",
      "        \"amount\": 797,\n",
      "        \"currencyCode\": \"MXN\"\n",
      "      },\n",
      "      \"buyLink\": \"https://play.google.com/store/books/details?id=hI14CgAAQBAJ&rdid=book-hI14CgAAQBAJ&rdot=1&source=gbs_api\",\n",
      "      \"offers\": [\n",
      "        {\n",
      "          \"finskyOfferType\": 1,\n",
      "          \"listPrice\": {\n",
      "            \"amountInMicros\": 797000000,\n",
      "            \"currencyCode\": \"MXN\"\n",
      "          },\n",
      "          \"retailPrice\": {\n",
      "            \"amountInMicros\": 797000000,\n",
      "            \"currencyCode\": \"MXN\"\n",
      "          },\n",
      "          \"giftable\": true\n",
      "        }\n",
      "      ]\n",
      "    },\n",
      "    \"accessInfo\": {\n",
      "      \"country\": \"MX\",\n",
      "      \"viewability\": \"PARTIAL\",\n",
      "      \"embeddable\": true,\n",
      "      \"publicDomain\": false,\n",
      "      \"textToSpeechPermission\": \"ALLOWED\",\n",
      "      \"epub\": {\n",
      "        \"isAvailable\": true,\n",
      "        \"acsTokenLink\": \"http://books.google.com.mx/books/download/GPU_Programming_in_MATLAB-sample-epub.acsm?id=hI14CgAAQBAJ&format=epub&output=acs4_fulfillment_token&dl_type=sample&source=gbs_api\"\n",
      "      },\n",
      "      \"pdf\": {\n",
      "        \"isAvailable\": true,\n",
      "        \"acsTokenLink\": \"http://books.google.com.mx/books/download/GPU_Programming_in_MATLAB-sample-pdf.acsm?id=hI14CgAAQBAJ&format=pdf&output=acs4_fulfillment_token&dl_type=sample&source=gbs_api\"\n",
      "      },\n",
      "      \"webReaderLink\": \"http://play.google.com/books/reader?id=hI14CgAAQBAJ&hl=&source=gbs_api\",\n",
      "      \"accessViewStatus\": \"SAMPLE\",\n",
      "      \"quoteSharingAllowed\": false\n",
      "    },\n",
      "    \"searchInfo\": {\n",
      "      \"textSnippet\": \"Nikolaos Ploskas, Nikolaos Samaras. Run. <b>CUDA</b>. or. PTX. code. CHAPTER. 7. CHAPTER. OBJECTIVES. This Chapter explains how to create an executable kernel for a <b>CUDA</b> C code or PTX code and run that kernel on a <b>GPU</b> by calling it through MATLAB&nbsp;...\"\n",
      "    }\n",
      "  },\n",
      "  {\n",
      "    \"kind\": \"books#volume\",\n",
      "    \"id\": \"3b63x-0P3_UC\",\n",
      "    \"etag\": \"ifkwaiKEUq0\",\n",
      "    \"selfLink\": \"https://www.googleapis.com/books/v1/volumes/3b63x-0P3_UC\",\n",
      "    \"volumeInfo\": {\n",
      "      \"title\": \"Computer Organization and Design\",\n",
      "      \"subtitle\": \"The Hardware/Software Interface\",\n",
      "      \"authors\": [\n",
      "        \"David A. Patterson\",\n",
      "        \"John L. Hennessy\"\n",
      "      ],\n",
      "      \"publisher\": \"Morgan Kaufmann\",\n",
      "      \"publishedDate\": \"2008-11-17\",\n",
      "      \"description\": \"Computer Organization and Design, Fourth Edition, provides a new focus on the revolutionary change taking place in industry today: the switch from uniprocessor to multicore microprocessors. This new emphasis on parallelism is supported by updates reflecting the newest technologies with examples highlighting the latest processor designs, benchmarking standards, languages and tools. As with previous editions, a MIPS processor is the core used to present the fundamentals of hardware technologies, assembly language, computer arithmetic, pipelining, memory hierarchies and I/O. Along with its increased coverage of parallelism, this new edition offers new content on Flash memory and virtual machines as well as a new and important appendix written by industry experts covering the emergence and importance of the modern GPU (graphics processing unit), the highly parallel, highly multithreaded multiprocessor optimized for visual computing. This book contains a new exercise paradigm that allows instructors to reconfigure the 600 exercises included in the book to generate new exercises and solutions of their own. The companion CD provides a toolkit of simulators and compilers along with tutorials for using them as well as advanced content for further study and a search utility for finding content on the CD and in the printed text. This text is designed for professional digital system designers, programmers, application developers, and system software developers as well as undergraduate students in Computer Science, Computer Engineering and Electrical Engineering courses in Computer Organization, Computer Design. A new exercise paradigm allows instructors to reconfigure the 600 exercises included in the book to easily generate new exercises and solutions of their own. The companion CD provides a toolkit of simulators and compilers along with tutorials for using them, as well as advanced content for further study and a search utility for finding content on the CD and in the printed text. For the convenience of readers who have purchased an ebook edition or who may have misplaced the CD-ROM, all CD content is available as a download at http://bit.ly/12XinUx.\",\n",
      "      \"industryIdentifiers\": [\n",
      "        {\n",
      "          \"type\": \"ISBN_13\",\n",
      "          \"identifier\": \"9780080922812\"\n",
      "        },\n",
      "        {\n",
      "          \"type\": \"ISBN_10\",\n",
      "          \"identifier\": \"0080922813\"\n",
      "        }\n",
      "      ],\n",
      "      \"readingModes\": {\n",
      "        \"text\": false,\n",
      "        \"image\": true\n",
      "      },\n",
      "      \"pageCount\": 913,\n",
      "      \"printType\": \"BOOK\",\n",
      "      \"categories\": [\n",
      "        \"Computers\"\n",
      "      ],\n",
      "      \"averageRating\": 3.5,\n",
      "      \"ratingsCount\": 4,\n",
      "      \"maturityRating\": \"NOT_MATURE\",\n",
      "      \"allowAnonLogging\": true,\n",
      "      \"contentVersion\": \"2.3.1.0.preview.1\",\n",
      "      \"panelizationSummary\": {\n",
      "        \"containsEpubBubbles\": false,\n",
      "        \"containsImageBubbles\": false\n",
      "      },\n",
      "      \"imageLinks\": {\n",
      "        \"smallThumbnail\": \"http://books.google.com/books/content?id=3b63x-0P3_UC&printsec=frontcover&img=1&zoom=5&edge=curl&source=gbs_api\",\n",
      "        \"thumbnail\": \"http://books.google.com/books/content?id=3b63x-0P3_UC&printsec=frontcover&img=1&zoom=1&edge=curl&source=gbs_api\"\n",
      "      },\n",
      "      \"language\": \"en\",\n",
      "      \"previewLink\": \"http://books.google.com.mx/books?id=3b63x-0P3_UC&pg=SL1-PA17&dq=CUDA+Programming&hl=&cd=4&source=gbs_api\",\n",
      "      \"infoLink\": \"https://play.google.com/store/books/details?id=3b63x-0P3_UC&source=gbs_api\",\n",
      "      \"canonicalVolumeLink\": \"https://play.google.com/store/books/details?id=3b63x-0P3_UC\"\n",
      "    },\n",
      "    \"saleInfo\": {\n",
      "      \"country\": \"MX\",\n",
      "      \"saleability\": \"FOR_SALE\",\n",
      "      \"isEbook\": true,\n",
      "      \"listPrice\": {\n",
      "        \"amount\": 1196,\n",
      "        \"currencyCode\": \"MXN\"\n",
      "      },\n",
      "      \"retailPrice\": {\n",
      "        \"amount\": 1196,\n",
      "        \"currencyCode\": \"MXN\"\n",
      "      },\n",
      "      \"buyLink\": \"https://play.google.com/store/books/details?id=3b63x-0P3_UC&rdid=book-3b63x-0P3_UC&rdot=1&source=gbs_api\",\n",
      "      \"offers\": [\n",
      "        {\n",
      "          \"finskyOfferType\": 1,\n",
      "          \"listPrice\": {\n",
      "            \"amountInMicros\": 1196000000,\n",
      "            \"currencyCode\": \"MXN\"\n",
      "          },\n",
      "          \"retailPrice\": {\n",
      "            \"amountInMicros\": 1196000000,\n",
      "            \"currencyCode\": \"MXN\"\n",
      "          },\n",
      "          \"giftable\": true\n",
      "        }\n",
      "      ]\n",
      "    },\n",
      "    \"accessInfo\": {\n",
      "      \"country\": \"MX\",\n",
      "      \"viewability\": \"PARTIAL\",\n",
      "      \"embeddable\": true,\n",
      "      \"publicDomain\": false,\n",
      "      \"textToSpeechPermission\": \"ALLOWED\",\n",
      "      \"epub\": {\n",
      "        \"isAvailable\": false\n",
      "      },\n",
      "      \"pdf\": {\n",
      "        \"isAvailable\": true,\n",
      "        \"acsTokenLink\": \"http://books.google.com.mx/books/download/Computer_Organization_and_Design-sample-pdf.acsm?id=3b63x-0P3_UC&format=pdf&output=acs4_fulfillment_token&dl_type=sample&source=gbs_api\"\n",
      "      },\n",
      "      \"webReaderLink\": \"http://play.google.com/books/reader?id=3b63x-0P3_UC&hl=&source=gbs_api\",\n",
      "      \"accessViewStatus\": \"SAMPLE\",\n",
      "      \"quoteSharingAllowed\": false\n",
      "    },\n",
      "    \"searchInfo\": {\n",
      "      \"textSnippet\": \"... <b>CUDA programming</b> model has provided a far easier way to exploit the scalable high-performance floating-point and memory bandwidth of GPUs with the C programming language. Programming Parallel Computing Applications CUDA, Brook, and CAL&nbsp;...\"\n",
      "    }\n",
      "  },\n",
      "  {\n",
      "    \"kind\": \"books#volume\",\n",
      "    \"id\": \"PHS1wwEACAAJ\",\n",
      "    \"etag\": \"yG89cKoGtVk\",\n",
      "    \"selfLink\": \"https://www.googleapis.com/books/v1/volumes/PHS1wwEACAAJ\",\n",
      "    \"volumeInfo\": {\n",
      "      \"title\": \"Hands-On GPU Programming with CUDA\",\n",
      "      \"authors\": [\n",
      "        \"Jaegeun Han\",\n",
      "        \"Bharatkumar Sharma\"\n",
      "      ],\n",
      "      \"publishedDate\": \"2019-09-27\",\n",
      "      \"description\": \"Explore different GPU programming methods using libraries and directives, such as OpenACC, with extension to languages such as C, C++, and Python Key Features Learn parallel programming principles and practices and performance analysis in GPU computing Get to grips with distributed multi GPU programming and other approaches to GPU programming Understand how GPU acceleration in deep learning models can improve their performance Book Description Compute Unified Device Architecture (CUDA) is NVIDIA's GPU computing platform and application programming interface. It's designed to work with programming languages such as C, C++, and Python. With CUDA, you can leverage a GPU's parallel computing power for a range of high-performance computing applications in the fields of science, healthcare, and deep learning. Learn CUDA Programming will help you learn GPU parallel programming and understand its modern applications. In this book, you'll discover CUDA programming approaches for modern GPU architectures. You'll not only be guided through GPU features, tools, and APIs, you'll also learn how to analyze performance with sample parallel programming algorithms. This book will help you optimize the performance of your apps by giving insights into CUDA programming platforms with various libraries, compiler directives (OpenACC), and other languages. As you progress, you'll learn how additional computing power can be generated using multiple GPUs in a box or in multiple boxes. Finally, you'll explore how CUDA accelerates deep learning algorithms, including convolutional neural networks (CNNs) and recurrent neural networks (RNNs). By the end of this CUDA book, you'll be equipped with the skills you need to integrate the power of GPU computing in your applications. What you will learn Understand general GPU operations and programming patterns in CUDA Uncover the difference between GPU programming and CPU programming Analyze GPU application performance and implement optimization strategies Explore GPU programming, profiling, and debugging tools Grasp parallel programming algorithms and how to implement them Scale GPU-accelerated applications with multi-GPU and multi-nodes Delve into GPU programming platforms with accelerated libraries, Python, and OpenACC Gain insights into deep learning accelerators in CNNs and RNNs using GPUs Who this book is for This beginner-level book is for programmers who want to delve into parallel computing, become part of the high-performance computing community and build modern applications. Basic C and C++ programming experience is assumed. For deep learning enthusiasts, this book covers Python InterOps, DL libraries, and practical examples on performance estimation.\",\n",
      "      \"industryIdentifiers\": [\n",
      "        {\n",
      "          \"type\": \"ISBN_10\",\n",
      "          \"identifier\": \"1788996240\"\n",
      "        },\n",
      "        {\n",
      "          \"type\": \"ISBN_13\",\n",
      "          \"identifier\": \"9781788996242\"\n",
      "        }\n",
      "      ],\n",
      "      \"readingModes\": {\n",
      "        \"text\": false,\n",
      "        \"image\": false\n",
      "      },\n",
      "      \"pageCount\": 508,\n",
      "      \"printType\": \"BOOK\",\n",
      "      \"categories\": [\n",
      "        \"Computers\"\n",
      "      ],\n",
      "      \"maturityRating\": \"NOT_MATURE\",\n",
      "      \"allowAnonLogging\": false,\n",
      "      \"contentVersion\": \"preview-1.0.0\",\n",
      "      \"panelizationSummary\": {\n",
      "        \"containsEpubBubbles\": false,\n",
      "        \"containsImageBubbles\": false\n",
      "      },\n",
      "      \"imageLinks\": {\n",
      "        \"smallThumbnail\": \"http://books.google.com/books/content?id=PHS1wwEACAAJ&printsec=frontcover&img=1&zoom=5&source=gbs_api\",\n",
      "        \"thumbnail\": \"http://books.google.com/books/content?id=PHS1wwEACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api\"\n",
      "      },\n",
      "      \"language\": \"en\",\n",
      "      \"previewLink\": \"http://books.google.com.mx/books?id=PHS1wwEACAAJ&dq=CUDA+Programming&hl=&cd=5&source=gbs_api\",\n",
      "      \"infoLink\": \"http://books.google.com.mx/books?id=PHS1wwEACAAJ&dq=CUDA+Programming&hl=&source=gbs_api\",\n",
      "      \"canonicalVolumeLink\": \"https://books.google.com/books/about/Hands_On_GPU_Programming_with_CUDA.html?hl=&id=PHS1wwEACAAJ\"\n",
      "    },\n",
      "    \"saleInfo\": {\n",
      "      \"country\": \"MX\",\n",
      "      \"saleability\": \"NOT_FOR_SALE\",\n",
      "      \"isEbook\": false\n",
      "    },\n",
      "    \"accessInfo\": {\n",
      "      \"country\": \"MX\",\n",
      "      \"viewability\": \"NO_PAGES\",\n",
      "      \"embeddable\": false,\n",
      "      \"publicDomain\": false,\n",
      "      \"textToSpeechPermission\": \"ALLOWED\",\n",
      "      \"epub\": {\n",
      "        \"isAvailable\": false\n",
      "      },\n",
      "      \"pdf\": {\n",
      "        \"isAvailable\": false\n",
      "      },\n",
      "      \"webReaderLink\": \"http://play.google.com/books/reader?id=PHS1wwEACAAJ&hl=&source=gbs_api\",\n",
      "      \"accessViewStatus\": \"NONE\",\n",
      "      \"quoteSharingAllowed\": false\n",
      "    },\n",
      "    \"searchInfo\": {\n",
      "      \"textSnippet\": \"Learn CUDA Programming will help you learn GPU parallel programming and understand its modern applications. In this book, you&#39;ll discover CUDA programming approaches for modern GPU architectures.\"\n",
      "    }\n",
      "  },\n",
      "  {\n",
      "    \"kind\": \"books#volume\",\n",
      "    \"id\": \"WWMNAAAAQBAJ\",\n",
      "    \"etag\": \"JP4kveLFAu8\",\n",
      "    \"selfLink\": \"https://www.googleapis.com/books/v1/volumes/WWMNAAAAQBAJ\",\n",
      "    \"volumeInfo\": {\n",
      "      \"title\": \"Proceedings of 2013 Chinese Intelligent Automation Conference\",\n",
      "      \"subtitle\": \"Intelligent Automation & Intelligent Technology and Systems\",\n",
      "      \"authors\": [\n",
      "        \"Zengqi Sun\",\n",
      "        \"Zhidong Deng\"\n",
      "      ],\n",
      "      \"publisher\": \"Springer Science & Business Media\",\n",
      "      \"publishedDate\": \"2013-07-10\",\n",
      "      \"description\": \"Proceedings of the 2013 Chinese Intelligent Automation Conference presents selected research papers from the CIAC’13, held in Yangzhou, China. The topics include e.g. adaptive control, fuzzy control, neural network based control, knowledge based control, hybrid intelligent control, learning control, evolutionary mechanism based control, multi-sensor integration, failure diagnosis, and reconfigurable control. Engineers and researchers from academia, industry, and government can gain an inside view of new solutions combining ideas from multiple disciplines in the field of intelligent automation. Zengqi Sun and Zhidong Deng are professors at the Department of Computer Science, Tsinghua University, China.\",\n",
      "      \"industryIdentifiers\": [\n",
      "        {\n",
      "          \"type\": \"ISBN_13\",\n",
      "          \"identifier\": \"9783642384608\"\n",
      "        },\n",
      "        {\n",
      "          \"type\": \"ISBN_10\",\n",
      "          \"identifier\": \"3642384609\"\n",
      "        }\n",
      "      ],\n",
      "      \"readingModes\": {\n",
      "        \"text\": true,\n",
      "        \"image\": true\n",
      "      },\n",
      "      \"pageCount\": 840,\n",
      "      \"printType\": \"BOOK\",\n",
      "      \"categories\": [\n",
      "        \"Technology & Engineering\"\n",
      "      ],\n",
      "      \"maturityRating\": \"NOT_MATURE\",\n",
      "      \"allowAnonLogging\": false,\n",
      "      \"contentVersion\": \"1.12.10.0.preview.3\",\n",
      "      \"panelizationSummary\": {\n",
      "        \"containsEpubBubbles\": false,\n",
      "        \"containsImageBubbles\": false\n",
      "      },\n",
      "      \"imageLinks\": {\n",
      "        \"smallThumbnail\": \"http://books.google.com/books/content?id=WWMNAAAAQBAJ&printsec=frontcover&img=1&zoom=5&edge=curl&source=gbs_api\",\n",
      "        \"thumbnail\": \"http://books.google.com/books/content?id=WWMNAAAAQBAJ&printsec=frontcover&img=1&zoom=1&edge=curl&source=gbs_api\"\n",
      "      },\n",
      "      \"language\": \"en\",\n",
      "      \"previewLink\": \"http://books.google.com.mx/books?id=WWMNAAAAQBAJ&pg=PA253&dq=CUDA+Programming&hl=&cd=6&source=gbs_api\",\n",
      "      \"infoLink\": \"https://play.google.com/store/books/details?id=WWMNAAAAQBAJ&source=gbs_api\",\n",
      "      \"canonicalVolumeLink\": \"https://play.google.com/store/books/details?id=WWMNAAAAQBAJ\"\n",
      "    },\n",
      "    \"saleInfo\": {\n",
      "      \"country\": \"MX\",\n",
      "      \"saleability\": \"FOR_SALE\",\n",
      "      \"isEbook\": true,\n",
      "      \"listPrice\": {\n",
      "        \"amount\": 4229.91,\n",
      "        \"currencyCode\": \"MXN\"\n",
      "      },\n",
      "      \"retailPrice\": {\n",
      "        \"amount\": 4229.91,\n",
      "        \"currencyCode\": \"MXN\"\n",
      "      },\n",
      "      \"buyLink\": \"https://play.google.com/store/books/details?id=WWMNAAAAQBAJ&rdid=book-WWMNAAAAQBAJ&rdot=1&source=gbs_api\",\n",
      "      \"offers\": [\n",
      "        {\n",
      "          \"finskyOfferType\": 1,\n",
      "          \"listPrice\": {\n",
      "            \"amountInMicros\": 4229910000,\n",
      "            \"currencyCode\": \"MXN\"\n",
      "          },\n",
      "          \"retailPrice\": {\n",
      "            \"amountInMicros\": 4229910000,\n",
      "            \"currencyCode\": \"MXN\"\n",
      "          },\n",
      "          \"giftable\": true\n",
      "        }\n",
      "      ]\n",
      "    },\n",
      "    \"accessInfo\": {\n",
      "      \"country\": \"MX\",\n",
      "      \"viewability\": \"PARTIAL\",\n",
      "      \"embeddable\": true,\n",
      "      \"publicDomain\": false,\n",
      "      \"textToSpeechPermission\": \"ALLOWED\",\n",
      "      \"epub\": {\n",
      "        \"isAvailable\": true,\n",
      "        \"acsTokenLink\": \"http://books.google.com.mx/books/download/Proceedings_of_2013_Chinese_Intelligent-sample-epub.acsm?id=WWMNAAAAQBAJ&format=epub&output=acs4_fulfillment_token&dl_type=sample&source=gbs_api\"\n",
      "      },\n",
      "      \"pdf\": {\n",
      "        \"isAvailable\": true,\n",
      "        \"acsTokenLink\": \"http://books.google.com.mx/books/download/Proceedings_of_2013_Chinese_Intelligent-sample-pdf.acsm?id=WWMNAAAAQBAJ&format=pdf&output=acs4_fulfillment_token&dl_type=sample&source=gbs_api\"\n",
      "      },\n",
      "      \"webReaderLink\": \"http://play.google.com/books/reader?id=WWMNAAAAQBAJ&hl=&source=gbs_api\",\n",
      "      \"accessViewStatus\": \"SAMPLE\",\n",
      "      \"quoteSharingAllowed\": false\n",
      "    },\n",
      "    \"searchInfo\": {\n",
      "      \"textSnippet\": \"... CUDA Main Memory CPU • Copy data • Copy result Memory for GPU • Instruct the processing • GPU:Execute parallel in each core code that runs on the GPU (usually ... <b>CUDA Programming</b> in Mathematica 28.4...<b>CUDA Programming</b> in MATLAB.\"\n",
      "    }\n",
      "  },\n",
      "  {\n",
      "    \"kind\": \"books#volume\",\n",
      "    \"id\": \"Jgx_BAAAQBAJ\",\n",
      "    \"etag\": \"dKKhYwaCZOs\",\n",
      "    \"selfLink\": \"https://www.googleapis.com/books/v1/volumes/Jgx_BAAAQBAJ\",\n",
      "    \"volumeInfo\": {\n",
      "      \"title\": \"Professional CUDA C Programming\",\n",
      "      \"authors\": [\n",
      "        \"John Cheng\",\n",
      "        \"Max Grossman\",\n",
      "        \"Ty McKercher\"\n",
      "      ],\n",
      "      \"publisher\": \"John Wiley & Sons\",\n",
      "      \"publishedDate\": \"2014-09-08\",\n",
      "      \"description\": \"Break into the powerful world of parallel GPU programming with this down-to-earth, practical guide Designed for professionals across multiple industrial sectors, Professional CUDA C Programming presents CUDA -- a parallel computing platform and programming model designed to ease the development of GPU programming -- fundamentals in an easy-to-follow format, and teaches readers how to think in parallel and implement parallel algorithms on GPUs. Each chapter covers a specific topic, and includes workable examples that demonstrate the development process, allowing readers to explore both the \\\"hard\\\" and \\\"soft\\\" aspects of GPU programming. Computing architectures are experiencing a fundamental shift toward scalable parallel computing motivated by application requirements in industry and science. This book demonstrates the challenges of efficiently utilizing compute resources at peak performance, presents modern techniques for tackling these challenges, while increasing accessibility for professionals who are not necessarily parallel programming experts. The CUDA programming model and tools empower developers to write high-performance applications on a scalable, parallel computing platform: the GPU. However, CUDA itself can be difficult to learn without extensive programming experience. Recognized CUDA authorities John Cheng, Max Grossman, and Ty McKercher guide readers through essential GPU programming skills and best practices in Professional CUDA C Programming, including: CUDA Programming Model GPU Execution Model GPU Memory model Streams, Event and Concurrency Multi-GPU Programming CUDA Domain-Specific Libraries Profiling and Performance Tuning The book makes complex CUDA concepts easy to understand for anyone with knowledge of basic software development with exercises designed to be both readable and high-performance. For the professional seeking entrance to parallel computing and the high-performance computing community, Professional CUDA C Programming is an invaluable resource, with the most current information available on the market.\",\n",
      "      \"industryIdentifiers\": [\n",
      "        {\n",
      "          \"type\": \"ISBN_13\",\n",
      "          \"identifier\": \"9781118739310\"\n",
      "        },\n",
      "        {\n",
      "          \"type\": \"ISBN_10\",\n",
      "          \"identifier\": \"1118739310\"\n",
      "        }\n",
      "      ],\n",
      "      \"readingModes\": {\n",
      "        \"text\": true,\n",
      "        \"image\": true\n",
      "      },\n",
      "      \"pageCount\": 528,\n",
      "      \"printType\": \"BOOK\",\n",
      "      \"categories\": [\n",
      "        \"Computers\"\n",
      "      ],\n",
      "      \"maturityRating\": \"NOT_MATURE\",\n",
      "      \"allowAnonLogging\": true,\n",
      "      \"contentVersion\": \"1.14.9.0.preview.3\",\n",
      "      \"panelizationSummary\": {\n",
      "        \"containsEpubBubbles\": false,\n",
      "        \"containsImageBubbles\": false\n",
      "      },\n",
      "      \"imageLinks\": {\n",
      "        \"smallThumbnail\": \"http://books.google.com/books/content?id=Jgx_BAAAQBAJ&printsec=frontcover&img=1&zoom=5&edge=curl&source=gbs_api\",\n",
      "        \"thumbnail\": \"http://books.google.com/books/content?id=Jgx_BAAAQBAJ&printsec=frontcover&img=1&zoom=1&edge=curl&source=gbs_api\"\n",
      "      },\n",
      "      \"language\": \"en\",\n",
      "      \"previewLink\": \"http://books.google.com.mx/books?id=Jgx_BAAAQBAJ&printsec=frontcover&dq=CUDA+Programming&hl=&cd=7&source=gbs_api\",\n",
      "      \"infoLink\": \"https://play.google.com/store/books/details?id=Jgx_BAAAQBAJ&source=gbs_api\",\n",
      "      \"canonicalVolumeLink\": \"https://play.google.com/store/books/details?id=Jgx_BAAAQBAJ\"\n",
      "    },\n",
      "    \"saleInfo\": {\n",
      "      \"country\": \"MX\",\n",
      "      \"saleability\": \"FOR_SALE\",\n",
      "      \"isEbook\": true,\n",
      "      \"listPrice\": {\n",
      "        \"amount\": 639,\n",
      "        \"currencyCode\": \"MXN\"\n",
      "      },\n",
      "      \"retailPrice\": {\n",
      "        \"amount\": 639,\n",
      "        \"currencyCode\": \"MXN\"\n",
      "      },\n",
      "      \"buyLink\": \"https://play.google.com/store/books/details?id=Jgx_BAAAQBAJ&rdid=book-Jgx_BAAAQBAJ&rdot=1&source=gbs_api\",\n",
      "      \"offers\": [\n",
      "        {\n",
      "          \"finskyOfferType\": 1,\n",
      "          \"listPrice\": {\n",
      "            \"amountInMicros\": 639000000,\n",
      "            \"currencyCode\": \"MXN\"\n",
      "          },\n",
      "          \"retailPrice\": {\n",
      "            \"amountInMicros\": 639000000,\n",
      "            \"currencyCode\": \"MXN\"\n",
      "          },\n",
      "          \"giftable\": true\n",
      "        }\n",
      "      ]\n",
      "    },\n",
      "    \"accessInfo\": {\n",
      "      \"country\": \"MX\",\n",
      "      \"viewability\": \"PARTIAL\",\n",
      "      \"embeddable\": true,\n",
      "      \"publicDomain\": false,\n",
      "      \"textToSpeechPermission\": \"ALLOWED\",\n",
      "      \"epub\": {\n",
      "        \"isAvailable\": true,\n",
      "        \"acsTokenLink\": \"http://books.google.com.mx/books/download/Professional_CUDA_C_Programming-sample-epub.acsm?id=Jgx_BAAAQBAJ&format=epub&output=acs4_fulfillment_token&dl_type=sample&source=gbs_api\"\n",
      "      },\n",
      "      \"pdf\": {\n",
      "        \"isAvailable\": true,\n",
      "        \"acsTokenLink\": \"http://books.google.com.mx/books/download/Professional_CUDA_C_Programming-sample-pdf.acsm?id=Jgx_BAAAQBAJ&format=pdf&output=acs4_fulfillment_token&dl_type=sample&source=gbs_api\"\n",
      "      },\n",
      "      \"webReaderLink\": \"http://play.google.com/books/reader?id=Jgx_BAAAQBAJ&hl=&source=gbs_api\",\n",
      "      \"accessViewStatus\": \"SAMPLE\",\n",
      "      \"quoteSharingAllowed\": false\n",
      "    },\n",
      "    \"searchInfo\": {\n",
      "      \"textSnippet\": \"Professional CUDA C Programming: Focuses on GPU programming skills and best practices that deliver outstanding performance Shows you how to think in parallel Turns complex subjects into easy-to-understand concepts Makes information ...\"\n",
      "    }\n",
      "  },\n",
      "  {\n",
      "    \"kind\": \"books#volume\",\n",
      "    \"id\": \"c-64EQAAQBAJ\",\n",
      "    \"etag\": \"lLJcWGr0Bhc\",\n",
      "    \"selfLink\": \"https://www.googleapis.com/books/v1/volumes/c-64EQAAQBAJ\",\n",
      "    \"volumeInfo\": {\n",
      "      \"title\": \"Learning CUDA Programming with Modern C++\",\n",
      "      \"subtitle\": \"A Hands-On Guide to Building High-Performance, GPU-Accelerated Applications\",\n",
      "      \"authors\": [\n",
      "        \"CORWAN MARR\"\n",
      "      ],\n",
      "      \"publisher\": \"Oladosun Mopelola Opeyemi\",\n",
      "      \"publishedDate\": \"2026-01-28\",\n",
      "      \"description\": \"Are you ready to harness the full power of your computer’s graphics card? Do you want to accelerate your applications and enhance your programming skills with GPU computing? In \\\"Learning CUDA Programming with Modern C++,\\\" you’ll learn how to leverage the power of NVIDIA GPUs to create high-performance, GPU-accelerated applications. Whether you’re a C++ developer, a beginner programmer, or someone looking to boost your skills, this book provides a clear, practical guide to writing efficient GPU code. What you’ll learn: l Hands-on techniques: Build real-world projects that teach you how to write and optimize CUDA code for modern GPUs. l Understand CUDA programming: Learn about GPU architecture, memory management, and how to organize threads efficiently with Modern C++. l Maximize performance: Gain insight into profiling, debugging, and optimizing code for faster execution. l Complete projects: From image processing pipelines to Monte Carlo simulations, the projects in this book help you apply what you’ve learned in practical ways. This book is designed to help you write powerful, maintainable code that runs on GPUs, offering you the skills needed to tackle complex problems and build applications that perform at scale. Don’t just read about high-performance programming — start writing your own GPU-accelerated applications today. Buy your copy now and begin mastering CUDA programming!\",\n",
      "      \"readingModes\": {\n",
      "        \"text\": true,\n",
      "        \"image\": true\n",
      "      },\n",
      "      \"pageCount\": 244,\n",
      "      \"printType\": \"BOOK\",\n",
      "      \"categories\": [\n",
      "        \"Computers\"\n",
      "      ],\n",
      "      \"maturityRating\": \"NOT_MATURE\",\n",
      "      \"allowAnonLogging\": false,\n",
      "      \"contentVersion\": \"2.3.3.0.preview.3\",\n",
      "      \"panelizationSummary\": {\n",
      "        \"containsEpubBubbles\": false,\n",
      "        \"containsImageBubbles\": false\n",
      "      },\n",
      "      \"imageLinks\": {\n",
      "        \"smallThumbnail\": \"http://books.google.com/books/content?id=c-64EQAAQBAJ&printsec=frontcover&img=1&zoom=5&edge=curl&source=gbs_api\",\n",
      "        \"thumbnail\": \"http://books.google.com/books/content?id=c-64EQAAQBAJ&printsec=frontcover&img=1&zoom=1&edge=curl&source=gbs_api\"\n",
      "      },\n",
      "      \"language\": \"en\",\n",
      "      \"previewLink\": \"http://books.google.com.mx/books?id=c-64EQAAQBAJ&printsec=frontcover&dq=CUDA+Programming&hl=&cd=8&source=gbs_api\",\n",
      "      \"infoLink\": \"https://play.google.com/store/books/details?id=c-64EQAAQBAJ&source=gbs_api\",\n",
      "      \"canonicalVolumeLink\": \"https://play.google.com/store/books/details?id=c-64EQAAQBAJ\"\n",
      "    },\n",
      "    \"saleInfo\": {\n",
      "      \"country\": \"MX\",\n",
      "      \"saleability\": \"FOR_SALE\",\n",
      "      \"isEbook\": true,\n",
      "      \"listPrice\": {\n",
      "        \"amount\": 109,\n",
      "        \"currencyCode\": \"MXN\"\n",
      "      },\n",
      "      \"retailPrice\": {\n",
      "        \"amount\": 109,\n",
      "        \"currencyCode\": \"MXN\"\n",
      "      },\n",
      "      \"buyLink\": \"https://play.google.com/store/books/details?id=c-64EQAAQBAJ&rdid=book-c-64EQAAQBAJ&rdot=1&source=gbs_api\",\n",
      "      \"offers\": [\n",
      "        {\n",
      "          \"finskyOfferType\": 1,\n",
      "          \"listPrice\": {\n",
      "            \"amountInMicros\": 109000000,\n",
      "            \"currencyCode\": \"MXN\"\n",
      "          },\n",
      "          \"retailPrice\": {\n",
      "            \"amountInMicros\": 109000000,\n",
      "            \"currencyCode\": \"MXN\"\n",
      "          },\n",
      "          \"giftable\": true\n",
      "        }\n",
      "      ]\n",
      "    },\n",
      "    \"accessInfo\": {\n",
      "      \"country\": \"MX\",\n",
      "      \"viewability\": \"PARTIAL\",\n",
      "      \"embeddable\": true,\n",
      "      \"publicDomain\": false,\n",
      "      \"textToSpeechPermission\": \"ALLOWED\",\n",
      "      \"epub\": {\n",
      "        \"isAvailable\": true,\n",
      "        \"acsTokenLink\": \"http://books.google.com.mx/books/download/Learning_CUDA_Programming_with_Modern_C+-sample-epub.acsm?id=c-64EQAAQBAJ&format=epub&output=acs4_fulfillment_token&dl_type=sample&source=gbs_api\"\n",
      "      },\n",
      "      \"pdf\": {\n",
      "        \"isAvailable\": true,\n",
      "        \"acsTokenLink\": \"http://books.google.com.mx/books/download/Learning_CUDA_Programming_with_Modern_C+-sample-pdf.acsm?id=c-64EQAAQBAJ&format=pdf&output=acs4_fulfillment_token&dl_type=sample&source=gbs_api\"\n",
      "      },\n",
      "      \"webReaderLink\": \"http://play.google.com/books/reader?id=c-64EQAAQBAJ&hl=&source=gbs_api\",\n",
      "      \"accessViewStatus\": \"SAMPLE\",\n",
      "      \"quoteSharingAllowed\": false\n",
      "    },\n",
      "    \"searchInfo\": {\n",
      "      \"textSnippet\": \"This book is designed to help you write powerful, maintainable code that runs on GPUs, offering you the skills needed to tackle complex problems and build applications that perform at scale.\"\n",
      "    }\n",
      "  },\n",
      "  {\n",
      "    \"kind\": \"books#volume\",\n",
      "    \"id\": \"KUxsAQAAQBAJ\",\n",
      "    \"etag\": \"q7yxPpMdjjk\",\n",
      "    \"selfLink\": \"https://www.googleapis.com/books/v1/volumes/KUxsAQAAQBAJ\",\n",
      "    \"volumeInfo\": {\n",
      "      \"title\": \"The CUDA Handbook\",\n",
      "      \"subtitle\": \"A Comprehensive Guide to GPU Programming\",\n",
      "      \"authors\": [\n",
      "        \"Nicholas Wilt\"\n",
      "      ],\n",
      "      \"publisher\": \"Pearson Education\",\n",
      "      \"publishedDate\": \"2013\",\n",
      "      \"description\": \"'The CUDA Handbook' begins where 'CUDA by Example' leaves off, discussing both CUDA hardware and software in detail that will engage any CUDA developer, from the casual to the most hardcore. Newer CUDA developers will see how the hardware processes commands and the driver checks progress; hardcore CUDA developers will appreciate topics such as the driver API, context migration, and how best to structure CPU/GPU data interchange and synchronization. The book is partly a reference resource and partly a cookbook.\",\n",
      "      \"industryIdentifiers\": [\n",
      "        {\n",
      "          \"type\": \"ISBN_13\",\n",
      "          \"identifier\": \"9780321809469\"\n",
      "        },\n",
      "        {\n",
      "          \"type\": \"ISBN_10\",\n",
      "          \"identifier\": \"0321809467\"\n",
      "        }\n",
      "      ],\n",
      "      \"readingModes\": {\n",
      "        \"text\": false,\n",
      "        \"image\": false\n",
      "      },\n",
      "      \"pageCount\": 526,\n",
      "      \"printType\": \"BOOK\",\n",
      "      \"categories\": [\n",
      "        \"Computers\"\n",
      "      ],\n",
      "      \"maturityRating\": \"NOT_MATURE\",\n",
      "      \"allowAnonLogging\": false,\n",
      "      \"contentVersion\": \"0.2.2.0.preview.0\",\n",
      "      \"panelizationSummary\": {\n",
      "        \"containsEpubBubbles\": false,\n",
      "        \"containsImageBubbles\": false\n",
      "      },\n",
      "      \"imageLinks\": {\n",
      "        \"smallThumbnail\": \"http://books.google.com/books/content?id=KUxsAQAAQBAJ&printsec=frontcover&img=1&zoom=5&source=gbs_api\",\n",
      "        \"thumbnail\": \"http://books.google.com/books/content?id=KUxsAQAAQBAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api\"\n",
      "      },\n",
      "      \"language\": \"en\",\n",
      "      \"previewLink\": \"http://books.google.com.mx/books?id=KUxsAQAAQBAJ&dq=CUDA+Programming&hl=&cd=9&source=gbs_api\",\n",
      "      \"infoLink\": \"http://books.google.com.mx/books?id=KUxsAQAAQBAJ&dq=CUDA+Programming&hl=&source=gbs_api\",\n",
      "      \"canonicalVolumeLink\": \"https://books.google.com/books/about/The_CUDA_Handbook.html?hl=&id=KUxsAQAAQBAJ\"\n",
      "    },\n",
      "    \"saleInfo\": {\n",
      "      \"country\": \"MX\",\n",
      "      \"saleability\": \"NOT_FOR_SALE\",\n",
      "      \"isEbook\": false\n",
      "    },\n",
      "    \"accessInfo\": {\n",
      "      \"country\": \"MX\",\n",
      "      \"viewability\": \"NO_PAGES\",\n",
      "      \"embeddable\": false,\n",
      "      \"publicDomain\": false,\n",
      "      \"textToSpeechPermission\": \"ALLOWED\",\n",
      "      \"epub\": {\n",
      "        \"isAvailable\": false\n",
      "      },\n",
      "      \"pdf\": {\n",
      "        \"isAvailable\": true\n",
      "      },\n",
      "      \"webReaderLink\": \"http://play.google.com/books/reader?id=KUxsAQAAQBAJ&hl=&source=gbs_api\",\n",
      "      \"accessViewStatus\": \"NONE\",\n",
      "      \"quoteSharingAllowed\": false\n",
      "    },\n",
      "    \"searchInfo\": {\n",
      "      \"textSnippet\": \"&#39;The CUDA Handbook&#39; begins where &#39;CUDA by Example&#39; leaves off, discussing both CUDA hardware and software in detail that will engage any CUDA developer, from the casual to the most hardcore.\"\n",
      "    }\n",
      "  },\n",
      "  {\n",
      "    \"kind\": \"books#volume\",\n",
      "    \"id\": \"l_q1DwAAQBAJ\",\n",
      "    \"etag\": \"JWah0WcJAEc\",\n",
      "    \"selfLink\": \"https://www.googleapis.com/books/v1/volumes/l_q1DwAAQBAJ\",\n",
      "    \"volumeInfo\": {\n",
      "      \"title\": \"Information, Communication and Engineering\",\n",
      "      \"authors\": [\n",
      "        \"Teen Hang Meen\"\n",
      "      ],\n",
      "      \"publisher\": \"Trans Tech Publications Ltd\",\n",
      "      \"publishedDate\": \"2013-02-27\",\n",
      "      \"description\": \"Selected, peer reviewed papers from the 2012 International Conference on Information, Communication and Engineering (ICICE 2012), December 15-20, 2012, Fuzhou, Taiwan\",\n",
      "      \"industryIdentifiers\": [\n",
      "        {\n",
      "          \"type\": \"ISBN_13\",\n",
      "          \"identifier\": \"9783038260530\"\n",
      "        },\n",
      "        {\n",
      "          \"type\": \"ISBN_10\",\n",
      "          \"identifier\": \"3038260533\"\n",
      "        }\n",
      "      ],\n",
      "      \"readingModes\": {\n",
      "        \"text\": false,\n",
      "        \"image\": true\n",
      "      },\n",
      "      \"pageCount\": 563,\n",
      "      \"printType\": \"BOOK\",\n",
      "      \"categories\": [\n",
      "        \"Technology & Engineering\"\n",
      "      ],\n",
      "      \"maturityRating\": \"NOT_MATURE\",\n",
      "      \"allowAnonLogging\": false,\n",
      "      \"contentVersion\": \"0.1.2.0.preview.1\",\n",
      "      \"panelizationSummary\": {\n",
      "        \"containsEpubBubbles\": false,\n",
      "        \"containsImageBubbles\": false\n",
      "      },\n",
      "      \"imageLinks\": {\n",
      "        \"smallThumbnail\": \"http://books.google.com/books/content?id=l_q1DwAAQBAJ&printsec=frontcover&img=1&zoom=5&edge=curl&source=gbs_api\",\n",
      "        \"thumbnail\": \"http://books.google.com/books/content?id=l_q1DwAAQBAJ&printsec=frontcover&img=1&zoom=1&edge=curl&source=gbs_api\"\n",
      "      },\n",
      "      \"language\": \"en\",\n",
      "      \"previewLink\": \"http://books.google.com.mx/books?id=l_q1DwAAQBAJ&pg=PA15&dq=CUDA+Programming&hl=&cd=10&source=gbs_api\",\n",
      "      \"infoLink\": \"https://play.google.com/store/books/details?id=l_q1DwAAQBAJ&source=gbs_api\",\n",
      "      \"canonicalVolumeLink\": \"https://play.google.com/store/books/details?id=l_q1DwAAQBAJ\"\n",
      "    },\n",
      "    \"saleInfo\": {\n",
      "      \"country\": \"MX\",\n",
      "      \"saleability\": \"FOR_SALE\",\n",
      "      \"isEbook\": true,\n",
      "      \"listPrice\": {\n",
      "        \"amount\": 5299,\n",
      "        \"currencyCode\": \"MXN\"\n",
      "      },\n",
      "      \"retailPrice\": {\n",
      "        \"amount\": 5299,\n",
      "        \"currencyCode\": \"MXN\"\n",
      "      },\n",
      "      \"buyLink\": \"https://play.google.com/store/books/details?id=l_q1DwAAQBAJ&rdid=book-l_q1DwAAQBAJ&rdot=1&source=gbs_api\",\n",
      "      \"offers\": [\n",
      "        {\n",
      "          \"finskyOfferType\": 1,\n",
      "          \"listPrice\": {\n",
      "            \"amountInMicros\": 5299000000,\n",
      "            \"currencyCode\": \"MXN\"\n",
      "          },\n",
      "          \"retailPrice\": {\n",
      "            \"amountInMicros\": 5299000000,\n",
      "            \"currencyCode\": \"MXN\"\n",
      "          },\n",
      "          \"giftable\": true\n",
      "        }\n",
      "      ]\n",
      "    },\n",
      "    \"accessInfo\": {\n",
      "      \"country\": \"MX\",\n",
      "      \"viewability\": \"PARTIAL\",\n",
      "      \"embeddable\": true,\n",
      "      \"publicDomain\": false,\n",
      "      \"textToSpeechPermission\": \"ALLOWED\",\n",
      "      \"epub\": {\n",
      "        \"isAvailable\": false\n",
      "      },\n",
      "      \"pdf\": {\n",
      "        \"isAvailable\": true\n",
      "      },\n",
      "      \"webReaderLink\": \"http://play.google.com/books/reader?id=l_q1DwAAQBAJ&hl=&source=gbs_api\",\n",
      "      \"accessViewStatus\": \"SAMPLE\",\n",
      "      \"quoteSharingAllowed\": false\n",
      "    },\n",
      "    \"searchInfo\": {\n",
      "      \"textSnippet\": \"... <b>program GPU</b> as a graphics device, the <b>CUDA</b> of NIVDIA and the OpenCL provide more general <b>programming</b> environment for users. By supporting memory access model, interfaces to access GPUs directly and <b>programming</b> toolkits, users can&nbsp;...\"\n",
      "    }\n",
      "  }\n",
      "]\n"
     ]
    }
   ],
   "source": [
    "// Ejemplo de uso:\n",
    "buscarBibliografia(\"CUDA Programming\")\n",
    "    .then((libros) => console.log(JSON.stringify(libros, null, 2)));\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "09b2afa8",
   "metadata": {},
   "outputs": [],
   "source": [
    "// Si no lo instalaste en el deno.json, usa import CSL from 'npm:citeproc';\n",
    "import CSL from \"citeproc\";\n",
    "\n",
    "// 1. Definición de Tipos de Entrada y Salida\n",
    "export type FormatoCita = \"apa\" | \"ieee\" | \"vancouver\" | \"chicago\";\n",
    "\n",
    "export interface ParametrosBusqueda {\n",
    "  query: string;\n",
    "  maxResults?: number;\n",
    "  formato: FormatoCita;\n",
    "}\n",
    "\n",
    "// Tipos requeridos por Citeproc-js (CSL-JSON)\n",
    "interface CSLAuthor {\n",
    "  family: string;\n",
    "  given: string;\n",
    "}\n",
    "\n",
    "interface CSLItem {\n",
    "  id: string;\n",
    "  type: \"book\";\n",
    "  title: string;\n",
    "  author: CSLAuthor[];\n",
    "  publisher?: string;\n",
    "  issued?: { \"date-parts\": number[][] };\n",
    "  ISBN?: string;\n",
    "}\n",
    "\n",
    "// 2. Funciones Auxiliares\n",
    "function parsearAutor(nombreCompleto: string): CSLAuthor {\n",
    "  if (nombreCompleto.includes(\",\")) {\n",
    "    return {\n",
    "      family: nombreCompleto.split(\",\")[0].trim(),\n",
    "      given: nombreCompleto.split(\",\")[1].trim(),\n",
    "    };\n",
    "  }\n",
    "  const partes = nombreCompleto.trim().split(\" \");\n",
    "  if (partes.length === 1) return { family: partes[0], given: \"\" };\n",
    "  const family = partes.pop() || \"\";\n",
    "  const given = partes.join(\" \");\n",
    "  return { family, given };\n",
    "}\n",
    "\n",
    "// Función asíncrona para leer los archivos locales en Deno\n",
    "async function obtenerArchivoXML(tipo: string): Promise<string> {\n",
    "  // Mapeo exacto a los nombres de los archivos que subiste\n",
    "  const archivos: Record<string, string> = {\n",
    "    \"apa\": \"./apa.csl\",\n",
    "    \"ieee\": \"./ieee.csl\",\n",
    "    \"chicago\": \"./chicago-author-date.csl\",\n",
    "    \"vancouver\": \"./nlm-citation-sequence.csl\",\n",
    "    \"es-MX\": \"./locales-es-MX.xml\",\n",
    "  };\n",
    "\n",
    "  const ruta = archivos[tipo];\n",
    "  if (!ruta) throw new Error(`No hay archivo configurado para: ${tipo}`);\n",
    "\n",
    "  return await Deno.readTextFile(ruta);\n",
    "}\n",
    "\n",
    "// 3. Función Principal\n",
    "export async function obtenerYFormatearBibliografia(\n",
    "  params: ParametrosBusqueda,\n",
    "): Promise<string[]> {\n",
    "  const { query, maxResults = 5, formato } = params;\n",
    "\n",
    "  console.log(\n",
    "    Deno.env.get(\"GOOGLE_API_KEY\")\n",
    "      ? \"Clave de API encontrada\"\n",
    "      : \"No se encontró la clave de API\",\n",
    "  );\n",
    "  // A. Obtener datos de Google Books\n",
    "  const url = `https://www.googleapis.com/books/v1/volumes?q=${\n",
    "    encodeURIComponent(query)\n",
    "  }&maxResults=${maxResults}&key=${Deno.env.get(\"GOOGLE_API_KEY\")}`;\n",
    "  const response = await fetch(url);\n",
    "\n",
    "  if (!response.ok) throw new Error(`Error en la API: ${response.status}`);\n",
    "  const data = await response.json();\n",
    "  if (!data.items || data.items.length === 0) return [];\n",
    "\n",
    "  // B. Transformar a CSL-JSON\n",
    "  const cslItems: Record<string, CSLItem> = {};\n",
    "\n",
    "  data.items.forEach((item: any) => {\n",
    "    const info = item.volumeInfo;\n",
    "    const id = item.id;\n",
    "\n",
    "    cslItems[id] = {\n",
    "      id,\n",
    "      type: \"book\",\n",
    "      title: info.title || \"Sin título\",\n",
    "      author: (info.authors || []).map(parsearAutor),\n",
    "      publisher: info.publisher,\n",
    "      // Citeproc espera el año en una matriz bidimensional\n",
    "      issued: info.publishedDate\n",
    "        ? { \"date-parts\": [[parseInt(info.publishedDate.substring(0, 4), 10)]] }\n",
    "        : undefined,\n",
    "      ISBN: info.industryIdentifiers?.[0]?.identifier,\n",
    "    };\n",
    "  });\n",
    "  console.log();\n",
    "\n",
    "  // C. Configurar Citeproc-js (Ahora con await para leer los archivos locales)\n",
    "  const xmlEstilo = await obtenerArchivoXML(formato);\n",
    "  const xmlIdioma = await obtenerArchivoXML(\"es-MX\");\n",
    "\n",
    "  const sys = {\n",
    "    // Al pedir un idioma, siempre devolvemos nuestro XML de México\n",
    "    retrieveLocale: (lang: string) => xmlIdioma,\n",
    "    retrieveItem: (id: string) => cslItems[id],\n",
    "  };\n",
    "\n",
    "  const engine = new CSL.Engine(sys, xmlEstilo);\n",
    "  engine.updateItems(Object.keys(cslItems));\n",
    "\n",
    "  // D. Generar Bibliografía\n",
    "  const resultado = engine.makeBibliography();\n",
    "\n",
    "  // makeBibliography() retorna [metadata, [array de strings formateados]]\n",
    "  if (!resultado || !resultado[1]) return [];\n",
    "\n",
    "  // Retornamos el arreglo limpiando etiquetas HTML residuales si las hay\n",
    "  return resultado[1].map((cita: string) =>\n",
    "    cita.replace(/(<([^>]+)>)/gi, \"\").trim()\n",
    "  );\n",
    "}\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "6ecdc20f",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "Clave de API encontrada\n",
      "\n",
      "[\n",
      "  \"[1]A. F. R. Pérez, MF0223_3 Sistemas Operativos y Aplicaciones Informáticas. Ra-Ma Editorial, 2013.\",\n",
      "  \"[2]E. QUERO CATALINAS, Sistemas operativos y lenguajes de programación. Ediciones Paraninfo, S.A., 2002.\",\n",
      "  \"[3]J. M. M. Pascual y J. A. P.-C. Atanasio, Conceptos de sistemas operativos. Univ Pontifica Comillas, 2002.\",\n",
      "  \"[4]J. N. Camazón, Sistemas operativos monopuesto. Editex, 2011.\",\n",
      "  \"[5]M. D. P. ALEGRE RAMOS, Sistemas operativos monopuesto. Ediciones Paraninfo, S.A., 2010.\",\n",
      "  \"[6]B. S. Pérez, Cuaderno práctico de Windows. Sistemas Operativos Monopuestos. Ciclos Formativos de Informática. Lulu.com, 2015.\",\n",
      "  \"[7]A. S. Tanenbaum, Sistemas operativos modernos. Pearson Educación, 2003.\",\n",
      "  \"[8]J. L. Peterson y A. Silberschatz, Sistemas operativos. Reverte, 1994.\",\n",
      "  \"[9]J. L. R. Cabrera, Implantación de Sistemas Operativos (GRADO SUP.). Grupo Editorial RA-MA.\",\n",
      "  \"[10]L. R. González, MF0219_2 Instalación y Configuración de Sistemas Operativos. Ra-Ma Editorial, 2011.\"\n",
      "]\n"
     ]
    },
    {
     "ename": "",
     "evalue": "",
     "output_type": "error",
     "traceback": [
      "\u001b[1;31mThe Kernel crashed while executing code in the current cell or a previous cell. \n",
      "\u001b[1;31mPlease review the code in the cell(s) to identify a possible cause of the failure. \n",
      "\u001b[1;31mClick <a href='https://aka.ms/vscodeJupyterKernelCrash'>here</a> for more info. \n",
      "\u001b[1;31mView Jupyter <a href='command:jupyter.viewOutput'>log</a> for further details."
     ]
    }
   ],
   "source": [
    "const referencias = await obtenerYFormatearBibliografia({\n",
    "  query: \"Sistemas Operativos\",\n",
    "  maxResults: 10,\n",
    "  formato: \"ieee\",\n",
    "});\n",
    "\n",
    "console.log(referencias);\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "41ad293a",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Deno",
   "language": "typescript",
   "name": "deno"
  },
  "language_info": {
   "codemirror_mode": "typescript",
   "file_extension": ".ts",
   "mimetype": "text/x.typescript",
   "name": "typescript",
   "nbconvert_exporter": "script",
   "pygments_lexer": "typescript",
   "version": "5.9.2"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
