News for hackers. Stuff that matters.

bts

Re:24x faster Rust compilation with rust-analyzer on Tuesday October 20, 2026 @12:29PM (#50168898)
It looks like OP forked/imported the rustd code only 3 hours ago[1], and yet in README, writes "ra-jit started as a fork of rustd (DioxusLabs), thanks to its authors. It has moved well past it, so use ra-jit rather than rustd." This seems in pretty poor taste, unless this was written by the rustd author? It's not like rustd is some abandoned project -- it was last updated 17 hours ago.

[1] https://github.com/indexable-inc/ra-jit/commit/b538696b8b113...

Re:Why Quadratic Funding Is Not Optimal on Monday June 09, 2025 @11:11AM (#44225303)
Quadratic Voting and Quadratic Funding have some ideas in common, but they refer to separate concepts. To learn more about these topics, I would probably check out the website for RadicalxChange. IIUC RxC is the main public body attempting to realize the theoretical benefits of QF and related ideas.

Here's an explanation of Quadratic Funding from their website[1], which I guess they now refer to as "Plural Funding":

  Plural Funding (also known as Quadratic Funding or QF) is a more democratic and scalable form of matching funding for public goods, i.e. any projects valuable to large groups of people and accessible to the general public.
  
  “Matching funding” is a model of funding public goods where a fund from governments or philanthropic institutions matches individual contributions to a project. Plural Funding optimizes matching funds by prioritizing projects based on the number of people who contributed. This way, funds meant to benefit the public go towards projects that really benefit a broad public, instead of things that only have a few wealthy backers. In Plural Funding, [total funding] for a proposal is [the square root of each contribution to it → summed up, then squared.] Plural Funding strongly encourages people to make contributions, no matter how small, and ensures a democratic allocation of funds meant to benefit the public.
[1] https://www.radicalxchange.org/wiki/plural-funding/

EDIT: formatting

Indeed they call for new names, as they encompass far more than iterators.

If you read a bit more about them, I think you will be surprised to see the breadth of what these abstractions can be used for. To start, they've been used to build a new compositional foundation for game theory[1], and they can be used to model gradient-based learning in machine learning[2].

As for their simpler applications as getters and setters, they are programmable in the sense that you can think of lens/prism types as interfaces that can be implemented arbitrarily. So you can create your own lenses and combine them like legos to construct new, "bigger" getters and setters from the smaller components.

[1] https://arxiv.org/pdf/1603.04641 [2] https://arxiv.org/abs/2103.01931

EDIT: fixed typo

Agreed; also Traversable in Haskell is a simpler abstraction than lenses and pretty directly addresses what they seem to be looking for: https://hackage.haskell.org/package/base-4.21.0.0/docs/Data-...
Re: on Tuesday January 21, 2025 @06:57PM (#42786842)
And functional programmers would argue that contravariance is the real meaning of Liskov’s substitution principle: https://apocalisp.wordpress.com/2010/10/06/liskov-substituti...
Re:Unix core utilities implemented in Haskell on Sunday November 03, 2024 @09:13AM (#42033161)
Hi! A few years ago I found myself wanting an equivalent of `column` that didn’t strip color codes. After I implemented it in Haskell, I found it was useful to use Nix to force statically linking against libraries like gmp to reduce startup time. Perhaps what I ended up doing might be helpful for you too: https://github.com/bts/columnate/blob/master/default.nix
Re:Show HN: Integer Map Data Structure on Wednesday January 24, 2024 @07:55PM (#39124816)
FWIW there is prior art here. e.g. see IntMap in Haskell: https://hackage.haskell.org/package/containers-0.7/docs/Data...
Re:Out of the Tar Pit (2006) [pdf] on Tuesday February 28, 2023 @06:07PM (#34976215)
You should look into the "comonad" abstraction from the functional programming world. Dual to monads, they're a natural fit for situations where you might have a value with some sort of (possibly infinite) context (think: neighborhood, or history, etc.) that can be either pre-computed or computed on-demand.

This StackOverflow post[1] is a good starting point for understanding comonads. It points out that they can be used to model cellular automata (like Conway's Game of Life), sequences, streams, etc.

[1] https://stackoverflow.com/questions/8428554/what-is-the-como...

Re:Go: Redefining For Loop Variable Semantics on Tuesday October 11, 2022 @03:34PM (#33168163)
Re:Two Vexing Problems in Functional Programming on Friday April 01, 2022 @11:41AM (#30879354)
In the Haskell world, folks have solutions to both of these problems:

The "large-object problem" can be tackled in a principled fashion using strict state threads (aka the ST monad: https://wiki.haskell.org/Monad/ST) or using vanilla mutable (IORef) references.

The "parent-child problem" is well-addressed by lenses, also known as functional references. They are basically composable getters and setters that allow you to read or update deep into nested structures.

Re:Best Paper Awards in Computer Science over the past 25 years on Wednesday January 05, 2022 @10:46PM (#29819096)
Thank you very much for maintaining this list! Have you considered adding ICFP in addition to PLDI for programming language papers?
Re:Poll: Should we rename Amber.js? on Friday December 09, 2011 @07:06PM (#3336289)
I think he means that they feel sheepish about not having done more research about the name "Amber" before the announcement.
Re:Ask HN: Any javascript game libraries? on Sunday August 22, 2010 @04:00PM (#1625156)
Check out the Effect engine: http://www.effectgames.com/effect. It's been discussed here on HN previously: http://news.ycombinator.com/item?id=986196
Re:Bach on a mobius strip on Sunday July 25, 2010 @07:57PM (#1546652)
The last sentence reads, "Can you play it forward and backwards?"
Re:GitHub Hits One Million Hosted Projects on Sunday July 25, 2010 @12:09PM (#1545749)
They are, and they absolutely should be. They're completely separate projects/repositories from those from which they came. The owner of a forked repository is completely free to make whatever changes they please -- from a few bug fixes to taking projects in completely new directions (as I've done with a forked repository of my own). As far as GitHub is concerned, in the context of a forked repository being a first-class citizen, it's a minor detail that the code was originally "copied" (to use the term loosely) from somewhere else.
Re:GHC Haskell switches to an LLVM backend on Friday February 19, 2010 @12:12PM (#1137366)
But that link only says that via-C is being dropped which, as I understand it, is not currently the default backend -- NGC is[1]. This means that (1) via-C is being dropped; (2) NCG (native code generator) has been, and is still the default; and (3) this LLVM backend support is currently being considered to be merged in.

[1] http://hackage.haskell.org/trac/ghc/wiki/Commentary/Compiler...

Re:GHC Haskell switches to an LLVM backend on Friday February 19, 2010 @11:57AM (#1137340)
Although this is really cool stuff and it looks like it's going to get merged in, the title is a little misleading here. GHC hasn't switched to an LLVM backend -- they're currently reviewing this patch and possibly merging in this support for LLVM output (not necessarily switching over to it entirely).
Re:Homebrew: OS X’s Missing Package Manager on Tuesday February 02, 2010 @03:48PM (#1096050)
This looks pretty interesting (and I particularly like the ability to have a package pointed at the bleeding edge), but I'm not sure how I feel about /usr/local being owned by an arbitrary user. What happens if there's more than one user on the machine?
I think the biggest disadvantage of putting something like this in middleware, is that it's completely incompatible with stuff like memcache. The injection of this meta-tag is done after a memcache SET would have been done in the web app, and so if you have a reverse proxy in front of your webserver, for any cached page that's served, it won't include the injection. Also, the user-agent check that's being done in this plugin yields incorrect results in the presence of caching for similar reasons.
Re:Why’s “Try Ruby” Back Online on Wednesday September 02, 2009 @05:12PM (#801127)
Or Heroku instead of cap/vlad. Makes getting a quick rails app deployed and up-and-running very easy.
Re:What are you reading? on Monday August 31, 2009 @10:12PM (#797149)
"The World Without Us" by Alan Weisman

"Goedel, Escher, Bach" by Douglas Hofstadter

Personally I would use the "I'm sorry, but..." approach because I'd be legitimately sorry that I have to take conversation into an awkward direction for a moment. I think the direct approach, while some would appreciate it, is taking a bit of a gamble: there's too much of a chance the person could take it the wrong way.
Re:Open Source, compliant Google Wave Server on Sunday July 26, 2009 @05:46PM (#724925)
bts
Re:You should follow me on Twitter on Tuesday July 14, 2009 @07:49PM (#704858)
I don't the link's particular destination here matters too much. His main point pertains to the increase of clickthrough rates of (any) link by changing the language of and around its text.
FYI I'm having problems decompressing this file. Could you re-post it? or alternatively throw the code up on something like github?
Re:NY man sues dating website Match.com for deception on Friday June 19, 2009 @09:47PM (#666049)
Sorry, but how is this hacker news?
Re:A peek at a Firefox.next feature: about:me on Wednesday June 17, 2009 @02:45PM (#662257)
I agree with the first reader comment over at mozillalinks -- it feels like the feature should really live as an extension. The average user isn't going to know or care about this, and it just increases the size of the codebase. Firefox certainly doesn't need to get any heavier out-of-the-box.
Re:Joel Spolsky: A Visit to Microsoft and Google on Tuesday June 09, 2009 @04:22PM (#649902)
Anyone have an idea of where he's getting the figure for the number of employees at Google? He says 10,000, but Wikipedia[1] has it at 20k.

[1] http://en.wikipedia.org/w/index.php?title=Google&oldid=2...

Re:Ask HN: What IRC rooms do you frequent? on Monday November 24, 2008 @04:37PM (#375439)
Yeah this would be great. I would look forward to it.

Older »