AI, LLMs and machine learning have caught the imagination of many developers recently, whether through training and deploying models, calling out to third party APIs (like those OpenAI offers), or using tools like GitHub Copilot to write code. It's common, however, for a lot of AI/LLM experimentation to take place in Python, rather than JavaScript..
Nonetheless, there's an increasing number of projects in the JavaScript AI/ML space worth keeping an eye on, as well as an upcoming AI developer event being organized by two folks from the JavaScript space:
- Transformers.js: State-of-the-Art Machine Learning for the Web
- Microsoft TypeChat: An Approach for Type-Safe LLM Responses
- WebLLM: Run LLM Models in the Browser with WebGPU
- TensorFlow.js: Machine Learning for JavaScript Developers
Please open Telegram to view this post
VIEW IN TELEGRAM
π5β€3π₯1
Which snippet could you add to this code to print "food" to the console?
Anonymous Quiz
14%
a.prototype.belly[0]
20%
Object.getPrototype0f (a).belly[0]
41%
Animal.belly[0]
25%
a.belly[0]
π₯13π8β€4π€©2
π The Saga of Google's Closure Compiler
Dan looks back at Googleβs Closure Compiler, a JavaScript transpiler Google built in 2004 and used most heavily in the pre-TypeScript era to reduce the size of JavaScript files, check types, and otherwise handle common pitfalls. A neat bit of JavaScript history.
DAN VANDERKAM
π One Thing Nobody Explained To You About TypeScript
The author makes a strong case for creating a separate
tsconfig.json
for each environment your code runs in: βToday, I write about one thing about configuring TypeScript that took me years to realize. Iβm sure youβre making the same mistake as I did.βARTEM ZAKHARCHENKO
π Tesseract.js 5.0: JavaScript OCR for 100+ Languages
A port of the C++-based Tesseract library used to extract text from images. v5.0 is a big deal as there are huge file size reductions resulting in a 50% decrease in runtime size, a similar reduction in memory use, and iOS 17 compatiblity.
TESSERACT TEAM
Β©οΈJS WEEKLY
Please open Telegram to view this post
VIEW IN TELEGRAM
π6β€2π₯1
Please open Telegram to view this post
VIEW IN TELEGRAM
π2
π€13π10β€7π€£4
Please open Telegram to view this post
VIEW IN TELEGRAM
π5π€4β€2
What is the output?
Anonymous Quiz
34%
{ a:1, b: 2, c: 3 }
25%
[2, 3]
36%
{ b: 2, c: 3 }
5%
[[βbβ, 2], [βcβ, 3]]
π12β€5π€£3π₯1π€1
Please open Telegram to view this post
VIEW IN TELEGRAM
π5π€3
What is the output of the above code?
Anonymous Quiz
63%
{ bar: 'hello '}, { bar: 'hello '}
26%
{ bar: 'hello '}, undefined
11%
{ bar: 'hello '}, Error
π€22π12π€©5β€2π₯1
Please open Telegram to view this post
VIEW IN TELEGRAM
π8
π€19β€5π5
Please open Telegram to view this post
VIEW IN TELEGRAM
π€6π2
π18π₯6β€5π€2
π Honey, I Shrunk the npm Package!
Compression sits under the hood of everything on the modern Web, including npm packages (distributed as gzipped tarballs). Could the standard gzip approach be showing its age in both speed and effectiveness? Jamie runs a package through a few alternatives and gives an update on efforts to modernize npmβs compression defaults.
JAMIE MAGEE
ASIDES:
- A variety of malicious 'typosquatting' packages on both npm and PyPI have been found to be stealing SSH keys from developers. Take care over what you're installing out there.
- π’ We recently mentioned a discussion around Node.js getting its own mascot. The discussion has continued with lots of new ideas thrown into the mix.
- Google Cloud SQL's Node.js connector is now generally available.
Β©οΈNODE.JS WEEKLY
Please open Telegram to view this post
VIEW IN TELEGRAM
β€3π2π₯2π€©2