Better HN
topnewbestaskshowjobs
Log inSign up

gb

682 karma · joined Aug 21, 2007 (19y ago) · 143 submissions

Submissions

comment 4y ago · link · parent

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.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

It's a joke about Among Us.

comment 6y ago · link · parent

Really nice. I tried something like this many years ago in Flash, but the results this can produce are far more impressive!

comment 6y ago · link · parent

If you scroll down a bit there's more info: https://www.thisdx7cartdoesnotexist.com/#faq

comment 7y ago · link · parent

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.

comment 7y ago · link · parent

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”)

comment 7y ago · link · parent

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

comment 7y ago · link · parent

Also related, the link/background colour combination fails WCAG contrast guidelines.

comment 7y ago · link · parent

https://github.com/dhall-lang/dhall-lang seems like it might have been a suitable candidate here also.

comment 9y ago · link · parent

I don't think it's mentioned anywhere in the poster, but it's also perhaps worth noting that this came out of a survey, it wasn't just dreamed up by one person / a few people.

(A tweet thanking survey respondents: https://twitter.com/lambda_conf/status/803695274896093184)

comment 10y ago · link · parent

An advantage of using the most general signature possible is it restricts the things you can actually do with the values involved, which can make it easier to provide correct implementations.

comment 10y ago · link · parent

There's some work towards that in PureScript: https://github.com/kRITZCREEK/psc-ide provides an interface for multiple editors, seems like Atom, Emacs, Vim and VS are available currently.

comment 12y ago · link · parent

The main advantage is when doing something like this is Haskell the code you pass around can't have arbitrary side effects, so you don't actually need to worry so much about where it is called.

comment 12y ago · link · parent

Perhaps no evidence was found because people from the future have seen this paper and therefore know not to reveal themselves this way!

comment 12y ago · link · parent

There's a similar project from 2005, based on blog posts: http://www.wefeelfine.org

comment 12y ago · link · parent

The exact quote from the linked BBC article is:

"In the most serious crimes [such as] child abduction communications data... is absolutely vital. I love watching, as I probably should stop telling people, crime dramas on the television. There's hardly a crime drama where a crime is solved without using the data of a mobile communications device."

18.

David Cameron: TV crime dramas prove we need warrantless electronic surveillance(boingboing.net ↗)

19 points · by gb · 12y ago · 27 comments

19.

Git: The tree of possibilities for the curious designer(medium.com ↗)

1 points · by gb · 13y ago · discuss

comment 13y ago · link · parent

Lifting for strength and lifting for large muscles are actually quite different. It is likely a huge bodybuilder type will be strong relative to the average person, but that's not their primary goal, and correspondingly you can be strong without that look too.

21.

No to NoUI(elasticspace.com ↗)

18 points · by gb · 13y ago · discuss

22.

HTML5: 10 Provocative Predictions For The Future(readwrite.com ↗)

4 points · by gb · 13y ago · discuss

comment 14y ago · link · parent

The article has been amended:

"Updated 11/19/2012@10:15am: AMD contacted us with an official denial of the story and stated that Kaveri and the big cores are still on track."

comment 14y ago · link · parent

Certainly delete can be useful, but nulling a property has almost the same effect (apart from hasOwnProperty still returning true) - if you're looking at optimising at the level this article is talking about avoiding delete might well be sensible.

25.

John Carmack discusses the art and science of software engineering(blogs.uw.edu ↗)

271 points · by gb · 14y ago · 71 comments

comment 14y ago · link · parent

Coincidentally I just started working on one last weekend too. http://github.com/garyb/fiction

It's more Scheme influenced (but not at all RnRS compliant) and as of about half an hour ago has working define-syntax/syntax-rules style macros.

The code isn't as nice though ;). I just wanted to get it working so I could rewrite it in itself.

comment 14y ago · link · parent

Also the text is fully justified, which is generally not the way to go on the web.

comment 14y ago · link · parent

I didn't read it is arrogance, he's contrasting the praise he was receiving at the time with his own opinion of Paul Rand's genuis.

29.

Why the Mobile experience shouldn't equal desktop-lite(raymosley.posterous.com ↗)

1 points · by gb · 14y ago · discuss

comment 14y ago · link · parent

Clearing or filling large areas of <canvas> is cripplingly slow in every browser I've tried so far, so I'd assume it's that.

Hopefully that'll be worked on at some point in the not too distant future as it's one of the biggest problems I encounter when dealing with canvas at the moment.

12345