Back to News
Advertisement
Advertisement

⚡ Community Insights

Discussion Sentiment

90% Positive

Analyzed from 387 words in the discussion.

Trending Topics

#error#exceptions#nice#opend#language#haven#various#ways#handling#forward

Discussion (14 Comments)Read Original on HackerNews

WalterBrightabout 2 hours ago
I haven't announced my keynote yet, but it's about various ways of handling errors and their tradeoffs. This has inspired some spirited debate in the D forums! I'm looking forward to engaging with everyone.
gregdaniels421about 2 hours ago
Ages ago in C++ there was the hope of having the standard library give more error codes and use error values instead of full exceptions. Zig has some excellent innovations in that direction, any hope of that in D?

Edit: I think it was called "Herbception"s after Herb Sutter, and it really sounded like a good idea to me

WalterBrightabout 1 hour ago
It's been a while since I looked at Zig. I couldn't say anything intelligent about it without some study.

I used to be a big fan of C++ exceptions, but eventually soured on it for various reasons. Here's an article partially addressing it from a while back:

https://dlang.org/articles/exception-safe.html

swyx31 minutes ago
would you ever do an SF edition? would be happy to host for you. i do a lot of conferences.
macoovacanyabout 1 hour ago
Going to include the common lisp condition system in the comparison?
WalterBrightabout 1 hour ago
I tried Lithp a couple times, but it never caught on with me. I wouldn't know what the best techniques for Lithp error handling would be.

I can never get past the ugly syntax.

gregdaniels421about 2 hours ago
First day seems very LLM heavy, and sounds quite odd for Phobos 3. I would like to see Phobos 3 be more betterC forward, since I have found D to be nicer than C for WASM, but you can't use most nice things. Having a default RAII vector class for betterC and a hashmap would be super nice too.

Edit: Also would be nice to adopt move and copy semantics even closer to C++ and maybe need less explicit moves, and ideally less mess with calling __xdtor when trying to do RAII

destructionator32 minutes ago
we shipped druntime on emscripten on the opend side almost two years ago, supporting everything but threads and exceptions (i tested on emcc 3.1.69, i heard a later version of emscripten broke, im not sure). see my blog post from release time: https://dpldocs.info/this-week-in-arsd/Blog.Posted_2024_10_2...

there's a contributor working with both upstream and opend adding wasi support as well, and he also got exception support working, we'll probably ship that next month.

so the full d story on wasm is progressing too.

gregdaniels42126 minutes ago
What exactly is the openD Canon D split about, and as a regular person, which one should I use? Any other details you could give, or background? I haven't followed any of that and have no clue.
qwe----3about 1 hour ago
I don't know why but dlang continues to draw me - I've really enjoyed many of the talks in the past
swyx32 minutes ago
for those (like me) completely new but interested in new programming languages - can you or similar minds summarize the current appeal?
zem26 minutes ago
it's an evolutionary (as opposed to revolutionary) language; it is in many ways a reimagining of c++ based on decades of observing the latter's flaws and weaknesses in the real world. if you're in the c or c++ ecosystem already you will likely find D a pleasant set of improvements to c++.
OSaMaBiNLoGiNabout 2 hours ago
Good language.
WalterBrightabout 2 hours ago
Most elegant language!