HNHacker News
TopNewBestAskShowJobs

hopia

254 karma · joined January 14, 2020

submissionscomments
hopia··on On Marketing Haskell
So what kind of bugs do you commonly experience then in Haskell programs?

From my limited experience I agree that debugging a bug that passes compilation is more difficult than on other platforms.

hopia··on Remote work means anyone can take your job
I've made the same observation. Does it have something to do with US tax or other regulations?
hopia··on Fast high-level programming languages
What an odd bunch of languages to benchmark.

Why wasn't Go, Haskell, Java or OCaml even considered here? Seems much more appropriate than the likes of Javascript for scientific computations.

hopia··on Pretending OOP Never Happened
So then why doesn't "98% pure functional programming" work either as the author puts it?
hopia··on React Native for Windows and Mac
Wouldn't Flutter be the killer app to Dart as Rails was to Ruby by your analogy?
hopia··on Enigma: Erlang VM Implementation in Rust
Erlang VM is consistent/predictable in terms of latency, it's engineered that way. For pure computational performance you won't find it optimal.
hopia··on Enigma: Erlang VM Implementation in Rust
A new Erlang VM with just replicated functionality is a fairly hard sell to the Erlang/Elixir community, who brag with the industrial track record of the BEAM.

I believe you'd get much more interest if there was some ambitious new promise for this new VM, such as 10x sequential performance etc.

hopia··on Ask HN: I'm a software engineer going blind, how should I prepare?
https://www.vincit.fi/en/software-development-450-words-per-...
hopia··on Phoenix LiveDashboard
Gleam seems like effort in the right place, I'm looking forward to seeing it in the wild!

Since we got you here, can you tell us what's your plan with static type checking for message passing semantics? From what I understand, that's the hard part about producing a static type checker for BEAM systems.

As for things like gen_server, is the idea currently that you simply give type definitions to callbacks, allowing the gen_server to model its state with types?

At first glance, I also don't understand yet how parametric polymorphism works. Is it implemented at language level?

hopia··on Phoenix LiveDashboard
That's a great explanation for a soft real-time system!

However, I meant that I always assumed that BEAM prioritized low consistent latency at the expense of high throughout (but without providing hard real-time guarantees). And the mechanism being that preemptive scheduling and counting those reductions so no single process is able to hog the entire system's resources for expensive computations.

While these benchmarks may not be reflective of the true performance it seems that Phoenix has a smaller throughput but lower latencies than most of its peer group in them.

hopia··on Phoenix LiveDashboard
> BEAM is by default tuned for throughput over latency

I thought it's exactly the other way around.

I Always assumed BEAM is built for concurrent, consistent low latency IO. The benchmarks seem to vaguely reflect that.

hopia··on What I Wish I Knew When Learning Haskell
Wow, these all look like well crafted. What's your web framework of choice with Haskell?
hopia··on What I Wish I Knew When Learning Haskell
Sounds like you would be better suited using some form of dependently typed system as far as type systems go.

If I understand you correctly now, a functional language with no real type system (and thus no such compiler enforced constraints) like Elixir would be imperative in your book and therefore more suitable to facilitate constantly changing business requirements.

Thanks for taking the time to detail your thoughts for me!

hopia··on What I Wish I Knew When Learning Haskell
> yet is an area where functional languages are uniquely poorly suited

Can you clarify if you mean that the type system gets in the way here, or the same would apply to even dynamically typed functional languages?

I'm trying to understand if you think a static type system is the hindrance here, or the language being functional in paradigm.

hopia··on What I Wish I Knew When Learning Haskell
It's for runtime debug logging after all, not intended to solve those issues.

Space leaks I'd like to read more about but writings about them are a bit hard to come by. Recommendations?

hopia··on What I Wish I Knew When Learning Haskell
Why would you want to print inside a pure function though?
hopia··on What I Wish I Knew When Learning Haskell
I find myself coming back to this for various stuff all the time. It's a great reference that touches basically everything important for writing real apps with Haskell.
hopia··on What I Wish I Knew When Learning Haskell
The IDE problem is still a major pain in Haskell. However, for now there are just I think 2 main options to choose from, and it's fairly straightforward. Still, not everything works as expected yet.

We've come a really long way in just the past 3 years with IDE stuff. I suggest you give it another try if you're still interested in diving into Haskell.

hopia··on Untangling microservices, or balancing complexity in distributed systems
Can you expand on this for us who do not work at large companies with massive scale services?
hopia··on Why I’m Leaving Elm
What did you settle on, considering you were otherwise Haskell focused?
hopia··on Ask HN: How to turn a “toy” side project into a business?
That's a good idea. Does it work?
hopia··on Clojure on the Desktop
I don't think purely about Dart, originally it seemed to be aimed as a technically more robust cross-platform competitor to React Native. Its implementation has good merit in that regard.

That said, it may well not survive nearly as long as RN will, time will tell.

hopia··on Clojure on the Desktop
Why is that? You mean that you're worried about Google calling quits on Flutter sometime soon?
hopia··on Hague court orders Dutch state to pay out over colonial massacres
Not all European nations were colonizers, some were instead victims of colonization. Are these European states eligible for colonial reparations as well?
hopia··on Hague court orders Dutch state to pay out over colonial massacres
Right, and what do the ex-USSR states get from the USSR's successor state Russia as compensation?

I believe this swamp would be bottomless, and not every nation or victim who suffered from wrongdoings of others would get paid anyway.

Edit: victim

hopia··on It's not what programming languages do, it's what they shepherd you to
You generally would not put logging into pure functions as that would be fairly pointless. You only log in the IO actions where you can log freely anyway.
hopia··on It's not what programming languages do, it's what they shepherd you to
Writing EDSLs (E for embedded) is fairly common in Haskell. I don't know if it's as easy as with Lisp macros though since I have no exposure to that.

Many DSLs are written on Haskell (Elm and Purescript come to mind) as well.

hopia··on Concurrent Programming, with Examples
Elixir and Clojure are not pure functional languages at all. They allow you to perform side effects freely, such as sending messages to different threads. They're not reflective of what the actor model would look like when implemented in a more purely functional language.

Moreover, I was mainly referring to using the actor model in a language with a static type system of functional languages (ML). What would be the type of the mailbox? The message? I believe even Facebook (Whatsapp) has struggled to find a solution to this question, they're developing a statically typed language on top of BEAM right now.

There's been plenty of good discussion around implementing a strong static type system around BEAM, here's some bits for reference: https://elixirforum.com/t/how-hard-would-it-be-to-have-a-str...

hopia··on Concurrent Programming, with Examples
Yep Erlang is fairly procedural as a language in a sense. I don't think being functional was ever a priority, more like a side-effect. I don't know how mailboxes and message passing would really work in a purely functional language anyway, could be awkward to work with them. Particularly with a functional (ML or what have you) type system (how to type mailboxes?).

> it doesn't help with exploiting more cores.

Yeah you're right, I believe the aim is to get rid of those garbage collection pauses for better concurrency (not parallelism).

From what I understand, GHC can do pre-emptive or cooperative scheduling. Pre-emptive being better for concurrency, just like Erlang does it.

hopia··on Concurrent Programming, with Examples
Do you refer to Erlang excelling in distributed concurrency, due to how its built to rely on the actor model? Or Erlang also excels in concurrency on a single machine?

Btw, what are some of those other things hampering Haskell's performance with parallel computing? Wouldn't the garbage collector mainly produce pauses instead of really destroying parallel performance? Although a concurrent garbage collector has recently been merged to the nightly GHC.

← PreviousPage 2 of 8Next →