Readit News logoReadit News
gb commented on Ask HN: What are some cool but obscure data structures you know about?    · Posted by u/Uptrenda
gb · 3 years ago
The half-edge data structure, used in computational geometry.

I remember when I first discovered it, it drove home the point that choice of data structure can really matter - it made a bunch of problems I'd been working on much easier to solve, as it gave a different way of looking at things.

gb commented on PureScript and Haskell   blog.drewolson.org/puresc... · Posted by u/allenleein
christiansakai · 5 years ago
I really want to use PureScript, but I wonder why I should use PureScript if I already have TypeScript?

Besides, as far as I know, the PureScript part is only for the business logic, not for the rendering, etc like if you want to use React or Angular or pure DOM manipulation. The backend story goes the same (i.e, PureScript only for business logic).

With the extra tooling required (i.e, spago, bower) it seems pretty pointless to use PureScript these days, what am I missing? Someone please convince me to use PureScript.

gb · 5 years ago
PureScript isn't just for business logic at all - it has its own UI libraries, React bindings, DOM API bindings, and so on. It is more often used for front-ends than anything else that I've seen.

You only need to use one of spago or bower (spago being the recommended choice now), and that's because npm style dependencies are not suitable for PS.

As for why you'd choose it over TypeScript... well, you'd do so if you want to use a functional language that doesn't allow arbitrary effects and has a sound type system.

gb commented on How Not to Deal with Murder in Space (2020)   slate.com/technology/2020... · Posted by u/Hooke
emteycz · 5 years ago
Nobody said it can't be dealt with at all. Where's the justice in your approach though?
gb · 5 years ago
It's a joke about Among Us.
gb commented on Show HN: Random Roads   random-roads--edwardcunni... · Posted by u/edwardc
gb · 5 years ago
Really nice. I tried something like this many years ago in Flash, but the results this can produce are far more impressive!
gb commented on This DX7 Cartridge Does Not Exist   thisdx7cartdoesnotexist.c... · Posted by u/processing
blendergeek · 5 years ago
Can someone give me a short explanation as to what this is and why it is significant?

It looks quite interesting. I am basically looking for the ELI5 because I have never heard of a DX7 before and I don't know what the file that I was prompted to download was about.

gb · 5 years ago
If you scroll down a bit there's more info: https://www.thisdx7cartdoesnotexist.com/#faq
gb commented on Learning Haskell is no harder than learning any other programming language   williamyaoh.com/posts/201... · Posted by u/nuriaion
Dude2029 · 6 years ago
I would expect to get paid more though and that is not happening (except niche places). Same story with F# and Scala. Not worth it.
gb · 6 years ago
I don't know whether this is true or not, but either way, working with Haskell makes my job more enjoyable than if I was writing some other language anyway.
gb commented on Smartphones and Dematerialization   wired.com/story/iphone-en... · Posted by u/mpweiher
oska · 6 years ago
The trend described in this article was written about by Buckminster Fuller in 1938, except he called it ephemeralization [1].

Paul Graham wrote an essay on the same subject (iphones and ephemeralization) in 2010 and, unlike this piece, made reference to Fuller's early identification of the trend. [2]

Im my opinion, ephemeralization is a better descriptor of the trend than dematerialization. Bucky was an extremely careful user of language, to the point of coining his own words when he didn't feel any existing words served his purpose. I think he was right to not use dematerialization to describe the trend because it is manufacturing where you are not removing material (dematerializing it), rather you are simply not using it, or using less of it, in the first place.

[1] https://en.wikipedia.org/wiki/Ephemeralization

[2] http://www.paulgraham.com/tablets.html

gb · 6 years ago
The article did mention it:

> Dematerialization is an idea that goes back at least as far as the 1920s (with R. Buckminster Fuller’s concept of “ephemerialization”)

gb commented on PureScript 0.13 Release   github.com/purescript/pur... · Posted by u/valb
Scarbutt · 6 years ago
What happened to the original author of PS?

https://github.com/purescript/purescript/graphs/contributors

gb · 6 years ago
Life! :)

He still uses PS and chimes in on some issues, but doesn't really have time to work on the compiler anymore: https://twitter.com/paf31/status/941745900426215424

gb commented on 339 Bytes of Responsive CSS   blog.koley.in/2019/339-by... · Posted by u/arkokoley
caillou · 6 years ago
There is a small accessibility problem with the CSS presented on this page. The author set `text-decoration: none;` on the links, relying only on color to identify them. This should be avoided.

C.f. https://accessibility.oit.ncsu.edu/it-accessibility-at-nc-st...

gb · 6 years ago
Also related, the link/background colour combination fails WCAG contrast guidelines.
gb commented on A Case for a New Language   pl-rants.net/posts/case-f... · Posted by u/jasim
gb · 7 years ago
https://github.com/dhall-lang/dhall-lang seems like it might have been a suitable candidate here also.

u/gb

KarmaCake day682August 21, 2007View Original