Better HN
topnewbestaskshowjobs
Log inSign up

grumpyprole

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

Submissions

comment 6y ago · link · parent

And Acorn (fruit of the oak tree), Tangerine, Blackberry and of course the Raspberry Pi.

comment 6y ago · link · parent

I am very impressed with the recent changes happening to Java, all of which seem very carefully thought out and planned, keep up the good work!

comment 6y ago · link · parent

> Therefore the real advantage of Loom user-mode threads and co-routines is syntactical programming convenience. That's the real innovation in Loom!

It's an interesting alternative to Async-Await / Haskell Monads / F# workflows for sure; and a better fit for Java. But I think some credit is also due for languages like C#, F# and Haskell for providing some healthy competition and prior art in this area.

comment 6y ago · link · parent

> You can't eliminate the complexity; only move it,

Yes and by using null-in-every type for your messaging, now you've pushed the problem out of your app and published it to the world.

comment 6y ago · link · parent

> Pretending it doesn't exist would cause more trouble in the real world than letting it be

I don't agree at all with this point. RDBMS types for example are non-nullable by default. Protobufs, XML and many other exchange formats also have optional types but not null added to every type. If you want better interoperability with programming languages, I think it would be better to go after e.g. IEE754 support.

comment 6y ago · link · parent

A huge improvement over JSON, but you still implement Tony Hoare's billion dollar mistake! There also appear to be no schemas / static types or sum types (the dual to records)? A schema would allow to you to overload the string literal, rather than require all those prefixes.

A data-exchange format is essentially developing a mini-language. Even if we prohibit abstraction, we still want rich static types and the ability to define new types (algebraic types, nominal types). Taking inspiration from programming language theory, will hopefully help avoid a result like Google Protobufs, which is awkward, ad-hoc and non-compositional.

comment 6y ago · link · parent

You do raise a very important point. At my organisation, Apache Avro was selected by the Java Devs due to the "cross-platform" marketing. However, they found out after it was too late, that the C/C++ implementations were too buggy/incomplete to effectively interoperate with the Java versions.

comment 6y ago · link · parent

Performance is the least of my concerns owning an Intel laptop. Intel's obsession with it is why their laptops sound like jet engines, scorch laps and have lacklustre battery life. If I was Apple, I would advertise the the improved quality of life from using an iPad-like laptop.

comment 6y ago · link · parent

I don't like many of the syntax choices either (e.g. the function return type syntax borrows from, but is not consistent with ML/Haskell). However, the language and tooling is already a huge improvement over C and there is already a significant community and lots of momentum. I wouldn't let a few syntactic warts put me off what could be a major improvement in the standard of systems programming.

comment 6y ago · link · parent

That Amazon, Facebook, Apple, Microsoft and other tech giants have become so big, is because competition is not always possible and free-markets do not regulate themselves. How can anyone compete with Amazon in its present form with hundreds of giant distribution centres worldwide? How can I create a competitor to Facebook and get even one person interested, if the other one billion are still on Facebook? How can I produce a competitor for the iPhone and get millions of apps ported?

comment 6y ago · link · parent

I'm not convinced the premiums paid (taxes paid by corporations) match the risk and payouts given, it's only been 12 years since the last hundreds of billion dollar bailout. But yes, capitalism alone does not work.

comment 6y ago · link · parent

I think it's fair. Unix has a lot of legacy baggage. It's largely terminal-based with three character folder names and two character commands, a monolithic kernel, the C programming language. In contrast, Acorn's ARX was fully graphical, used a microkernel and was written in Modula 2+/3. It sounds like the hardware wasn't quite ready for it though.

comment 6y ago · link · parent

> It doesn't matter if your functions are pure if they return a unique data type for your API or library that is not understood easily by the caller.

If it's an abstract data type, it doesn't have to be understood by the caller, it just has to be passed to another "lego brick" which understands the abstract interface. If it's a structured data-type, then there's no reason why it shouldn't be understood by the caller, the type should tell you how to consume it. I do not understand your point.

> So the solution is to make that data easily convertible or generic.. and guess what? That's no different than doing the same in an OO language

I guess you mean structured data types here? But you have missed my point completely about side-effects, it is side-effects (coupling via back-channels) that prevent composition, in general, in an OO language. OO languages also typically have an obsession with nominal types that can impede reuse.

> The key ingredient in making software reusable and portable is the talent and experience of the engineer, regardless of language.

You appear to be suggesting that languages/tools don't matter? Why not aspire towards languages that encourage safe composition and re-usable software? Your argument reduces down to "good motorcyclists don't need helmets".

comment 6y ago · link · parent

If languages adopted structural typing, rather than nominal as the default, then it would be much easier to align the types (e.g. projection/renaming of columns). Most FP languages have a limited form of structural typing with tuples.

comment 6y ago · link · parent

It has to be pure functional programming to get the full benefits of compositionality. Most mainstream "functional programming" is not necessarily pure and side-effects are not controlled/tracked. Analogous to how "mostly secure" is not secure, "mostly functional" does not get the full benefits.

Pure functional programming is complex, one has to compose effectful functions differently to pure functions. But the pieces do really fit like Lego bricks, especially when the same mathematical abstractions are used consistently. The Haskell community has been extremely effective at creating such consistency, by promoting various abstractions using category theory as a guide. The object-oriented community is not so different in this regard with their promotion of "patterns".

I've been writing Haskell professionally for 8 years. The problems with Haskell are the tooling, language stability, the learning curve and the difficulty of reasoning about performance, especially space usage. But composition and re-use works.

comment 6y ago · link · parent

Developers spend most of their time reading other peoples code, so yes, one does have to learn the less sensible alternatives, if you choose this tool. It's called historical baggage for a reason.

comment 6y ago · link · parent

Google are not much better. They supported my Pixel C for 2 years after I bought it (2017-19); and it was more expensive than a Samsung. I basically got scammed. Never again. I've given up on disposable tablets.

comment 6y ago · link · parent

Yes Standard Chartered does have its own strict Haskell scripting language (Mu). But it mostly wraps C/C++ quant libraries, it's used as a alternative to Python (because Python is a bad idea at scale). GHC is used too and is what Mu was built in.

comment 6y ago · link · parent

You do have a point, with Mac the choices have been made for you. I guess the most mac-like distro is probably Ubuntu. If you pick the LTS, you might even have a smoother ride than the macOS yearly updates.

comment 6y ago · link · parent

> The visuals of Mac are vastly superior to any flavor of Linux I've tried.

This is subjective. I think the MacOS UI looks and acts like a toy. My Linux machine has a solarised theme (I can toggle light/dark) with minimal window borders (i3, polybar). I think it's much more tasteful than MacOS. GNOME looks better too and it's themeable, unlike MacOS. But this is all of course just my opinion.

comment 6y ago · link · parent

This is anecdotal. My own anecdote is that we've had far more trouble with my wife's MacBook than my NixOS ThinkPad which just works, even after upgrades.

The Linux experience depends on the distribution, software and hardware you choose. You need to choose carefully.

comment 6y ago · link · parent

You've missed off possibly the biggest advantage of ditching Intel. A perfectly usable machine without jet engine fans and a scolded lap. I don't use Mac's, but I see this as good for the industry.

comment 6y ago · link · parent

Are you sure? Packages are signed for most of the mainstream distributions.

comment 6y ago · link · parent

The absence of nullable references is completely orthogonal to pure FP and static typing.

comment 6y ago · link · parent

Unfortunately as much as I love Linux, you are absolutely right. But I think it more of a social problem than a technical one.

comment 6y ago · link · parent

Most mainstream statically typed languages use subtyping, that is why they permit equality comparisons of different (sub) types. But they should and do obey all the usual mathematical laws, associativity, transitivity etc.

comment 6y ago · link · parent

The average developer spends most of her time reading other peoples code, so avoiding having to understand == is a luxury most will not have.
1
303132
69