Our great sponsors
- Sonar - Write Clean C++ Code. Always.
- CodiumAI - TestGPT | Generating meaningful tests for busy devs
- ONLYOFFICE ONLYOFFICE Docs — document collaboration in your environment
- InfluxDB - Access the most powerful time series database as a service
|4 months ago||3 months ago|
|GNU General Public License v3.0 or later||MIT License|
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
2 projects | reddit.com/r/learnprogramming | 12 Oct 2022
Minimize Heap Allocations in Node.js
4 projects | news.ycombinator.com | 28 Sep 2022
[AskJS] Who first used the term "spread operator" re spread syntax ...?
chrome v8 commits referring to spread operator one of them: https://github.com/v8/v8/commit/93b3397e52d3faf38059718de335027e57b9690d
S6: A standalone JIT compiler library for CPython
8 projects | news.ycombinator.com | 17 Sep 2022
Chrome 0day is being exploited now for CVE-2022-1096; update immediately
8 projects | news.ycombinator.com | 26 Mar 2022
Looks like these are the two commits, based on the issue number:
Although there could be others.
Inline Assembly Language. What is that?
2 projects | dev.to | 23 Mar 2022
What parsing techniques do you use to support a good language server?
10 projects | reddit.com/r/ProgrammingLanguages | 1 Mar 2022
It must be a fairly large echo chamber since it has room for Clang, GCC, V8, OpenJDK, Roslyn, etc. (The Zend parser for PHP seems to use some flavor of YACC, but given PHP, I don't know if that strengthens or weakens my point.)
2 projects | reddit.com/r/learnprogramming | 18 Oct 2021
What you're describing is not really possible with JS. Your best bet would be to look at the "V8 engine" source code. It is the interpreter used in Node.js and Chrome (and I think Edge would be using it too as Edge is built on Chromium). But there is nothing forcing Node.js to use V8, there are other JS interpreters. https://github.com/v8/v82 projects | reddit.com/r/learnprogramming | 18 Oct 2021
3 projects | news.ycombinator.com | 4 May 2023
How to Create a Modern C Project with CMake and Conan
2 projects | reddit.com/r/C_Programming | 26 Apr 2023
Im my projects I search for single file libs.(like https://github.com/svaarala/duktape etc...)
Libgrapheme: A simple freestanding C99 library for Unicode
6 projects | news.ycombinator.com | 15 Nov 2022
You can also refer to the Unicode routines of other small JS engines[1,2], those don’t use ICU either, although the implementations are mercilessly size-optimized (to put it politely) and restricted to what the target JS version requires (e.g. casemapping but no normalization).
3 projects | news.ycombinator.com | 16 Sep 2022
> memcpy from bytes to a NaN should work fine
Signaling NaNs are explicitly undefined in C11 F.2.1.: "This specification does not define the behavior of signaling NaNs." - and in practice may be "quieted" by conversion to Quiet NaNs, changing their bit patterns. Fast math optimization flags will also break the hell out of your code by assuming NaNs are impossible. I want to say there are more circumstances where optimizers and compiler generated code can butcher your NaN payloads, but I'd be working off recollected hearsay and I can't find a source, so don't quote me on that.
NaN boxing is common enough that, if you take the right precautions, a modern compiler should probably support it, maybe. NaN boxing is uncommon enough that, if your codebase needs to be sufficiently portable, you need an opt out for when it breaks. Let's review duktape's scars:
Note that "the right precautions" involve unions and proper integer types to avoid optimizer-invoked rewrites of the value and debugging when things go wrong, not simply YOLOing bytes into a double via memcpy. Note that debugging when it all goes terribly wrong can be quite painful. I've personally had the misfortune of being forced to debug duktape being built with fast math optimizatoins enabled on one "rare" platform + build configuration that wasn't caught by duktape's #if defined(__FAST_MATH__) checks linked above (wasn't Clang nor GCC, so go figure it didn't make the same #define)
19 projects | news.ycombinator.com | 10 Sep 2022
I was expecting this to be about Duktape <https://github.com/svaarala/duktape>, but heh, for sure no. I'd bet $1 there's no way youtube-dl would switch, but I wonder if yt-dlp would?
- Duktape (4.8k stars)
What are some alternatives?
Lua - Lua is a powerful, efficient, lightweight, embeddable scripting language. It supports procedural programming, object-oriented programming, functional programming, data-driven programming, and data description.
ChaiScript - Embedded Scripting Language Designed for C++
Cython - The most widely used Python to C compiler
SWIG - SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages.