Hacker News new | ask | show | jobs
by albntomat0 992 days ago
Yes, and so are Python, Lisp, Haskell, and a million other languages that were available in 2010.

None of those are suitable options for an image decoding library on the range of WebP supported platforms.

2 comments

Modula-2, Ada, Object Pascal, D would be.

What makes them unsuitabe is lack of widespread compiler support across those platforms, if we ignore how long Ada has been available in GCC.

And Modula-2 is now in GCC as well.

Ada has the bounds checking, but doesn't (AFAIK) have a safe way to deallocate dynamic memory. At least as of now, there is a proposal to add something like Rust in the future. It also has memory unsafe concepts like specifying an address for a variable.
Yes it does, this isn't Ada83 we are talking about.

Well Rust also has unsafe, better not use it.

>None of those are suitable options for an image decoding library on the range of WebP supported platforms.

What makes these unusable for this task?

They need a large runtime and are slow to start up.
Is that true for all memory safe languages? Why?
> Is that true for all memory safe languages?

No. That is true for the list upthread (well, if you consider runtimes measuring a couple of MB "large", it's reasonable but quite arguable). It doesn't have much correlation with any feature.