frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Learn SQL Once, Use It for 30 Years

https://fagnerbrack.com/learn-sql-once-use-it-for-30-years-9aceb0bdee03
42•karakoram•3d ago

Comments

teleforce•2d ago
>The Only Programming Language Built on Mathematics, Not Fashion

As a modern array language D4M is the natural successor for SQL [1].

D4M is based on mathematics like SQL, specifically associative array algebra but not relational unlike SQL. It's more generic since can it caters to most modern data abstractions including spreadsheets, database tables, matrices, and graphs [2].

You can achieve 100M database inserts per second with D4M and Accumulo more than a decade ago back in 2014 [3].

[1] D4M: Dynamic Distributed Dimensional Data Model:

https://d4m.mit.edu/

[2] Mathematics of Big Data: Spreadsheets, Databases, Matrices, and Graphs:

https://direct.mit.edu/books/monograph/5691/Mathematics-of-B...

[3] Achieving 100M database inserts per second using Apache Accumulo and D4M (2017 - 46 comments):

https://news.ycombinator.com/item?id=13465141

lanycrost•2d ago
I've played once with codesignal to pass SQL chapters and it really helped to advance querying skills.
WA•45m ago
- I recently read that most programmers SQL knowledge is outdated by 20 years and it’s true for me. There are quite a lot of features in most DBs that feel very "new" to me.

- Comparing SQL to React weakens the argument. SQL is the language, React is a piece of software. You certainly can run 30 year old JS today in modern browsers.

veqq•38m ago
> Edgar Codd formalised relational algebra in 1970. SQL sits on top of it as a declarative interface. You describe what you want. The database engine decides how to get it. The engine improves every year. Your query stays the same.

Although SQL is of course not relational Algebra (and others like Datalog and D4M are better), it's still cool. It inspired kSQL like Lil uses https://beyondloom.com/decker/lil.html#lilthequerylanguage , which inspired the code I'm most proud of: https://codeberg.org/veqq/declarative-dsls A common query language, a common idiom, for many data structures (arrays, hashmaps, datafremas) is liberating, permitting you to e.g. solve sudoku, make mandelbrot sets or calculate primes directly:

    (def n 40) # to reach primes up to, left is sqr of n, right n/2, then multiply them for rows
    (def composites
    (df/select :from (range 2 (+ 1 (math/floor (math/sqrt n))))
               :cross (range 2 (+ 1 (/ n 2)))
               :where |(<= (* ($ :value_left) ($ :value_right)) n)
               [[:value_left :value_right] :value
                |(* ($ :value_left) ($ :value_right))]))
    (df/select :from (range 2 (+ 1 n)) :exclude composites)
Or e.g.

    (import declarative-dsls/dataframes :as df)
    (def people (df/dataframe :name :age :job))
    (df/dataframe? people)
    
    (df/insert! {:name "Bob" :age 30 :job "Developer"} :into people)
    (df/insert! {:name "Alice" :age 27 :job "Sales"} :into people)
    (df/update! :set {:job "Engineer"}
             :where |(= ($ :job) "Developer")
             :from people)
    
    (df/save-csv people "people.csv" :sep "\\t")
    (def people2 (df/load-csv "people.csv" :sep "\\t"))
    
    (-> people2
       df/dataframe->rows
       df/rows->dataframe
       df/print-as-table)
The tests file has many such things (like the sudoku solver) and even datalog and minikanren implemented on top of this!
andersmurphy•30m ago
Datalog is the dream. But SQL with a good query builder like Clojure's honeysql is not so bad.

That and SQLite seems to be able to scale to almost any problem, is disgustingly fast and with litestream incredibly resilient.

curtisblaine•24m ago
> JavaScript is an imperative language that browser wars, framework trends, and open-source maintainer preferences reshaped every few years. It rewards you for keeping up. > Take a React component from 2015

Javascript is actually fully backwards-compatible, to not break the Web. Any javascript from 10 years ago works in the browser. This is good but also a bit of a burden, since the language can only expand but not shrink. React is a library, and like all libraries it has breaking versions. Not understanding the basic difference between the two kinda undermines the credibility of the article.

Also, in a similar way, core, ANSI SQL is largely backwards compatible, but all the SQL dialects linked to various DBMS implementation are generally incompatible. Obviously that's not mentioned in the article.

> Not a tutorial. Not an ORM. Actual SQL: joins, subqueries, window functions, query plans.

Not text written by a human. Not a style that an real writer would ever use. Actual AI slop: Short sentences. Incorrect facts. Not X, Y.

NetOpWibby•17m ago
I refuse to learn SQL. I'm not a computer, I'll let them deal with that.
frollogaston•12m ago
Everyone knows SQL already. The harder parts that pay off are schema design, knowing how to interact with your DB in code, and knowing all the ins and outs of whatever DBMS you're using.
deepsun•8m ago
Just, for god's sake, move SELECT after GROUP BY, I beg you.

"They're made out of weights"

https://maxleiter.com/blog/weights
448•MaxLeiter•7h ago•131 comments

Failing grades soar with AI usage, dwindling math skills in Berkeley CS classes

https://www.dailycal.org/news/campus/academics/failing-grades-soar-as-professors-see-greater-ai-u...
194•littlexsparkee•6h ago•121 comments

Elixir v1.20: Now a gradually typed language

https://elixir-lang.org/blog/2026/06/03/elixir-v1-20-0-released/
705•cloud8421•12h ago•260 comments

I built a vulnerable app and spent $1,500 seeing if LLMs could hack it

https://kasra.blog/blog/i-spent-1500-seeing-if-llms-could-hack-my-app/
161•jc4p•6h ago•65 comments

Gemma 4 12B: A unified, encoder-free multimodal model

https://blog.google/innovation-and-ai/technology/developers-tools/introducing-gemma-4-12b/
797•rvz•15h ago•317 comments

The ways we contain Claude across products

https://www.anthropic.com/engineering/how-we-contain-claude
104•jbredeche•6h ago•46 comments

I was recently diagnosed with anti-NMDA receptor encephalitis

https://burntsushi.net/encephalitis/
581•Tomte•16h ago•180 comments

Artificial intelligence is not conscious – Ted Chiang

https://www.theatlantic.com/philosophy/2026/06/no-artificial-intelligence-is-not-conscious/687378/
364•lordleft•13h ago•640 comments

Uber's $1,500/month AI limit is a useful signal for AI tool pricing

https://simonwillison.net/2026/Jun/3/uber-caps-usage/
452•pdyc•18h ago•559 comments

DaVinci Resolve 21

https://www.blackmagicdesign.com/products/davinciresolve/whatsnew
440•pentagrama•16h ago•198 comments

Learn SQL Once, Use It for 30 Years

https://fagnerbrack.com/learn-sql-once-use-it-for-30-years-9aceb0bdee03
44•karakoram•3d ago•11 comments

Meteor Explodes over Massachusetts

https://www.nbcboston.com/news/local/meteor-explodes-over-massachusetts-what-we-know-and-where-it...
94•1970-01-01•2d ago•50 comments

CP/M-86 & MS-DOS Cross Development Environment

https://github.com/tsupplis/cpm86-crossdev
26•elvis70•3d ago•2 comments

ESP32-S31

https://www.espressif.com/en/products/socs/esp32-s31
281•volemo•14h ago•151 comments

A Man Who Reads Books for a Living

https://lithub.com/the-man-who-reads-books-for-a-living-one-every-two-days/
106•gmays•10h ago•80 comments

A Post-Quantum Future for Let's Encrypt

https://letsencrypt.org/2026/06/03/pq-certs
248•SGran•16h ago•135 comments

Gooey: A GPU-accelerated UI framework for Zig

https://github.com/duanebester/gooey
162•ksec•13h ago•59 comments

Ableton Extensions SDK

https://www.ableton.com/en/live/extensions/
105•bennett_dev•10h ago•41 comments

Patching my guitar amp's firmware

https://mforney.org/blog/2026-05-28-patching-my-guitar-amps-firmware.html
71•birdculture•3d ago•9 comments

Journey to JPEG XL: open-source experiments shaped the future of image coding

https://opensource.googleblog.com/2026/06/journey-to-jpeg-xl-how-open-source-experiments-shaped-t...
67•ledoge•9h ago•35 comments

The Capacity of HotHands to Facilitate High-Altitude Research (2023) [pdf]

https://www.colorado.edu/center/spacegrant/sites/default/files/attached-files/B3_RRCC_BringingThe...
3•radeeyate•3d ago•0 comments

A Mathematician's Lament (2002) [pdf]

https://worrydream.com/refs/Lockhart_2002_-_A_Mathematician%27s_Lament.pdf
67•xeonmc•9h ago•2 comments

Launch HN: Hyper (YC P26) – Company brain to power agentic development

65•shalinshah•13h ago•58 comments

Mathematicians issue warning as AI rapidly gains ground

https://www.science.org/content/article/mathematicians-issue-warning-ai-rapidly-gains-ground
216•pseudolus•21h ago•257 comments

U.S. to dismantle system tracking Atlantic currents that are at risk of collapse

https://e360.yale.edu/digest/trump-ooi-amoc
415•rguiscard•6h ago•273 comments

Dumbphone 2

https://dumb.co/
27•skogstokig•6h ago•13 comments

Self-hosted dev sandboxes with preview URLs (Docker, Go, no K8s)

https://github.com/tastyeffectco/sandboxes
79•tastyeffectco•11h ago•20 comments

PlayStation Architecture

https://www.copetti.org/writings/consoles/playstation/
288•gregsadetsky•20h ago•57 comments

Embryos shape their limbs: a key discovery of "genetic brakes"

https://nouvelles.umontreal.ca/en/article/2026/06/02/how-embryos-shape-their-limbs-a-key-discover...
65•gmays•13h ago•5 comments

Every Byte Matters

https://fzakaria.com/2026/06/01/every-byte-matters
238•ingve•20h ago•118 comments