HNHacker News
TopNewBestAskShowJobs

hopia

254 karma · joined January 14, 2020

submissionscomments
hopia··on Bashible: An Ansible-inspired deployment/automation tool written in Bash DSL
Would NixOps fall into the same category?
hopia··on Professor Frisby's mostly adequate guide to functional programming (2018)
In principle, you wouldn't do any logging, even debug logging, in a pure function. It always returns the same output for the same input anyway. You'd just check its output.
hopia··on Professor Frisby's mostly adequate guide to functional programming (2018)
If you're serious about picking up the language, I urge you to simply start building something. Build something you can relate with, something similar that you've already built with a different toolset. Like a web server.

A lot of the fancy abstractions don't make sense until you have a problem where you'll actually need them. Artificial problems, like some algorithmic assignments in books just don't click nearly as well to many of us.

hopia··on Ask HN: What projects are you working on now?
Sounds awesome, is there anywhere I can follow the progress?
hopia··on “Evolving Erlang into a modern statically typed programming language”
I agree, I've had nothing but trouble with it.

Just the other day, I don't know if serious or not, I read the Phoenix framework's author say I solve 100% of my dialyzer issues by not using dialyzer on Slack.

hopia··on Object-oriented Haskell surprisingly appealing
The benefits of introducing OOP to Haskell are unclear to me. Maybe the author can point out what the purpose of this is?
hopia··on On Being a Generalist
Well in that case the definition of a generalist is much more narrow. Would we call a mathematician who is comfortable with all topics within algebra a generalist?
hopia··on On Being a Generalist
I was also thinking if it's like generalist in tech. Or does Google seriously expect their software engineering recruits to generalists who are proficient in design, copy writing, B2B sales, digital marketing, management etc.?

Edit: phrasing

hopia··on On Being a Generalist
What I understood is this author's definition of a generalist is someone who expands his scope beyond just programming. To things like design, business development, hr management, recruiting, raising funds etc.

Generally, it may not be so common to find an individual who's almost equally as passionate about all of these things. In the end we got limited time on this planet and can't learn everything.

hopia··on Show HN: From a “hello world” project to a complex messenger
Looks elegant, good job!
hopia··on 6 months in and $1k MRR: my biggest mistakes so far
Gotcha, makes sense.

I suppose subscription model makes more sense for apps that basically reside online or at least interact with a web server.

How you make lots of small products solving a single problem well is cool though! I could see some of these kinds of concepts evolving into a decent subscription business.

hopia··on 6 months in and $1k MRR: my biggest mistakes so far
Can I ask why you picked this model instead of a subscription based model?
hopia··on Simple Systems Have Less Downtime
Microservices make you architect your whole service differently. The communication is essentially asynchronous message passing which may or may not make things more difficult.
hopia··on Flutter and Dart, or how to quickly build a mobile app without losing your hair
Dart has some annoying traits that hurt productivity with it. For example, the lack of union types or some kind of sealed classes is fairly annoying when the language is actually statically typed.

There's some work being done to overcome this but so far no solution has seen the daylight in practice.

hopia··on Show HN: Profit Hunt - Get inspired by profitable online projects
Yours is an open source project? The revenue logic there could be very different from a conventional web business.

I don't have any first hand experience with such a situation myself, but perhaps studying some successful cases could get you to the next step: https://www.indiehackers.com/interview/how-charging-money-fo...

hopia··on Show HN: Profit Hunt - Get inspired by profitable online projects
I'd advise getting other users to use it for free first before you dive into any paperwork. Basically, make sure you're solving a problem worth money for others first.
hopia··on Implement with types, not your brain (2019)
That was just a superficial example. If you include generics, template metaprogramming, auto derivations and such then you could achieve much more with code generation. My skills are just not advanced enough yet to fully utilize these in my programs.
hopia··on Implement with types, not your brain (2019)
In my experience it's much easier. A lot of my API relies on this. I even produce clients in other languages purely based on the API types which act as a form of specification.

Haskell's compiler will generate all the logic for serialization and deserialization, leaving me to only implement the actual business logic.

hopia··on Implement with types, not your brain (2019)
I don't know why you're getting downvoted (because of the tone?). As someone writing Haskell that name is as clear and concise as it should be.
hopia··on Implement with types, not your brain (2019)
For newcomers, the problem is exactly that they don't understand the type system. That's where soft documentation like examples would help a lot. I don't see why they would need to be mutually exclusive.
hopia··on Bastion – Highly-available distributed fault-tolerant runtime
I'm honestly no expert on the subject. I have virtually zero experience with Erlang language. And I don't know a thing about Rust. However, if that counts I have read large parts of Joe Armstrong's PhD thesis about distributed systems and written plenty of Elixir.

It may be wrong to say we need a better Erlang, but for modern web development we certainly could use a fair bit more compiler enforced type safety for writing more correct programs. Mostly due to the lack of a proper type system, Erlang is not particularly expressive as a language, although its primitives (processes & message passing) are well geared exactly for what it focuses on.

Erlang focuses strongly on fault-tolerance and subsequently on high availability, but I'm not sure this perk is so significant benefit anymore compared to various other runtimes spinning the wheels of your typical web server in a cloud setup. We rarely need to write servers anymore that keep running for many years straight without a restart, only patching code via hot reloads.

Just my take but since you asked, trading some fault tolerance for more correct programs would therefore probably be a fair trade-off for a new kind of Erlang.

hopia··on The general value of typed functional programming lies in leaving no edge cases
On the other hand, it's not a very advanced type level feature either to insist on total functions. I'm sure Rust's type system goes a lot further in enforcing a good level of type soundness.

Edit: typo

hopia··on The general value of typed functional programming lies in leaving no edge cases
Right, but the OTP doesn't make you deal with the exceptions upfront, only to architect your app in the way that they don't crash or infect other parts of the system.
hopia··on Bastion – Highly-available distributed fault-tolerant runtime
I was also wondering if this is aiming to be the Erlang for Rust developers, or rather a better Erlang. Either one would probably be worthwhile.
hopia··on Bastion – Highly-available distributed fault-tolerant runtime
Not knowing anything about Rust, I would imagine similar as those of Erlang's. Basically when you need servers than communicate with each other.
hopia··on OpenAPI 3.0.3 Specification Released
I absolutely would but my web framework doesn't have support for it.
hopia··on OpenAPI 3.0.3 Specification Released
With OpenAPI spec < 3 there's no support for sum types. This at least for me lead to semi heavy refactoring of the client lib (for Dart lang).
hopia··on Building a neural network from scratch in Haskell
Very few comments or type signatures, as well as formatting and syntax highlighting is a little odd there, make it less readable.
hopia··on Actix – Actor Framework for Rust
Right, but isn't what you say exactly concurrency instead of what we normally consider parallel computing, at least on a single machine? Depending on the implementation/runtime you may or may not need something like threads, which are a good concurrency primitive, for parallel computing.
hopia··on Actix – Actor Framework for Rust
Actor model really is for concurrency, not for parallelism.

For pure parallel computing it introduces unnecessary overhead because of the message passing. That overhead in turn hurts performance, which really is the only reason you'd want to compute in parallel.

← PreviousPage 3 of 8Next →