👀 React / JS / TS trick
Use symbols instead of null/undefined to represent missing values
This React provider example:
- makes it possible to provide "null"
- still checks that the user didn't forget the <Provider>
There are cases where "null" is a perfectly valid ctx value
حتى مطرها غير.. لأنها دبي 🌧️
في دبي ..لا تمطر السماء ماءً فحسب بل تمطر عزاً وفخراً يغسل وجه الأرض ليزداد بريقها .
دانة الدنيا تزداد فتنة وسيدة المدن تزداد شموخاً.
اللهم اجعلها سقيا خير ورحمة على دار العز وأهلها
🇦🇪
Wondering what LLMs you can actually run on your hardware? 🤔
👾 llmfit — Find the best models for your RAM, CPU, and GPU
💯 Detects your system and ranks hundreds of models by fit, speed, quality & context
🦀 Written in Rust & built with @ratatui_rs
⭐ GitHub: https://t.co/X0HtFnwpH5
#rustlang #ratatui #tui #llm #ai #terminal #cpu #gpu
i just finished fine-tuning a model that does phoneme matching
so instead of:
voice => Quranic text (Arabic)
it does:
voice => phonemes like this:
"b i s m i | a l l a h i | a r r a H m aa n i | a r r a H
ii m i"
that's Bismillah al-Rahman al-Raheem broken into its raw sounds. phonemes are the smallest units of sound in speech. every letter, every vowel, every emphasis marker.
and here's the crazy part:
93% RECALL (!)
basically matching the text-based model I already had, except this one never tries to recognize Arabic words.
it just listens to the sounds.
which is, like, the point. Quran recitation has tajweed,
very specific pronunciation rules that don't always map cleanly to text... and phonemes capture exactly how something was said, sound by sound.
so now I can take what you recited, convert it to
phonemes, and align it against the correct pronunciation, phoneme by phoneme... and pinpoint exactly where you went wrong.
in theory, anyway, haha.
we'll see how this works in practice tomorrow inshallah :)
Chinese scientists have developed,
The best shortest-path algorithm in 41 years!
A team from Tsinghua University has broken Dijkstra's "sorting barrier" - the first improvement since 1984.
Just use for a world-map 🤯
Paper - https://t.co/0AhR5O7vl4
https://t.co/a9KMVRuYGx
Most people would say Windows, but, the one with less impact is macOS. Deleting Linux or Windows out of the sudden could be catastrophic, but we can survive without macOS.
So, obviously, I delete Windows.
Most people would say Windows, but, the one with less impact is macOS. Deleting Linux or Windows out of the sudden could be catastrophic, but we can survive without macOS.
So, obviously, I delete Windows.
You can patch React Native to use CSS Grid today (coming soon to a stable release of Expo)!
This is a huge unlock for parity with web, tailwind, and shadcn 🚀