News for hackers. Stuff that matters.

gb

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.

Re:PureScript and Haskell on Friday February 26, 2021 @11:25PM (#26282559)
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.

Re:How Not to Deal with Murder in Space (2020) on Saturday January 09, 2021 @09:15AM (#25700520)
It's a joke about Among Us.
Re:Show HN: Random Roads on Sunday June 21, 2020 @12:48PM (#23593166)
Really nice. I tried something like this many years ago in Flash, but the results this can produce are far more impressive!
Re:This DX7 Cartridge Does Not Exist on Sunday May 31, 2020 @08:17PM (#23374344)
If you scroll down a bit there's more info: https://www.thisdx7cartdoesnotexist.com/#faq
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.
Re:Smartphones and Dematerialization on Sunday June 30, 2019 @06:52PM (#20321072)
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”)

Re:PureScript 0.13 Release on Friday May 31, 2019 @01:23PM (#20062976)
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

Re:339 Bytes of Responsive CSS on Wednesday April 10, 2019 @08:50AM (#19624069)
Also related, the link/background colour combination fails WCAG contrast guidelines.
Re:A Case for a New Language on Saturday February 23, 2019 @05:29PM (#19235847)
https://github.com/dhall-lang/dhall-lang seems like it might have been a suitable candidate here also.
Re:Standardized Ladder of Functional Programming [pdf] on Wednesday November 30, 2016 @10:01AM (#13071258)
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)

Re:How to stop functional programming on Tuesday February 23, 2016 @12:12PM (#11160404)
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.
Re:Elm in the Real World on Wednesday January 13, 2016 @12:24PM (#10895905)
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.
Re:Java Developers on Tuesday July 22, 2014 @06:01AM (#8068127)
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.
Perhaps no evidence was found because people from the future have seen this paper and therefore know not to reveal themselves this way!
Re:How We're Feeling: Tweet sentiment on Thursday April 03, 2014 @07:52AM (#7522180)
There's a similar project from 2005, based on blog posts: http://www.wefeelfine.org
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."

Re:The Scientific 7-Minute Workout on Tuesday May 14, 2013 @11:13AM (#5705406)
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.
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."

Re:Writing Fast, Memory-Efficient JavaScript on Monday November 05, 2012 @11:49AM (#4744385)
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.
Re:Cell: Lisp in Javascript on Sunday August 19, 2012 @07:20PM (#4405595)
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.

Also the text is fully justified, which is generally not the way to go on the web.
Re:Thoughts on Paul Rand on Sunday July 15, 2012 @02:12PM (#4247576)
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.
Re:CoffeePhysics: A JS/CS Physics Engine on Wednesday February 29, 2012 @03:06PM (#3649432)
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.

Older »