Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
verttii
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
61.
▲
by
verttii
7y ago
Personally I find functional style awkward in js. Mostly because data is not immutable, there are no functional operators (composition, application etc.) and no algebraic data types + pattern matching. But most importantly, prototypal inher
62.
▲
by
verttii
7y ago
Many functional languages acknowledge this and are not pretending to have low-level language facilities. Instead, they have built-in mechanisms (FFI) to interface with those low level languages whenever needed.
63.
▲
by
verttii
7y ago
Haskell's focus is arguably making correct software, not the fastest implementations. Such intensive focus on correctness is not usual. In that light I do feel it's somewhat under-represented.
64.
▲
by
verttii
7y ago
Trails in Finland are spotless. But I guess that's cos there's just not many people to begin with.
65.
▲
by
verttii
7y ago
Actually nowadays it's discouraged to use list comprehensions in Haskell. Even though he didn't complain about it, Python has very poor facilities for functional programming overall.
66.
▲
by
verttii
7y ago
Distribution itself might be a world of pain depending on the nature of your application. For example stateful apps where low latency is expected.
67.
▲
by
verttii
7y ago
Load testing tools like Tsung.
68.
▲
by
verttii
7y ago
So what's the point of attempting to max out the count of idle connections on some cloud engine?
69.
▲
by
verttii
7y ago
But in this concrete case his point is valid, I'd likewise expect Erlang's BEAM to outperform node.js in concurrency any day of the week. Elixir being new is fairly irrelevant because it compiles down to the same erlang BYTE CODE.
70.
▲
by
verttii
7y ago
I'm writing most of my apps in Elixir which is also functional. I got no problems wiring side effects with it despite it being less imperative than some C#/Java/friends. In fact, I'd write high availability apps on Elixi
71.
▲
by
verttii
7y ago
Got it, I'll keep an eye on this. Thanks for this recommendation!
72.
▲
by
verttii
7y ago
The best resource for me has been Matt Parsons' blog: https://www.parsonsmatt.org/
73.
▲
by
verttii
7y ago
Thanks, I'll switch to it now based on your recommendation. Desperately want a decent Haskell editing setup, the bad tooling is killing my productivity and making me consider quitting Haskell. Edit: Ok so I tried it. Template Haskell s
74.
▲
by
verttii
7y ago
We absolutely need more hands-on Haskell tutorials and blogs. I've been massively more productive with Haskell with the help of just a few well written blogs that are full of tutorial posts. We got a lot of books detailing various type
75.
▲
by
verttii
7y ago
Are you using that? Doing Haskell on vscode has been a painful experience for me.
76.
▲
by
verttii
7y ago
I guess it ultimately boils down to productivity. I mean that's what high level programming languages are built for to begin with right?
77.
▲
by
verttii
7y ago
The real question is is it worth the time & effort.
78.
▲
by
verttii
7y ago
Yeah it's a gamble. It didn't work against the USSR in 1968 but it did work with the Baltics in 1991. China is as strong and determined as ever, I really don't see any way the protesters would get what they ultimately want.
79.
▲
by
verttii
7y ago
OK Thanks for adding some context! What I'd do is simply break down the larger pure function into smaller pure functions and sequencing them in the monad. This way you would still retain purity with your functions but you could log eve
80.
▲
by
verttii
7y ago
Haskell doesn't work that way at all. If you have variables inside a function, due to laziness their values may or may not ever be computed. Moreover, Haskell compiler sort of reduces the equations so the functions are not imperative a
81.
▲
by
verttii
7y ago
Why would I need logging inside a pure function?
82.
▲
by
verttii
7y ago
Countries who have successfully gained independence have often sacrificed a lot of blood for it. And built strong armed forces to back that independence up with. Whatever we may think is morally right, HK does not seem to be putting togethe
83.
▲
by
verttii
7y ago
> You defy your own argument. If that's how you design application, what's the point of bothering with side effect isolation then? I don't understand this. If you have a monad like do ... _ <- doSomething arg1
84.
▲
by
verttii
7y ago
What about runtime stuff? I've found Haskell is very good at abstracting away your concerns about the runtime considerations and sometimes it will come back to bite you. I mean all that stuff you want to see into when you're runni
85.
▲
by
verttii
7y ago
Interesting. Any input on erlang vs elixir debate? Which so you prefer as your primary tool personally?
86.
▲
by
verttii
7y ago
Not only that, but a lot of the state is essentially the same for many/all users/connections and can be shared. Let's say in a chat app with a Redux setup I'd maintain channel users, messages, own profile details etc. in
87.
▲
by
verttii
7y ago
Out of interest, what are the other problems you've encountered with it? We're considering porting our whole app to LiveView.
88.
▲
by
verttii
7y ago
it's syntactic sugar
89.
▲
by
verttii
7y ago
What would you say are some of the main benefits you gained with your journey with Haskell, beyond coming across a lot of abstract concepts? I'm struggling to justify spending more time on picking up Haskell myself as I can't see
90.
▲
by
verttii
7y ago
I've posted questions there before but unfortunately got no replies. However, some friendly folks at Slack helped me a lot.
More ›