frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

The Quantum Decade A playbook for achieving awareness, readiness, and advantage

https://www.ibm.com/downloads/documents/us-en/107a02e97dc8fd16
2•hkhn•2m ago•0 comments

Ask HN: Will LLM-commodification cause growth to continue without a correction?

1•AbstractH24•6m ago•0 comments

Trump is showing Beijing how to seize Taiwan

https://www.japantimes.co.jp/commentary/2026/03/22/world/trump-shows-how-to-take-taiwan/
2•geox•7m ago•0 comments

Customizing the Emacs Email Experience with Mu4e

https://brainbaking.com/post/2026/01/customizing-the-emacs-email-experience-with-mu4e/
1•mrtz•8m ago•0 comments

Separating the hype from the real in AI assisted development

https://mlolson.github.io/blog/2026/03/21/separating-the-hype-from-the-real-in-ai-assisted-develo...
1•LordHumungous•8m ago•0 comments

Simple attachment lets your camera mine the skies for lightning

https://newatlas.com/photography/bolt-hunter-lightning-camera-trigger/
1•Brajeshwar•8m ago•0 comments

Show HN: I built an outdoors data API for developers

https://outdex.dev/
2•caderosche•10m ago•0 comments

Cash and Patience

https://kyefox.com/cash-and-patience/
1•Kye•10m ago•0 comments

Honda confirms EV continuity with Honda 0's Alpha testing in India

https://www.automotiveworld.com/analysis/honda-confirms-ev-continuity-with-0-alpha-testing-in-india/
1•alephnerd•12m ago•0 comments

I wrote about Judicial Corruption and Overreach. And they called my University

https://arekay.substack.com/p/i-wrote-about-judicial-corruption
2•akbarnama•15m ago•0 comments

I got laid off and realized how broken tech hiring is

2•nirvanist•15m ago•0 comments

One-command wrapper for AutoResearchClaw's 23-stage paper generation pipeline

https://github.com/OthmanAdi/researchclaw-skill
1•codingwithadi•16m ago•0 comments

Operation Epic Fury Explained: Riches and Domination Drive This War

https://truthout.org/articles/operation-epic-fury-explained-riches-and-domination-drive-this-war/
3•hkhn•22m ago•0 comments

The Architecture of Asking

https://echo.surf/essays/the-architecture-of-asking/
1•jmilinovich•24m ago•0 comments

iBook Clamshell

https://www.ibook-clamshell.com/index.php/en/
3•polishdude20•25m ago•1 comments

Walmart fires OpenAI in playbook-changing move

https://www.thestreet.com/retail/walmart-fires-openai-in-playbook-changing-move
3•petethomas•25m ago•0 comments

Show HN: FairSplit – A local-first, multi-currency expense splitter

https://fairsplit.it
2•rummstien•26m ago•0 comments

Show HN: I built an open-source MCP server that parses game save files

https://github.com/joshsymonds/savecraft.gg
4•Veraticus•28m ago•2 comments

China and the Future of Science

https://scholars-stage.org/china-and-the-future-of-science/
1•jger15•28m ago•0 comments

Local Cursor-A local AI agent that runs on your machine using Ollama

https://github.com/towardsai/local-cursor
2•lapalapa•29m ago•0 comments

CrypTorch: PyTorch-based Auto-tuning Compiler for ML w/ Multi-party Computation

https://github.com/psu-paws/CrypTorch
2•matt_d•29m ago•0 comments

Show HN: Dev Tools Hub – 10 free browser-based developer utilities

https://tools.dev-tools-hub.xyz/en
1•ktg0215•30m ago•0 comments

My Astrophotography in the Movie Project Hail Mary

https://rpastro.square.site/s/stories/phm
1•wallflower•31m ago•0 comments

Show HN: Come play the Retro Survival Crafting RPG that I'm building

https://stravaeger.com/
3•jasonkester•31m ago•0 comments

You Had a Story

https://nolanlawson.com/2026/02/18/you-had-a-story/
2•wallflower•32m ago•0 comments

How we monitor internal coding agents for misalignment

https://openai.com/index/how-we-monitor-internal-coding-agents-misalignment/
1•gmays•32m ago•0 comments

You can now buy a DIY quantum computer

https://www.newscientist.com/article/2520214-you-can-now-buy-a-diy-quantum-computer/
2•Brajeshwar•33m ago•2 comments

The salt lakes are drying up, but solutions are hard to come by

https://www.nature.com/articles/d41586-026-00702-w
2•gnabgib•33m ago•0 comments

Gather- Self hosted community calendar

https://github.com/grantstephens/gather
2•rexfuzzle•33m ago•0 comments

Tencent integrates WeChat with OpenClaw AI agent amid China tech battle

https://www.reuters.com/technology/tencent-integrates-wechat-with-openclaw-ai-agent-amid-china-te...
3•phoenixreader•33m ago•0 comments
Open in hackernews

A Case Against Currying

https://emi-h.com/articles/a-case-against-currying.html
37•emih•1h ago

Comments

messe•1h ago
What benefit does drawing a distinction between parameter list and single-parameter tuple style bring?

I'm failing to see how they're not isomorphic.

Pay08•1h ago
The tuple style can't be curried (in Haskell).
messe•1h ago
That's not what I'm talking about.

The article draws a three way distinction between curried style (à la Haskell), tuples and parameter list.

I'm talking about the distinction it claims exists between the latter two.

disconcision•56m ago
all three are isomorphic. but in some languages if you define a function via something like `function myFun(x: Int, y: Bool) = ...` and also have some value `let a: (Int, Bool) = (1, true)` it doesn't mean you can call `myFun(a)`. because a parameter list is treated by the language as a different kind of construct than a tuple.
antonvs•15m ago
A language which truly treats an argument list as a tuple can support this:

    args = (a, b, c)
    f args
…and that will have the effect of binding a, b, and c as arguments in the called function.

In fact many “scripting” languages, like Javascript and Python, support something close to this using their array type. If you squint, you can see them as languages whose functions take a single argument that is equivalent to an array. At an internal implementation level this equivalence can be messy, though.

Lower level languages like C and Rust tend not to support this.

emih•1h ago
That's a fair point, they are all isomorphic.

The distinction is mostly semantic so you could say they are the same. But I thought it makes sense to emphasize that the former is a feature of function types, and the latter is still technically single-parameter.

I suppose one real difference is that you cannot feed a tuple into a parameter list function. Like:

fn do_something(name: &str, age: u32) { ... }

let person = ("Alice", 40);

do_something(person); // doesn't compile

Kambing•1h ago
They are isomorphic in the strong sense that their logical interpretations are identical. Applying Curry-Howard, a function type is an implication, so a curried function with type A -> B -> C is equivalent to an implication that says "If A, then if B, then C." Likewise, a tuple is a conjunction, so a non-curried function with type (A, B) -> C is equivalent to the logic statement (A /\ B) -> C, i.e., "If A and B then C." Both logical statements are equivalent, i.e., have the same truth tables.

However, as the article outlines, there are differences (both positive and negative) to using functions with these types. Curried functions allow for partial application, leading to elegant definitions, e.g., in Haskell, we can define a function that sums over lists as sum = foldl (+) 0 where we leave out foldl's final list argument, giving us a function expecting a list that performs the behavior we expect. However, this style of programming can lead to weird games and unweildy code because of the positional nature of curried functions, e.g., having to use function combinators such as Haskell's flip function (with type (A -> B -> C) -> B -> A -> C) to juggle arguments you do not want to fill to the end of the parameter list.

messe•57m ago
Please see my other comment below, and maybe re-read the article. I'm not asking what the difference is between curried and non-curried. The article draws a three way distinction, while I'm asking why two of them should be considered distinct, and not the pair you're referring to.
recursivecaveat•1h ago
Probably just that having parameter-lists as a specific special feature makes them distinct from tuple types. So you may end up with packing/unpacking features to convert between them, and a function being generic over its number of parameters is distinct from it being generic over its input types. On the other hand you can more easily do stuff like named args or default values.
layer8•10m ago
The parameter list forces the individual arguments to be visible at the call site. You cannot separate the packaging of the argument list from invoking the function (barring special syntactic or library support by the language). It also affects how singleton tuples behave in your language.

The article is about programmer ergonomics of a language. Two languages can have substantially different ergonomics even when there is a straightforward mapping between the two.

recursivecaveat•1h ago
Currying was recently removed from Coalton: https://coalton-lang.github.io/20260312-coalton0p2/#fixed-ar...
emih•54m ago
Thanks for sharing, interesting to see that people writing functional languages also experience the same issues in practice. And they give some reasons I didn't think about.
leoc•21m ago
> 3. Better type errors. With currying, writing (f 1 2) instead of (f 1 2 3) silently produces a partial application. The compiler happily infers a function type like :s -> :t and moves on. The real error only surfaces later, when that unexpected function value finally clashes with an incompatible type, often far from the actual mistake. With fixed arity, a missing argument is caught right where it happens.

'Putting things' (multi-argument function calls, in this case) 'in-band doesn't make them go away, but it does successfully hide them from your tooling', part 422.

Pay08•1h ago
I'm biased here since the easy currying is by far my favourite feature in Haskell (it always bothers me that I have to explicitly create a lamba in Lisps) but the arguments in the article don't convince me, what with the synctactic overhead for the "tuple style".
lukev•1h ago
I'd got a step further and say that in business software, named parameters are preferable for all but the smallest functions.

Using curried OR tuple arg lists requires remembering the name of an argument by its position. This saves room on the screen but is mental overhead.

The fact is that arguments do always have names anyway and you always have to know what they are.

layer8•36m ago
I want to agree, but there is the tension that in business code, what you pass as arguments is very often already named like the parameter, so having to indicate the parameter name in the call leads to a lot of redundancy. And if you’re using domain types judiciously, the types are typically also different, hence (in a statically-typed language) there is already a reduced risk of passing the wrong parameter.

Maybe there could be a rule that parameters have to be named only if their type doesn’t already disambiguate them and if there isn’t some concordance between the naming in the argument expression and the parameter, or something along those lines. But the ergonomics of that might be annoying as well.

sestep•33m ago
This is an issue in Python but less so in languages like JavaScript that support "field name punning", where you pass named arguments via lightweight record construction syntax, and you don't need to duplicate a field name if it's the same as the local variable name you're using for that field's value.
layer8•27m ago
That forces you to name the variable identically to the parameter. For example, you may want to call your variable `loggedInUser` when the fact that the user is logged in is important for the code’s logic, but then you can’t pass it as-is for a field that is only called `user`. Having to name the parameter leads to routinely having to write `foo: blaFoo` because just `blaFoo` wouldn’t match, or else to drop the informative `bla`. That’s part of the tension I was referring to.
leoc•58m ago
Right. Currying as the default means of passing arguments in functional languages is a gimmick, a hack in the derogatory sense. It's low-level and anti-declarative.
layer8•48m ago
I completely agree. Giving the first parameter of a function special treatment only makes sense in a limited subset of cases, while forcing an artificial asymmetry in the general case that I find unergonomic.
paldepind2•45m ago
I completely agree with the points in this article and have come to the same conclusion after using languages that default to unary curried functions.

> I'd also love to hear if you know any (dis)advantages of curried functions other than the ones mentioned.

I think it fundamentally boils down to the curried style being _implicit_ partial application, whereas a syntax for partial application is _explicit_. And as if often the case, being explicit is clearer. If you see something like

    let f = foobinade a b
in a curried language then you don't immediately know if `f` is the result of foobinading `a` and `b` or if `f` is `foobinade` partially applied to some of its arguments. Without currying you'd either write

    let f = foobinade(a, b)
or

    let f = foobinade(a, b, $) // (using the syntax in the blog post)
and now it's immediately explicitly clear which of the two cases we're in.

This clarity not only helps humans, it also help compilers give better error messages. In a curried languages, if a function is mistakenly applied to too few arguments then the compiler can't always immediately detect the error. For instance, if `foobinate` takes 3 arguments, then `let f = foobinade a b` doesn't give rise to any errors, whereas a compiler can immediately detect the error in `let f = foobinade(a, b)`.

A syntax for partial application offers the same practical benefits of currying without the downsides (albeit loosing some of the theoretical simplicity).

munchler•17m ago
Well, I totally disagree with this. One of the main benefits of currying is the ability to chain function calls together. For example, in F# this is typically done with the |> operator:

    let result =
        input
            |> foobinade a b
            |> barbalyze c d
Or, if we really want to name our partial function before applying it, we can use the >> operator instead:

    let f = foobinade a b >> barbalyze c d
    let result = f input
Requiring an explicit "hole" for this defeats the purpose:

    let f = barbalyze(c, d, foobinade(a, b, $))
    let result = f(input)
Or, just as bad, you could give up on partial function application entirely and go with:

    let result = barbalyze(c, d, foobinade(a, b, input))
Either way, I hope that gives everyone the same "ick" it gives me.
emih•12m ago
You can still do this though?

  let result = (barbalyze(c, d, $) . foobinade(a, b, $)) input
Or if you prefer left-to-right

  let result = input
    |> foobinade(a, b, $)
    |> barbalyze(c, d, $)
Maybe what isn't clear is that this hole operator would bind to the innermost function call, not the whole statement.
skybrian•58s ago
[delayed]
jwarden•40m ago
Here’s an article I wrote a while ago about a hypothetical language feature I call “folded application”, that makes parameter-list style and folded style equivalent.

https://jonathanwarden.com/implicit-currying-and-folded-appl...

01HNNWZ0MV43FF•34m ago
I've never ever run into this. I haven't seen currying or partial application since college. Am I the imperative Blub programmer, lol?
mkprc•28m ago
Prior to this article, I didn't think of currying as being something a person could be "for" or "against." It just is. The fact that a function of multiple inputs can be equivalently thought of as a function of a tuple can be equivalently thought of as a composite of single-input functions that return functions is about cognition, and understanding structure, not code syntax.
kevincox•14m ago
But it is about code syntax. Languages like Haskell make it part of the language by only supporting single-argument functions. So currying is the default behaviour for programmers.

I think you are focusing on the theoretical aspect of partial application and missing the actual argument of the article which having it be the default, implicit way of defining and calling functions isn't a good programming interface.

bbkane•5m ago
Similar to how lambda calculus "just is" (and it's very elegant and useful for math proofs), but nobody writes non-trivial programs in it...
titzer•22m ago
I agree with this article. Tuples nicely unified multiple return values and multiple parameters. FWIW Scala and Virgil both support the _ syntax for the placeholder in a partial application.

    def add(x: int, y: int) -> int { return x + y; }
    def add3 = add(_, 3);
Or more simply, reusing some built-in functions:

    def add3 = int.+(_, 3);
talkingtab•14m ago
Yesterday there was an obscure thing on ant mills. (see wikipedia for a visual). I had an instant of recognition. Hacker News!

Today I read this article and after plowing through the article came to where the meat was supposed to be and the points made to my mind are weak. The conclusions. I just "followed" this whole article to lead to .... nothing.

I had another instance of recognition. It is like one of those recipe sites where you page down and down, reading the persons life story and get to a recipe that is .... ineffective.

Then it occurred to me that the problem is not AI generated content. It is ant mill media. Like Hacker News is now, like the Washington Post (thanks there Jeff Bezos), the greed-centric New York Times.

If you have read this far, here is the punch line:

The government generated by an ant mill is completely inept and ineffective. So if you look up and around at the absolute mess, does it look like an ant mill to you?

emih•5m ago
It's not that serious :)
bbkane•13m ago
The Roc devs came to a similar conclusion: https://www.roc-lang.org/faq#curried-functions

(Side note: if you're reading this Roc devs, could you add a table of contents?)

jstrieb•12m ago
I like currying because it's fun and cool, but found myself nodding along throughout the whole article. I've taken for granted that declaring and using curried functions with nice associativity (i.e., avoiding lots of parentheses) is as ergonomic as partial application syntax gets, but I'm glad to have that assumption challenged.

The "hole" syntax for partial application with dollar signs is a really creative alternative that seems much nicer. Does anyone know of any languages that actually do it that way? I'd love to try it out and see if it's actually nicer in practice.

emih•1m ago
Glad to hear the article did what I meant for it to do :)

And yes, another comment mentioned that Scala supports this syntax!

zyxzevn•12m ago
With a language like Forth, you know that you can use a stack for data and apply functions on that data. With currying it you put functions on a stack instead. This makes it weird. But you also obscure the dataflow.

With the most successful functional programing language Excel, the dataflow is fully exposed. Which makes it easy.

Certain functional programming languages prefer the passing of just one data-item from one function to the next. One parameter in and one parameter out. And for this to work with more values, it needs to use functions as an output. It is unnecessary cognitive burden. And APL programmers would love it.

Let's make an apple pie as an example. You give the apple and butter and flour to the cook. The cursed curry version would be "use knife for cutting, add cutting board, add apple, stand near table, use hand. Bowl, add table, put, flour, mix, cut, knife butter, mixer, put, press, shape, cut_apple." etc..

codethief•2m ago
I've long been thinking the same thing. In many fields of mathematics the placeholder $ from the OP is often written •, i.e. partial function application is written as f(a, b, •). I've always found it weird that most functional languages, particularly heavily math-inspired ones like Haskell, deviate from that. Yes, there are isomorphisms left and right but at the end of the day you have to settle on one category and one syntax. A function f: A × B -> C is simply not the same as a function f: A -> B -> C. Stop treating it like it is.