frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

The Shadows Lurking in the Equations

https://gods.art/articles/equation_shadows.html
24•calebm•44m ago•2 comments

An eBPF Loophole: Using XDP for Egress Traffic

https://loopholelabs.io/blog/xdp-for-egress-traffic
63•loopholelabs•22h ago•11 comments

Removing XSLT for a more secure browser

https://developer.chrome.com/docs/web-platform/deprecating-xslt
15•justin-reeves•51m ago•10 comments

A P2P Vision for QUIC (2024)

https://seemann.io/posts/2024-10-26---p2p-quic/
10•mooreds•59m ago•1 comments

iOS 26.2 to allow third-party app stores in Japan ahead of regulatory deadline

https://www.macrumors.com/2025/11/05/ios-26-2-third-party-app-stores-japan/
123•tosh•2h ago•62 comments

Mr TIFF

https://inventingthefuture.ghost.io/mr-tiff/
813•speckx•16h ago•114 comments

Radiant Computer

https://radiant.computer
15•beardicus•1h ago•1 comments

The grim truth behind the Pied Piper (2020)

https://www.bbc.com/travel/article/20200902-the-grim-truth-behind-the-pied-piper
36•Anon84•2h ago•25 comments

Carice TC2 – An fully analog electric car

https://www.caricecars.com/
5•RubenvanE•40m ago•2 comments

SPy: An interpreter and compiler for a fast statically typed variant of Python

https://antocuni.eu/2025/10/29/inside-spy-part-1-motivations-and-goals/
138•og_kalu•5d ago•54 comments

Founder in Residence at Woz (San Francisco)

1•bcollins34•3h ago

Parsing Chemistry

https://re.factorcode.org/2025/10/parsing-chemistry.html
19•kencausey•1w ago•5 comments

RISC-V takes first step toward international ISO/IEC standardization

https://riscv.org/blog/risc-v-jtc1-pas-submitter/
200•jrepinc•6d ago•76 comments

Hypothesis: Property-Based Testing for Python

https://hypothesis.readthedocs.io/en/latest/
168•lwhsiao•11h ago•95 comments

UPS plane crashes near Louisville airport

https://avherald.com/h?article=52f5748f&opt=0
222•jnsaff2•15h ago•180 comments

Asus Announces October Availability of ProArt Display 8K PA32KCX

https://press.asus.com/news/press-releases/asus-proart-display-8k-pa32kcx-availability/
124•Roachma•1w ago•180 comments

Bluetui – A TUI for managing Bluetooth on Linux

https://github.com/pythops/bluetui
210•birdculture•15h ago•70 comments

Intervaltree with Rust Back End

https://github.com/Athe-kunal/intervaltree_rs
35•athekunal•3d ago•11 comments

Optimism Associated with Exceptional Longevity

https://www.pnas.org/doi/10.1073/pnas.1900712116
28•RickJWagner•1h ago•16 comments

NY Smartphone Ban Has Made Lunch Loud Again

https://gothamist.com/news/ny-smartphone-ban-has-made-lunch-loud-again
39•hrldcpr•1h ago•14 comments

Blue Prince (1989)

https://novalis.org/blog/2025-10-27-blue-prince-1989.html
11•luu•1w ago•12 comments

Apple’s Persona technology uses Gaussian splatting to create 3D facial scans

https://www.cnet.com/tech/computing/apple-talks-to-me-about-vision-pro-personas-where-is-our-virt...
172•dmarcos•5d ago•82 comments

The Microsoft SoftCard for the Apple II: Getting two processors to share memory

https://devblogs.microsoft.com/oldnewthing/20251104-00/?p=111758
74•zdw•12h ago•28 comments

Grayskull: A tiny computer vision library in C for embedded systems, etc.

https://github.com/zserge/grayskull
139•gurjeet•16h ago•11 comments

Pg_lake: Postgres with Iceberg and data lake access

https://github.com/Snowflake-Labs/pg_lake
351•plaur782•22h ago•107 comments

Moving tables across PostgreSQL instances

https://ananthakumaran.in/2025/11/02/moving-tables-across-postgres-instances.html
42•ananthakumaran•3d ago•0 comments

Kosmos: An AI Scientist for Autonomous Discovery

https://arxiv.org/abs/2511.02824
4•belter•22m ago•0 comments

I’m worried that they put co-pilot in Excel

https://simonwillison.net/2025/Nov/5/brenda/
199•isaacfrond•6h ago•140 comments

By the Power of Grayscale

https://zserge.com/posts/grayskull/
242•surprisetalk•5d ago•46 comments

Michael Burry is back with two bets against Nvidia and Palantir

https://www.cnn.com/2025/11/05/business/nvidia-palantir-michael-burry-stock
8•jb1991•27m ago•1 comments
Open in hackernews

Elliptical Python Programming

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

Comments

benob•6mo ago
TIL that in python, 1--2==3
seplox•6mo ago
It's not a python thing. 1-(-2), distribute the negative.
qsort•6mo 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•6mo 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•6mo 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•6mo ago
Also worth noting that `1 - -2` works and produces 3 in C because the space breaks the operator.
plus•6mo 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•6mo 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•6mo 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•6mo ago
Expanding on this a little, I will be replacing all occurrences of 2 with two blobs fighting, with shields:

    >>> 0^((...==...)--++--(...==...))^0
    2
rmah•6mo 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•6mo ago
And apparently string formatting which should have an ever growing number of ways to handle it. :shrug:
elijahbenizzy•6mo ago
Ok do this but for JavaScript
voidUpdate•6mo ago
https://en.wikipedia.org/wiki/JSFuck
mariocesar•6mo ago
If you're curious, the code in ellipsis results in executing:

    print('hello, world')
mturmon•6mo 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•6mo ago
I think we're really starting to over crowd pythons syntax and I'm not a fan.
noddleah•6mo ago
you're telling me you never program in python elliptically??
acbart•6mo ago
Pretty sure this would have been possible in Python 2.6. The Ellipsis object has been around for a very long time.
MadVikingGod•6mo 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•6mo ago
You can do this on JavaScript too.

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