Live data from Hacker News

Driving with D

dlang.org

1–10 of 186 posts

Re: Driving with D

#4
post #2

Any reasons D never caught on more? No big tech company anchor behind it?

Challenging to overcome languages like C++, Rust, Java, and C#. D seems to sit somewhere in between, a better C++, but with (optional) GC. The thing is, Java and C# are already making strides into that space.

Re: Driving with D

#7
post #2

Any reasons D never caught on more? No big tech company anchor behind it?

Challenging to overcome languages like C++, Rust, Java, and C#. D seems to sit somewhere in between, a better C++, but with (optional) GC. The thing is, Java and C# are already making strides into that space.

I am curious to see where Java are C# are making progress towards optional GC.

This specific article talks about using No GC aka "betterC".

D has GC by default; the use of GC is convenient and mainstream as most popular languages show - Java/C#/Python etc. What D gives is the unique ability to do No GC programming for the cases where GC is not desirable. Very few languages offer this capability.

Zig is interesting in this arena, but it approaches the problem from the other angle. It is manual memory management by default, but you can explicitly choose which memory management technique you want to use - at compile time.

Re: Driving with D

#8
post #5

I hate to be that guy, but is this legal?

Almost certainly. Basically all "under the hood" mods like this are— street legality for a vehicle you build or modify yourself is a surprisingly narrow band of requirements that are mostly around safety equipment like lights, horn, etc:

https://en.wikipedia.org/wiki/Street-legal_vehicle

The much higher bars to clear are when it comes to a device that you offer for sale to others for them to operate on the road.

Re: Driving with D

#10
post #5

I hate to be that guy, but is this legal?

Good question!

It is. I contacted a VicRoads approved engineer in regards to this project, and I received the all clear. I've been pulled over by cops, and they were cool with it.

My insurance is ok with it, too.

It does have a software watchdog, and failing that, the gearbox's hydraulics have a safety mechanism that allows for some limited driving.

Post reply on HN