frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Statement from Dario Amodei on our discussions with the Department of War

https://www.anthropic.com/news/statement-department-of-war
2107•qwertox•13h ago•1130 comments

Can you reverse engineer our neural network?

https://blog.janestreet.com/can-you-reverse-engineer-our-neural-network/
63•jsomers•2d ago•5 comments

F-Droid Board of Directors nominations 2026

https://f-droid.org/2026/02/26/board-of-directors-nominations.html
44•edent•2h ago•12 comments

Dyson settles forced labour suit in landmark UK case

https://www.bbc.com/news/articles/cddnry8dnl7o
53•cmsefton•2h ago•37 comments

The normalization of corruption in organizations (2003) [pdf]

https://gwern.net/doc/sociology/2003-ashforth.pdf
107•rendx•6h ago•38 comments

An interactive intro to quadtrees

https://growingswe.com/blog/quadtrees
43•evakhoury•2d ago•3 comments

The Hunt for Dark Breakfast

https://moultano.wordpress.com/2026/02/22/the-hunt-for-dark-breakfast/
281•moultano•8h ago•108 comments

Breaking Free

https://www.forbrukerradet.no/breakingfree/
20•Aissen•2h ago•2 comments

Reading English from 1000 Ad

https://lewiscampbell.tech/blog/260224.html
12•LAC-Tech•3d ago•2 comments

What Claude Code chooses

https://amplifying.ai/research/claude-code-picks
463•tin7in•18h ago•180 comments

Compact disc story (1998)

https://www.researchgate.net/publication/294484774_Compact_disc_story
13•pipeline_peak•9h ago•4 comments

80386 Protection

https://nand2mario.github.io/posts/2026/80386_protection/
89•nand2mario•2d ago•17 comments

Quantitativity on the number of rational points in the Mordell conjecture

https://www.scientificamerican.com/article/mathematicians-make-a-breakthrough-on-2-000-year-old-p...
5•wglb•23h ago•1 comments

Ubicloud (YC W24): Software Engineer – $95-$250K in Turkey, Netherlands, CA

https://www.ycombinator.com/companies/ubicloud/jobs/j4bntEJ-software-engineer
1•ozgune•3h ago

The complete Manic Miner disassembly

https://skoolkit.ca/disassemblies/manic_miner/
16•sandebert•4h ago•4 comments

The quixotic team trying to build a world in a 20-year-old game

https://arstechnica.com/gaming/2026/02/inside-the-quixotic-team-trying-to-build-an-entire-world-i...
9•nxobject•2d ago•0 comments

MitID, Denmarks sole digital ID, has been down for over an hour and counting

https://www.digitaliser.dk/mitid/nyt-fra-mitid/2026/feb/driftsforstyrrelser-mitid
60•mousepad12•1h ago•82 comments

What does " 2>&1 " mean?

https://stackoverflow.com/questions/818255/what-does-21-mean
324•alexmolas•16h ago•179 comments

AirSnitch: Demystifying and breaking client isolation in Wi-Fi networks [pdf]

https://www.ndss-symposium.org/wp-content/uploads/2026-f1282-paper.pdf
373•DamnInteresting•20h ago•170 comments

Lawmakers say US Military used laser to take down Border Protection drone in TX

https://apnews.com/article/military-laser-border-drone-texas-airport-55aaab7093f7d6dd174f909f3875...
17•thinkcontext•1h ago•6 comments

Layoffs at Block

https://twitter.com/jack/status/2027129697092731343
765•mlex•15h ago•835 comments

The Origins of Agar

https://www.asimov.press/p/agar
41•surprisetalk•3d ago•5 comments

Implementing a clear room Z80 / ZX Spectrum emulator with Claude Code

https://antirez.com/news/160
34•antirez•2d ago•36 comments

Parakeet.cpp – Parakeet ASR inference in pure C++ with Metal GPU acceleration

https://github.com/Frikallo/parakeet.cpp
74•noahkay13•8h ago•20 comments

Working on Pharo Smalltalk: BPatterns: Rewrite Engine with Smalltalk Style

http://dionisiydk.blogspot.com/2026/02/bpatterns-rewrite-engine-with-smalltalk.html
13•mpweiher•3h ago•1 comments

US Customs destroys rare floppy disk

https://twitter.com/TehKeripo/status/2027171532825571678
10•Shank•35m ago•3 comments

Launch HN: Cardboard (YC W26) – Agentic video editor

https://www.usecardboard.com/
125•sxmawl•18h ago•66 comments

OsmAnd’s Faster Offline Navigation (2025)

https://osmand.net/blog/fast-routing/
190•todsacerdoti•18h ago•67 comments

I rendered 1,418 confusables over 230 fonts. Most aren't confusable to the eye

https://paultendo.github.io/posts/confusable-vision-visual-similarity/
78•paultendo•2d ago•33 comments

An Introduction to the Codex Seraphinianus, the Strangest Book Ever Published

https://www.openculture.com/2026/02/an-introduction-to-the-codex-seraphinianus.html
85•vinhnx•3d ago•18 comments
Open in hackernews

Elliptical Python Programming

https://susam.net/elliptical-python-programming.html
184•sebg•10mo ago

Comments

benob•10mo ago
TIL that in python, 1--2==3
seplox•10mo ago
It's not a python thing. 1-(-2), distribute the negative.
qsort•10mo ago
In most C-like languages that would be a syntax error. E.g. in C and C++ as a rule you tokenize "greedily", "1--2" would be tokenized as "1", "unary decrement operator", "2", which is illegal because you're trying to decerment an rvalue.

Python doesn't have "--", which allows the tokenizer to do something else.

nyrikki•10mo ago
In C, that is really because Unary minus (negation) has precedence over binary operations.

    +a - b; // equivalent to (+a) - b, NOT +(a - b)
    -c + d; // equivalent to (-c) + d, NOT -(c + d)

https://en.cppreference.com/w/cpp/language/operator_arithmet...

    +-e; // equivalent to +(-e), the unary + is a no-op if “e” is a built-in type
     // because any possible promotion is performed during negation already
The same doesn't apply to, !! Which is applied as iterated binary operations (IIRC)

I am pretty sure the decriment operator came around well after that quirk was established.

seanhunter•10mo ago
Peter van der Linden’s book “Expert C Programming” (which is awesome btw) says that one of them (Kernighan, Richie or maybe Ken Thompson I forget) realised early on that the c compiler had the wrong operator precedence for bit twiddling and unary and boolean operators but “at that stage we had a few thousand lines of C code and thought it would be too disruptive to change it”
j2kun•10mo ago
Also worth noting that `1 - -2` works and produces 3 in C because the space breaks the operator.
plus•10mo ago
For those who are curious, `...` is a placeholder value in Python called Ellipsis. I don't believe it serves any real purpose other than being a placeholder. But it is an object and it implements `__eq__`, and is considered equal to itself. So `...==...` evaluates to `True`. When you prefix a `True` with `-`, it is interpreted as a prefix negation operator and implicitly converts the `True` to a `1`, so `-(...==...)` is equal to `-1`. Then, you add another prefix `-` to turn the `-1` back into `1`.

`--(...==...)--(...==...)` evaluates to `2` because the first block evaluates to 1, as previously mentioned, and then the next `-` is interpreted as an infix subtraction operator. The second `-(...==...)` evaluates to `-1`, so you get `1 - -1` or `2`.

When chaining multiple together, you can leave off the initial `--`, because booleans will be implicitly converted to integers if inserted into an arithmetic expression, e.g. `True - -1` -> `1 - -1` -> `2`.

> There should be one-- and preferably only one --obvious way to do it.

This article is obviously completely tongue-in-cheek, but I feel the need to point out that this sentence is not meant to be a complete inversion of the Perl philosophy of TIMTOWTDI. The word "obvious" is crucial here - there can be more than one way, but ideally only one of the ways is obvious.

pletnes•10mo ago
Numpy actively uses … to make slicing multidimensional arrays less verbose. There are also uses in FastAPI along the lines of «go with the default».
abuckenheimer•10mo ago
excellent explanation, to add to this since I was curious about the composition, '%c' is an integer presentation type that tells python to format numbers as their corresponding unicode characters[1] so

'%c' * (length_of_string_to_format) % (number, number, ..., length_of_string_to_format_numbers_later)

is the expression being evaluated here after you collapse all of the 1s + math formatting each number in the tuple as a unicode char for each '%c' escape in the string corresponding to its place in the tuple.

[1] https://docs.python.org/3/library/string.html#format-specifi...

nomel•10mo ago
Expanding on this a little, I will be replacing all occurrences of 2 with two blobs fighting, with shields:

    >>> 0^((...==...)--++--(...==...))^0
    2
rmah•10mo ago
>> There should be one-- and preferably only one --obvious way to do it.

Except for package management, of course. There, we need lots and lots of ways.

blooalien•10mo ago
And apparently string formatting which should have an ever growing number of ways to handle it. :shrug:
elijahbenizzy•10mo ago
Ok do this but for JavaScript
voidUpdate•10mo ago
https://en.wikipedia.org/wiki/JSFuck
mariocesar•10mo ago
If you're curious, the code in ellipsis results in executing:

    print('hello, world')
mturmon•10mo ago
Thank you!

I noticed some ** and * in the thing sent to eval(), which (given that the building blocks are small integers) seemed related to prime factorizations.

The initial %c is duplicated 21 times (3*7, if I read correctly), and then string-interpolated (%c%c%c...) against a long tuple of integers. These integers themselves are composed of products of factors combined using * and **.

There is also one tuple "multiplication" embedded within that long tuple of integers -- (a,b)*2 = (a,b,a,b). That is for the 'l' 'l' in "hello".

It's all very clever and amusingly mathy, with a winking allusion to the construction of natural numbers using sets. It made me Godel.

callamdelaney•10mo ago
I think we're really starting to over crowd pythons syntax and I'm not a fan.
noddleah•10mo ago
you're telling me you never program in python elliptically??
acbart•10mo ago
Pretty sure this would have been possible in Python 2.6. The Ellipsis object has been around for a very long time.
MadVikingGod•10mo ago
This behavior can be replicated with any class that has two special methods: __neg__ that returns -1 and __sub__ that accepts ints and returns 1-other.

For example if you make this class:

  class _:
       def __neg__(self):
           return -1
       def __sub__(self, other):
           return 1-other
You get similar behavior:

  >>> --_()
  1
  >>> _()--_()
  2
Fun python for everyone.
maxloh•10mo ago
You can do this on JavaScript too.

  alert(1)
  // equals to:
  [][(![]+[])[+!+[]]+(!![]+[])[+[]]][([][(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[][(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+([][[]]+[])[+!+[]]+(![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[])[+!+[]]+([][[]]+[])[+[]]+([][(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+[]]+(!![]+[][(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[+[]]]+(!![]+[])[+!+[]]]((![]+[])[+!+[]]+(![]+[])[!+[]+!+[]]+(!![]+[])[!+[]+!+[]+!+[]]+(!![]+[])[+!+[]]+(!![]+[])[+[]]+([][(![]+[])[+!+[]]+(!![]+[])[+[]]]+[])[+!+[]+[+!+[]]]+[+!+[]]+([]+[]+[][(![]+[])[+!+[]]+(!![]+[])[+[]]])[+!+[]+[!+[]+!+[]]])()
https://jsfuck.com/