HackerTrans
TopNewTrendsCommentsPastAskShowJobs

zengid

no profile record

Submissions

Callbacks in C++ using template functors (1994)

tutok.sk
49 points·by zengid·قبل 9 أشهر·50 comments

comments

zengid
·الشهر الماضي·discuss
Wishing you a full and fast recovery!
zengid
·الشهر الماضي·discuss
I've been thinking a lot about a solution to Rust's notoriously slow compile times. From my research, it's not the borrow checker that is the issue, it's the heavy optimizations and monomorphization, and macro expansion [0]. There are efforts to improve Rust compile times, but I realized recently that it will never be lightning fast, so we (Rust users) should really be developing more scripting languages and DSLs that we can put all of the fiddly bits into.

Places where we would benefit the most from this is in the Games and UI space. I know game devs have already started by integrating lua, like with mlua [1]. In the UI space i think Makepad is the best example of a team making a dedicated DSL that can be hot-reloaded [2].

I think we need more of this! Go make a DSL next time you feel crushed by the weight of compiling Rust crates!

---

[0] and by my research i mean Claude. this is a great blog with many posts about improving compile times https://nnethercote.github.io/

[1] https://crates.io/crates/mlua . I don't have a reference for a project using it though so please reply if you know of one!

[2] https://github.com/makepad/makepad
zengid
·الشهر الماضي·discuss
khvzak has compiled some benchmarks. mlua and roto are some of the fastest: https://github.com/khvzak/script-bench-rs
zengid
·قبل شهرين·discuss
Drew was CEO for almost 20 years right? that's a heck of a run!
zengid
·قبل 3 أشهر·discuss
Quite a footnote [0]:

> I do not know if it is me being bored with the project, or annoyed with having to build and design a data structure, that has soured me on this project. But I have really at this point lost most motivation to continue this chapter. The way Zig is designed, it makes me deal with the data structure and memory management complexity head on, and it is tiresome. It is not "simpler" than, say, Rust: it just leaves the programmer to deal with the complexity, <strike-through>gaslighting the user</strike-through> claiming it is absolutely necessary.

[0] https://github.com/asibahi/paella/blob/main/writeup/c19.md#u...
zengid
·قبل 3 أشهر·discuss
any tips for running it locally within an agent harness? maybe using pi or opencode?
zengid
·قبل 7 أشهر·discuss
i agree and this matches the authors intent: https://lwn.net/Articles/1049840/
zengid
·قبل 7 أشهر·discuss
He didn't intend it as a joke and his intent matches the op's title revision request: https://lwn.net/Articles/1049840/
zengid
·قبل 8 أشهر·discuss
love to hear good news even if it's a relatively small sample size. anecdotal, but i've heard that the antioxidants in fresh ground coffee is also very good!
zengid
·قبل 9 أشهر·discuss
Now CA needs one
zengid
·قبل 9 أشهر·discuss
not sure why the title was renamed, but i thought this was interesting primarily because it's the early work of Rich Hickey, famous for making the Clojure language.
zengid
·قبل 9 أشهر·discuss
Heard about this watching Casey Muratori's "The Big OOPs" talk [0]. Thought it couldn't be _that_ Hickey, but turns out it was!

[0] https://youtu.be/wo84LFzx5nI?si=SBv1UqgtKJ1BH3Cw&t=5159
zengid
·قبل 10 أشهر·discuss
> In the end, I decided on C Sharp, even though I had never used it professionally

I love C#, I use it every day, but who makes a decision like this?
zengid
·قبل 3 سنوات·discuss
Ok but is the front-end in React Native?