News for hackers. Stuff that matters.

george_____t

Re:Functional Programmers need to take a look at Zig on Thursday April 30, 2026 @04:22AM (#47959717)
> I don't understand why Zig's `Io` is a "monad".

I don't see how it's true in any meaningful sense. It seems about the same as stating that any function is an example of the reader monad.

The whole point of monads in programming languages is as an _abstraction_ that allows one to ignore internals like how the IO token is passed around.

Maybe Zig is a language for people who are scared of abstraction. Otherwise they'd presumably be using something more powerful like Rust.

Re:Pandoc in the browser on Thursday February 05, 2026 @05:43PM (#46906469)
Possible thanks to GHC's new WebAssembly backend.
Re:Programming Languages Used for Music on Monday December 22, 2025 @11:03AM (#46355198)
Just to add some context, Strudel is TidalCycles ported from Haskell to JS. IMO, Haskell is a much nicer language for this stuff. Hopefully, now that GHC can output WebAssembly, someone can build a web-based music programming environment around the original TidalCycles instead.
Re:Show HN: New visual language for teaching kids to code on Tuesday November 21, 2023 @06:42PM (#38372275)
> even python might be too far from the CPU to be a good introduction to computing

That depends on what one considers to be the best way to introduce computing. I personally think kids are a lot less likely to be engaged by a bottom-up approach (start with "this is what hardware does") than a top-down approach (start with "you can make cool things with it").

Re:Show HN: New visual language for teaching kids to code on Tuesday November 21, 2023 @06:23PM (#38372048)
> AIUI, in this case, the major issue is that it is very tempting to try to impose a constraint that all intermediate states the code passes through are semantically valid. However while superficially appealing this turns out to be a crippling constraint.

This really isn't much of an issue in a language with holes as a first class concept, like Agda or Haskell.

Re:My views on NeoHaskell on Wednesday October 04, 2023 @07:53PM (#37773269)
It's quite frustrating to use a language that's so close to Haskell, but without being able to use all the libraries you're used to. And I think now that Haskell's own story for web frontend is improving, some of its appeal is fading.

Having used it in production for a while, tooling was poor, particularly IDE support, and anonymous records are in practice less of an obvious win than I expected. Plus I like laziness.

Re:Learn Physics with Functional Programming on Wednesday September 06, 2023 @02:45PM (#37409315)
What's impractical about Haskell?
Re:Leaving Haskell Behind on Thursday August 24, 2023 @05:39PM (#37254889)
It has been rapidly improving over the last few years, though this can mean it's difficult to keep up.

HLS (the LSP implementation) in particular is a pretty young project, and key compiler improvements which will help it improve are still landing.

Re:Leaving Haskell Behind on Thursday August 24, 2023 @05:34PM (#37254846)
It's listed after Cabal as an "alternative", so a lot of people will presumably ignore it if they don't see any reason why they'd want anything else.

I personally wish that page were even more opinionated, but it's politically tricky.

Re:Advanced Python Mastery – A Course by David Beazley on Wednesday July 19, 2023 @01:03PM (#36789669)
Python isn't the best language for exploring this sort of thing, by the author's own admission.
Re:New horizons for SPJ on Friday September 10, 2021 @05:13AM (#28479276)
That Haskell forum is newish and isn't used much. There's more discussion on r/haskell.