skocznymroczny

Joined 12 years ago

Karma
3,934
Submissions
1,384
Member since
Feb 18
View on Hacker News

Recent submissions

Comment · 21 days ago
Comment · 26 days ago
Assuming you mean h)g)f, you can do it in D. D allows you to write this:

f(g(h(x))) as x.h().g().f() or even x.h.g.f (parenthesis are optional).

Comment · 3 months ago
I think that's what it is. D IDE support is bad compared to C#/Java, but it's not that bad compared to C++. I think it's just templates don't play well with proper IDE support because it's hard to reason about the code when half of the code doesn't exist until compile time.
Comment · 3 months ago
Regarding web assembly, support is limited. There's been several efforts to support WebAssembly in D but they were one man efforts that never got finished and merged to the mainline D. The only support there is in the official D compiler is for the BetterC mode, which is a minimal mode with no garbage collection, no runtime and effectively no standard library. There's been some people doing some interesting projects in it but you have to reimplement a lot of basic stuff such as data structures just to get going and at that point you might wonder why not just use C/C++ instead.

There is a fork of D compiler called OpenD which has some WebAssembly support with garbage collection and standard library. I've used it, it works for the most part, but there's bugs and if you encounter any issues then you're on your own.

Comment · 3 months ago
Mostly self-inflicted wounds in form of climate pledges, climate taxes and such. Because of the goal to achieve zero emissions goal and climate neutrality, we abandoned cheap energy sources such as coal and pushed our heavy industries out of Europe to China. We still need those products, so we import them from China while wondering why European industrial segment isn't growing. Even in the clean energy sector, most solar panels come from China.
Comment · 4 months ago
Yeah, your family members will be more than happy to tag you once Facebook asks them who that person on a group photo is.
Comment · 4 months ago
That's not true. You are allowed to have a prioprietary/custom connector, you just have to provide USB-C option as a fallback.
Comment · 4 months ago
I'd say before Ubisoft, Valve was the one to really spearhead DRM by introducing online verification to play Half-Life 2. Before HL2, it was almost unthinkable for a game to require Internet access to be played and most copy protection relied on serial numbers and/or presence of the original game CD. HL2 was high profile enough to make people accept the restriction.
Comment · 6 months ago
I switched to Firefox when Chrome started messing with the ad blockers. Haven't really had any issues. I prefer developer tools on Chrome but I rarely need to use them anyway.
Comment · 6 months ago
It's just like subscription based MMORPGs that delay you as much as possible every step of the way because that's the way they can extract more money from you. If you pay for the tokens it's not in their benefit to give you the answer directly.
Comment · 7 months ago
Sounds like it would only work for a single room with not too many obstacles.

I guess the mapping capabilities vary greatly between vendors. I had a first gen Mi Robot vacuum and it was amazing. It would map the entire floor with all the rooms, then go room by room in a zigzag pattern, then repeat each room, having no issues going from one room to another and avoiding obstacles. It also made sure not to fall down the stairs. Then later it broke and I bought a more noname model and despite having lidar tower, it didn't perform as well as Xiaomi vacuum did. It worked for a single room, but anything more and it would get lost.

Comment · 8 months ago
I think most GC languages that compile to WASM don't use the built-in GC support in WASM, but just compile the GC to WASM also. Languages like Go, Java, C# have support for WASM.
Comment · 9 months ago
I like D in general, however it is missing out in WASM where other languages like Rust, Zig, even Go are thriving. Official reasoning usually included waiting for GC support from WASM runtime, but other GC languages seem to just ship their own GC and move on.
Comment · 9 months ago
Arguably, most of the metaprogramming in D is done with templates and it comes with all the flaws of templates in C++. The error messages are long and it's hard to decipher what exactly went wrong (static asserts help a lot for this, when they actually exist). IDE support is non-existent after a certain point because IDE can't reason about code that doesn't exist yet. And code gets less self-documenting because it's all Output(T,U) foo(T, U)(T t, U u) and even the official samples use auto everywhere because it's hard to get the actual output types.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton