Comparing the C FFI overhead on various languages
124 points • 95 comments
From 1/30/2017, 2:17:04 PM till now, @generichuman has achieved 611 Karma Points with the contribution count of 78.
Recent @generichuman Activity
Comparing the C FFI overhead on various languages
124 points • 95 comments
Fips – an Integrated Build Environment for C/C++
2 points • 0 comments
Is this still used at Netflix? Looks like it's not actively developed anymore.
Uber signed a support contract with the Zig foundation to prioritize bug fixes
5 points • 0 comments
Ask HN: Is MPL a good license for libraries?
2 points • 0 comments
Destruction used to be nondeterministic in Nim. Right now though, if you use the ARC/ORC instead of the default GC (ORC will be made the default GC soon) you can have RAII for reference types (RAII is available for value types by default, just write a destructor for your type).
SFML binding probably will be updated to use RAII when ORC is made the default GC.
See this document for more info on Nim's destructors: https://nim-lang.org/docs/destructors.html
Nim Community Survey
81 points • 22 comments
Optick: C++ Profiler for Games
56 points • 8 comments
Jai isn't available to public, sadly. That's why I said Zig is "already in the open". Jai has been in private beta since early 2020 and there are about 150 people that have access to the compiler beta AFAIK.
The reason for the language not being available is that the designer (Jonathan Blow) doesn't want to release something half-baked to the world (because "there is already so much garbage software out in the world", or some line of reasoning similar to that). I don't agree with his reasoning, but I understand it TBH. He also has the reputation of taking too long to develop his games, but when they're finally released they're pretty good.
Anyway, it doesn't look like it'll be released to the public soon so like I said, Zig is the best alternative right now -- and it's gaining more and more users, so when Jai finally gets released, Zig might have already won.
> D suffered from [...] indecision between GC and manual memory management.
It is still suffering from that. If you want to manage memory yourself you can't use some parts of the standard library + you can't use a lot of the community packages since they assume there is a GC present.
So far it looks like the best alternative is Zig, but sadly it doesn't have some of the higher-level language features such as function overloading, compile-time interfaces (Rust traits) or macros. Jai seems to have most D features and more without the GC [0] but Zig is more likely win popular mindshare since it already is in the open + comes with a C/C++ compiler which is pretty cool.
[0] https://github.com/Jai-Community/Jai-Community-Library/wiki
It is not made up but different people can have different opinions on what's readable and what's not.
If the metric is supposed to be objective, then number of CPU cycles used is probably the simplest metric there is for computers.
He uses a lightboard [0] and flips the video.
A decision model for programming language ecosystem selection
1 points • 0 comments
Introducing GDNative's Successor, GDExtension
1 points • 0 comments
Making Reasonable Use of Computer Resources: Part 2
1 points • 0 comments
“Are you actually IO bound? Because I seriously doubt it.”
14 points • 9 comments
The little book about OS development
3 points • 0 comments
Advanced Data Structures
3 points • 0 comments
Intel SPMD Program Compiler
2 points • 0 comments
RISC-V Adventures II: hex0
2 points • 0 comments
site design / logo © 2022 Box Piper