Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
greener_grass
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
91.
▲
by
greener_grass
2y ago
In F# scripts you can add dependencies directly from Nuget like so: #r "nuget: NodaTime, 3.2.1" open NodaTime let now = SystemClock.Instance.GetCurrentInstant() printfn "%A" now
92.
▲
by
greener_grass
2y ago
Are you Velocio? Thanks for all the hard work! Sad that lufguss will probably become just another channel on one of the big platforms. RIP.
93.
▲
by
greener_grass
2y ago
JavaScript lambdas are better for FP than those in Python because they can be on multiple lines. If going untyped JS, then you don't have the same restrictions as Java. If going typed, then the TypeScript type-system is more powerful t
94.
▲
by
greener_grass
2y ago
A good "survey" of something that has been observed many times before. I'm not sure it adds any new insights, however.
95.
▲
by
greener_grass
2y ago
JavaScript is a very capable language. It has better functional programming support than Java and Python. It has fewer footguns that C++. You can start with a scrappy prototype then gradually add type-checking later. Of the mainstream langu
96.
▲
by
greener_grass
2y ago
You need the syntax if you want it to actually work well in practice.
97.
▲
by
greener_grass
2y ago
Haskell has do-notation which is a more general kind of this syntactic sugar
98.
▲
by
greener_grass
2y ago
> Is immutability exclusive to functional programming? No, but immutable defaults are powerful. E.g. in JavaScript / Python, the built-in lists and dictionarys (which are blessed with special syntax) are mutable. > Is the ability
99.
▲
by
greener_grass
2y ago
Then you end up with a pyramid of doom. Fine for small examples but it doesn't scale up easily. Rust has special syntax (`?`) for this AFAICT.
100.
▲
by
greener_grass
2y ago
I'm not convinced that you can follow all of these outside of Functional Programming. How can you "Make illegal states unrepresentable" with mutable state and sequences of mutations that cannot be enforced with the type sys
101.
▲
by
greener_grass
2y ago
I've always liked this - it follows the structure of a good academic essay
102.
▲
by
greener_grass
2y ago
But once upon a time the UK had higher cycling rates than the Netherlands. How did the Netherlands manage to overcome this back in the 70s and the UK has not?
103.
▲
by
greener_grass
2y ago
A great concept, but there's one big problem: many official bike trails are crap. Sometimes it's actually better to take the road, or you end up on a windy route that's near impossible to follow, debris everywhere, no right o
104.
▲
by
greener_grass
2y ago
So if Trump is against China, and China aligns with Russia, will Trump then support Ukraine? Interesting (and choppy) times ahead.
105.
▲
by
greener_grass
2y ago
They are both imperative / data-orientated languages and Rust has light functional programming.
106.
▲
Ask HN: Is Object Orientated Programming Over?
2 points
by
greener_grass
2y ago
|
5 comments
107.
▲
Gostak
(en.wikipedia.org)
3 points
by
greener_grass
2y ago
|
0 comments
108.
▲
by
greener_grass
2y ago
Why is it so expensive? Is it cost of production being passed on or did the marketing department decide to do some "prestige" pricing?
109.
▲
by
greener_grass
2y ago
> not viable for games > Unity devs run into So it's viable but not perfect
110.
▲
by
greener_grass
2y ago
I wonder if image based screen sharing (e.g. Google Meet) is the "worse is better" here? Zed collaboration sounds great, but what about all of the other apps I use? Image based sharing supports everything (poorly) automatically.
111.
▲
BazelCon 2024 Playlist
(youtube.com)
1 points
by
greener_grass
2y ago
|
0 comments
112.
▲
Ask HN: How to get into programming ASICs, FPGAs?
2 points
by
greener_grass
2y ago
|
2 comments
113.
▲
by
greener_grass
2y ago
A bit of the beaten path, but F# with Fable is a very powerful combination. On the server you can run ASP.Net using Giraffe, which is a Functional Programming layer with comparable performance to C#. On the front-end, you can write React in
114.
▲
Elm and finding your right path, with Evan Czaplicki [video]
(youtube.com)
2 points
by
greener_grass
2y ago
|
0 comments
115.
▲
by
greener_grass
2y ago
The Netherlands seems like the most sensible country on earth. How did they manage it?
116.
▲
by
greener_grass
2y ago
CPS might be the underlying structure, but that doesn't mean that CPS is the interface.
117.
▲
by
greener_grass
2y ago
Is there a variant of Prolog that is less dynamic with AoT compilation? Imagine if you can be in "dynamic mode" where you can add rules, facts, etc. in an adhoc way. Then, once your game is better defined, you can compile the Prol
118.
▲
by
greener_grass
2y ago
Some tech influencers pushed Zod - that's basically the entire story
119.
▲
by
greener_grass
2y ago
Why would you need A/V on an air-gapped system?
120.
▲
The Mad Men theory of drunk decision-making
(spectator.co.uk)
2 points
by
greener_grass
2y ago
|
0 comments
More ›