Better HN
topnewbestaskshowjobs
Log inSign up

grumpyprole

4,485 karma · joined Jun 30, 2015 (11y ago) · 2,043 submissions

Submissions

comment 3y ago · link · parent

I also thought checked exceptions in Java were fantastic. They are a form of statically checked effects. I would like to see more of this sort of thing not less.

comment 3y ago · link · parent

Why is JS even relevant to this discussion?

comment 3y ago · link · parent

And this attitude is why it's a serious issue in our industry. You clearly don't take security seriously, to the point that it's a laughing matter for you.

comment 3y ago · link · parent

Yes Ada/SPARK is a great example.

comment 3y ago · link · parent

You might think that, if you live in a small world. I want memory safety, but I am otherwise not a big fan of Rust. Rust tries to be too high-level like C++, making it opaque where allocations are happening. For a low-level systems language, with embedded proofs, I quite like ATS, but Vale is also promising and more like Zig.

comment 3y ago · link · parent

> At some level you need languages that are not “memory safe”.

Perhaps as an escape hatch (unsafe Rust) or a compiler target, but ideally not as a "general purpose language" as Zig is marketed as.

comment 3y ago · link · parent

Maybe doing it for new projects is better than doing nothing?

comment 3y ago · link · parent

Where did you get the idea that jails are involved? Governments are clearly forming a position, if they fund new projects, they are quite likely to enforce that position. That's a significant market already.

comment 3y ago · link · parent

Sure one can write memory-bug-free code in x86 assembly too. But how can you prove it? ATS is an example of a low-level systems language where you can prove it.

comment 3y ago · link · parent

Yes seriously. The west is getting hacked and owned on a daily basis. The NSA recommendation shows that governments are starting to identify where the problem is.

comment 3y ago · link · parent

Memory safety is one aspect of quality yes, but is there any evidence Zig is a good fit for other quality aspects, e.g. static analysis tooling and correctness proofs? ATS is a low-level language that allows embedded proofs of correctness in the type system.

comment 3y ago · link · parent

Zig is not memory safe and therefore at risk, just like C/C++, of future government legislation that outlaws the use of memory unsafe languages for some or all projects. The risk of such legislation is not insignificant: https://www.itpro.com/development/programming-languages/3694...

Personally I do not see the point of building an entirely new language and ecosystem that does not fully address this issue.

comment 3y ago · link · parent

BASIC didn't really raise the abstraction level away from imperative statements and loops. It let us hack faster, but it didn't help us to write programs that were provably correct. I think that is what Dijkstra was getting at. He was worried students would think this was good enough. And he was right. BASIC influenced a generation, my generation. The generation that gave us arguably the next BASIC, Python. A language with little coherence, that mixes imperative commands and mutation with the lambda calculus; and has no static types. A language that makes easy tasks easier, but hard tasks harder.

comment 3y ago · link · parent

What an amazing release. Thank you to all that contributed and made it happen!

comment 3y ago · link · parent

JSR-133 was quite a few years after Java's release. But even after these changes, many problems remained. For example, standard library classes were often not thread safe out-of-the-box, even something seemingly innocuous like a date formatter class would malfunction in a threaded context. The rules around thread safety were also very complex, especially with regard to constructing objects. IMHO, it did not compare well with other languages around the same time built with concurrency in mind, for example Erlang. I was once very fortunate to meet Joe Armstrong and we briefly discussed Java, suffice to say he was not impressed by it.

comment 3y ago · link · parent

Java didn't initially ship with lock-free data structures, those came later thanks to Doug Lea.

comment 3y ago · link · parent

Java still doesn't provide persistent data structures out-of-the-box. IMHO these are more important than lock-free mutable data structures.

When one really does need shared mutable state, Haskell supports transactional updates to mutable state (STM), with optimistic locking and rollbacks. It's awesome, but unfortunately just not practically possible in any language with rampant untracked side-effects.

comment 3y ago · link · parent

Part of the problem was that Android 5 was an awful release. It was slow and buggy compared to 4.4, many internals had been newly rewritten. Folks were better off sticking with 4.4.

comment 3y ago · link · parent

You are stated this as a fact, can you provide a reference?

comment 3y ago · link · parent

Consider also that resolution is only one factor. Bandwidth is another. Digital movies are often full of compression artefacts, especially when there's a lot going on in the scene.

comment 3y ago · link · parent

Not sure why you are getting downvoted, but I agree. There is a learning curve to Haskell, which should not be surprising. Haskell is to Python what Python is to ARM assembly. ARM assembly has less of a learning curve than Python. There's simply much less to learn and it's much more flexible. But of course it's not at all productive and even harder to build correct software with.

Once the learning curve has been overcome, most would agree that higher-level languages are more productive. I am significantly more productive in Haskell than Python, especially for any highly non-trivial problem.

comment 3y ago · link · parent

Haskell is a well designed language. Designed by some of worlds best experts on programming language theory. I don't think it has any "Rube Goldberg machine aspects", Solidity on the other hand...

comment 3y ago · link · parent

Those aren't light editors! I use a bare bones emacs with all the UI turned off. Just a flashing cursor. It helps me focus on the content.

comment 3y ago · link · parent

They are also constrained languages which gives many advantages. POSIX regex will always execute in O(n), Perl "regex" are potentially exponential and can be a security risk in certain situations.

comment 3y ago · link · parent

I think of frameworks as essentially higher order functions, e.g. map/reduce, where one provides the function parameters. That many frameworks seem much more complicated than this is certainly not a good thing.

comment 3y ago · link · parent

Yes this is possibly why the author renamed the post. There certainly has been a problem of over-abstraction in the industry, with some of the most guilty parties being the frameworks (e.g. the infamous AbstractSingletonProxyFactoryBean from the Spring framework).

comment 3y ago · link · parent

When the wealth of the ruling class is under threat?

comment 3y ago · link · parent

PHP didn't scale for the number of users or the number of developers. Presumably that's why they built their own PHP-like language called Hack with static types and a new runtime.

comment 3y ago · link · parent

Agreed, and due to the way LLM works, misinformation tends to look very plausible.

comment 3y ago · link · parent

Agreed, extraordinary solutions require extraordinary justification.
1
91011
69