frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Adding Window Functions to a Spreadsheet

https://www.getgrist.com/blog/running-totals-you-dont-have-to-chase/
16•reedciccio•1h ago

Comments

shevy-java•43m ago
The syntax is so archaic ... it really is anything but a thing of beauty.

    prev_balance = PREVIOUS(rec, order_by="Date").Running_Balance or 0
    prev_balance + $Amount
It's such a strange mix-up of stuff. PREVIOUS() is a macro or looks like one, right? But it is a function call assumingly. But then what's with .Running_Balance? Guess that also ties into a function. But why use different syntax for essentially the same thing? It seems rather weird to write code like that. What would the python variant be like? Or a DSL?

The syntax strangeness continues:

    rates = Rates.lookupRecords(Person=$Person, order_by="Rate_Start")
    rates.find.le($Date).Hourly_Rate
Does that really convey most easily what is wanted? It seems needlessly verbose. Why would it require both $Person and $Date? Should that not be easier to figure out in its own right? Is that efficient?

People need to remember that mentally, unless they use AI.

paulfitz•36m ago
It is straight Python. Yes the spreadsheet habit of making functions SHOUT does look weird mixed in with Python syntax.

PREVIOUS returns a record, then .Running_Balance pulls out one field of it.

whizzter•33m ago
What parts are Python and how does one know where the classic Spreadsheet functionality ends and Python starts ?
librasteve•6m ago
that’s why https://omasheet.org has its own DSL. that said it’s no doubt go some wrinkles so I’ll be reviewing all the comments on this hn post very carefully
chii•29m ago
That's what makes it clunky. Returning a record is OK, but then a record is basically what spreadsheets are (ala, a table). Except records are named columns in a spreadsheet, and accessing it using a dot syntax looks out of place imho.

I reckon it makes more sense to return a table, and then have an index lookup in that table: e.g., index(PREVIOUS(blah_blah), column). Then you can also use an indirection to choose which column from another cell if desired.

This is how google finance in sheets returns some data (like exchange rates, iirc).

whizzter•35m ago
I think it's an push in Spreadsheets to become more "DB-alike" for less arbitrary results (like in the problem example the article starts out with) but kind-of misguided since it's complicated to do "easy things".

The root issue is that there's almost 50 years of spreadsheet syntax to consider and not colliding with.

librasteve•12m ago
I’m all in favour of making spreadsheets better, with code friendly formulas. Here’s one I’m working on - somewhat earlier in dev cycle than grist and while I did consider Python (and lua) for the formula DSL decided to cook up my own.

All feedback good and back v welcome.

https://omasheet.org

seemaze•6m ago
Imagine a world where we starting teaching SQL in primary school..
librasteve•5m ago
I imagine a world where LLM makes languages like SQL akin to middle English (ie a specialist skill taught to graduates and up)

AI is forcing us to pay off 40 years of technical debt

https://spectrum.ieee.org/ai-in-cybersecurity-php2shell-vulnerability
541•pseudolus•4h ago•361 comments

Guerrilla Bike Lanes: San Francisco Makes Illicit Infrastructure Permanent (2016)

https://99percentinvisible.org/article/guerrilla-bike-lanes-san-francisco-makes-illicit-infrastru...
69•zenincognito•1h ago•15 comments

Nvidia RTX Spark encrypted firmware slows inference speed to 35% on Linux

https://www.mindstudio.ai/blog/linux-nvidia-rtx-spark-laptop
401•novaRom•7h ago•187 comments

Evergreen: A Provably Safe Systems Language

https://evergreenlang.net
24•jordan_bonecut•1h ago•14 comments

North Korean fake job interview led to $6.3B Binance heist

https://www.theregister.com/security/2026/11/03/north-korean-fake-job-interview-led-to-63b-binanc...
228•smalltech•2h ago•134 comments

Verification Is Not Knowledge: Science needs more than answers

https://blog.cosmos-institute.org/p/verification-is-not-knowledge
162•ersinesen•7h ago•95 comments

Incident with Pull Requests, Git Operations and Issues

https://www.githubstatus.com/incidents/smtdswd1h2w4
193•kevcampb•6h ago•94 comments

Adding Window Functions to a Spreadsheet

https://www.getgrist.com/blog/running-totals-you-dont-have-to-chase/
17•reedciccio•1h ago•10 comments

Show HN: Codemap – one-page interactive map of any Go repository

https://github.com/peterretief/codemap
14•peter_retief•1h ago•3 comments

Letting users trust their own MCP clients, without opening a phishing hole

https://streamvessel.com/blog/mcp-trusted-redirect-uris
12•isalexlog•56m ago•1 comments

Tell HN: Gemini trains on chat history, even for subscribers (personal accounts)

383•jameslk•6h ago•112 comments

AMD expects to outsell Intel in Q4 for the first time in history

https://www.tomshardware.com/pc-components/cpus/amd-expects-to-outsell-intel-in-q4-for-the-first-...
40•rbanffy•49m ago•7 comments

Debian apt security update (man-in-the-middle)

https://lists.debian.org/debian-security-announce/2026/msg00526.html?pow_referer=
55•SG-•1h ago•7 comments

Jelly Sheet

https://mrdoob.github.io/codevember-2026/01/
371•memalign•12h ago•98 comments

Show HN: I built a tool that prices a prebuilt PC part by part

https://pcdealcheck.com/
6•adlep•1h ago•1 comments

Kitty 0.50

https://sw.kovidgoyal.net/kitty/changelog/#
284•porridgeraisin•7h ago•182 comments

Mocktastic: A Meshtastic Node on Arduino

https://github.com/Vapmuz/Mocktastic
12•kimi•2h ago•1 comments

'It's just vape, nail, charity shops': Can anything save UK high street?

https://www.theguardian.com/business/2026/nov/04/what-can-save-the-british-high-street-rotherham
11•theanonymousone•16m ago•3 comments

Stringman, an $800 open-source room scale gripper robot

https://neufangled.com/
717•nharada•23h ago•220 comments

Pierre Computer is being acquired by OpenAI

https://twitter.com/pierrecomputer/status/2117999036175188183
26•itunpredictable•1h ago•11 comments

YC's Garry Tan uses AI agents so much, he spends up to $200K a year on tokens

https://techcrunch.com/2026/11/02/y-combinators-garry-tan-uses-ai-agents-so-much-he-spends-up-to-...
19•karakoram•59m ago•9 comments

The Internals of PostgreSQL

https://www.interdb.jp/pg/index.html
335•ibobev•18h ago•24 comments

The lost malloc()

https://napcakes.nekoweb.org/posts/malloc/
113•matt_d•8h ago•43 comments

Coffee's new status symbol is a machine without plastic

https://www.cnn.com/2026/11/02/food/coffee-machine-plastic-free
23•thunderbong•1h ago•34 comments

Synaptics Appears to Use Legal Threats to Block Open-Source DisplayLink Driver

https://www.phoronix.com/news/Synaptics-Blocks-Vino-Driver
106•snvzz•5h ago•43 comments

Kimi K3.1 Pro model weights are out

https://huggingface.co/moonshotai/Kimi-K3.1-Pro
15•abrarthought•57m ago•1 comments

Show HN: HackerTV – HN's most-recommended Youtube videos as 24/7 TV channels

https://hackertv.org
411•dsalzman•1d ago•77 comments

Giant canyon on Mars is still tectonically active

https://lamont.columbia.edu/news/giant-canyon-mars-still-tectonically-active-today
127•gmays•14h ago•28 comments

Jaron Lanier on parallels between AI and social media

https://www.youtube.com/watch?v=WxaRn8kX2eI
34•musha68k•2h ago•6 comments

Show HN: Uncracked City, detective game where you question LLM suspects that lie

https://uncracked.city
108•passkey1510•19h ago•53 comments