frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

OpenAI admits it screwed up testing its 'sycophant-y' ChatGPT update

https://www.theverge.com/news/661422/openai-chatgpt-sycophancy-update-what-went-wrong
1•bit_qntum•47s ago•0 comments

A mathematical proof assistant (v2)

https://github.com/teorth/estimates
1•ptrj_•1m ago•0 comments

Why travel didn't bring the world together

https://www.ft.com/content/33e907bd-d6a9-43a2-9d96-c7709fea3a47
1•rwc9•3m ago•0 comments

We've submitted Fortnite to Apple for review

https://twitter.com/Fortnite/status/1920878504284975585
1•ushakov•5m ago•0 comments

Not Recommended: Why Current Content Recommendation Systems Fail Us

https://www.gojiberries.io/not-recommended-why-current-content-recommendation-systems-fail-us/
1•goji_berries•8m ago•1 comments

Ask HN: Which function definition keyword do you prefer, def or fn?

1•winwang•12m ago•1 comments

Xkcd's "Is It Worth the Time?" Considered Harmful

https://will-keleher.com/posts/its-not-worth-the-time-yet.html
4•gcmeplz•12m ago•0 comments

Apple reportedly readies Baltra processors for AI servers

https://www.tomshardware.com/pc-components/cpus/apple-reportedly-readies-baltra-processors-for-ai-servers
2•giuliomagnifico•13m ago•0 comments

Galactic Coordinate System

https://en.wikipedia.org/wiki/Galactic_coordinate_system
1•olddustytrail•14m ago•0 comments

The Grug Brained Developer

https://grugbrain.dev/
1•vkaku•15m ago•0 comments

Fine-tuned acoustic waves can knock drones out of the sky

https://www.economist.com/science-and-technology/2025/02/05/fine-tuned-acoustic-waves-can-knock-drones-out-of-the-sky
3•m1guelpf•16m ago•0 comments

Sidebar Calendar – Your Schedule at a Glance

https://apps.apple.com/us/app/sidebar-calendar/id6744621424?mt=12
1•gabecatalfo•19m ago•1 comments

Legal actions in Brazilian air transport: a ML/logistic regression analysis

https://www.frontiersin.org/journals/future-transportation/articles/10.3389/ffutr.2023.1070533/full
1•felineflock•19m ago•0 comments

Orders for Pahalgam satellite images from US firm peaked 2 months before attack

https://theprint.in/defence/pahalgam-satellite-image-us-space-tech-firm-maxar-technologies/2620666/
1•rainhacker•20m ago•0 comments

Simon Willison's first blog on LLMs (2022)

https://simonwillison.net/2022/May/31/a-datasette-tutorial-written-by-gpt-3/
4•Alifatisk•20m ago•0 comments

Show HN: No as a Service Rust

https://github.com/ZAZPRO/no-as-a-service-rust
2•ZAZPRO•21m ago•0 comments

Ursula K. Le Guin on the TV Earthsea. (2004)

https://slate.com/culture/2004/12/ursula-k-le-guin-on-the-tv-earthsea.html
2•Tomte•22m ago•0 comments

GNU Taler 1.0 Released

https://www.taler.net/en/news/2025-01.html
6•midzer•23m ago•0 comments

why vi rocks

https://why-vi.rocks/
2•exvi•24m ago•0 comments

How Bail Bonds Work

https://finbarr.site/2025/05/10/how-bail-bonds-work.html
1•Finbarr•25m ago•0 comments

Book Review: Chronicles of Wasted Time (2015)

https://slatestarcodex.com/2015/08/11/book-review-chronicles-of-wasted-time/
1•Michelangelo11•26m ago•0 comments

Why John Wilson Can't Stop Filming

https://www.youtube.com/watch?v=MwGWoqyQqTE
2•marviel•31m ago•0 comments

Python Internals (2010)

https://eli.thegreenplace.net/2010/09/18/python-internals-symbol-tables-part-1
1•azhenley•32m ago•0 comments

A sub-millisecond GC for .NET?

https://blog.applied-algorithms.tech/a-sub-millisecond-gc-for-net
2•PKop•33m ago•0 comments

Why is open source failing?

https://www.youtube.com/watch?v=n82tSWPUhBo
1•pjmlp•33m ago•1 comments

OpenAI enterprise adoption appears to be accelerating, at the expense of rivals

https://techcrunch.com/2025/05/10/openais-enterprise-adoption-appears-to-be-accelerating-at-the-expense-of-rivals/
1•rntn•33m ago•0 comments

MDS-PC1 (Sony) 1997

https://anniversary-net.com/furui/2018/05/04/mds-pc1-sony-1997%e5%b9%b4%e3%80%8054000%e5%86%86/
1•erickhill•34m ago•0 comments

RecordLite: Declaratively maintains SQLite tables, views of semi-structured data

https://github.com/fsaintjacques/recordlite
1•thunderbong•37m ago•0 comments

What Do the Most Powerful Get By Cutting Off the Internet

https://www.nytimes.com/2025/05/08/us/politics/trump-biden-digital-equity-act.html
2•hanson108•38m ago•2 comments

Show HN: Kozu – A minimalist tool to manage your YouTube study sessions

https://www.mykozu.xyz/
2•realhardik18•38m ago•0 comments
Open in hackernews

React Three Ecosystem

https://www.react-three.org/
63•bpierre•4h ago

Comments

tlarkworthy•3h ago
note three.js [1] has nothing to do with React out of the box though, this page highlights an atypical way of using three.js through a popular React binding.

[1] https://threejs.org/

jasonjmcghee•1h ago
You might be getting downvoted for saying it's an "atypical" way of using three.js. the pmnd.rs community (for example) is quite large.

I understand why people like the declarative nature of react three fiber, but it's quite unfortunate that it requires something like code sandbox to allow modification / working with it on the web- but that's by nature due to being react.

Vanilla three.js can be written surprisingly similarly, if you are disciplined about breaking things up into functions/components. And no react necessary / can embed a code editor and allow direct modification.

eyelidlessness•49m ago
For what it’s worth, this is also true of whatever else one might express with JSX: imperative code (and syntax, and semantics) can be structured in a way that closely resembles declarative code… with discipline.

It’s doesn’t have to be especially onerous discipline if you embrace it, but it becomes considerably more onerous as it becomes more social: if some members of a team/contributors to a project embrace it more/less than others, that difference in commitment becomes a constant source of friction.

ttfkam•10m ago
Exactly, as seen with Threlte as a counterpoint.

https://threlte.xyz/

talkingtab•2h ago
When I was new to the integration of threejs and react I found these examples to be just amazing.

https://r3f.docs.pmnd.rs/getting-started/examples

chrisweekly•2h ago
The screenshots look cool, but (on my iPhone) the 1st one I tried to view was in a code sandbox that threw an error.

The examples here

https://threejs.org/examples/#webgl_animation_keyframes

seem to work great on my phone...

MortyWaves•2h ago
R3F is great but almost all the code sandbox demos have been broken for years at this point
hombre_fatal•2h ago
React's threejs/pixijs bindings are a great example of what vdom diffing can let you do.

Since they bring their own reconcile(a, b, diff) function to React, these libs can turn:

    const world = new World()
    const player = new Player()
    world.add(player)
    // somehow wire up the code to keep 
    // player.pos updated
Into:

    const [x, setX] = useState(0)

    return <World>
      <Player x={x} />
    </World>
In other words, you write declarative code, and it does the hard imperative work of adding/removing/disposing/updating things for you.

Just like how it helps you sync your data model to underlying stateful DOM nodes; the idea can be applied on top of any stateful system.

cjonas•2h ago
Just to clarify, you'd write the bottom code (declarative) and the library translates it to the above (imperative) code?
MortyWaves•2h ago
That’s right
cjonas•2h ago
Are there any guides on using the "react style" framework (JSX / State) to generate outputs other than DOM? I've been interested in the idea of doing something similar for JSON or markdown document generation.
cwackerfuss•1h ago
I don't have a good guide for you, but this is the lib you use to create custom React renderers:

https://www.npmjs.com/package/react-reconciler

didgeoridoo•1h ago
This imperative/declarative shift happened as part of UIKit -> SwiftUI too. However, it’s still pretty well accepted that if you’re doing anything “complicated” you’re going to end up writing UIKit imperative code.

I wonder if there’s any research (PL or maybe even more philosophical) on whether declarative approaches can logically cover all imperative use cases.

Basically: is there something special about “verbs” (imperative) that let you do things that “nouns” (declarative) cannot, at least within reasonable verbosity constraints?

nicce•58m ago
Aren’t declarative approaches just abstractions over imperative? Somehow you need to get there. (Processor executes instructions, in the end)
eyelidlessness•56m ago
A (the?) major area where this is generally considered unanswered, and active in PL research, is “effects” (as in, side-effects).
banalico•39m ago
I think there are declarative languages that are Turning-complete, like Prolog, etc. So declarative approaches should be equally good.
hombre_fatal•27m ago
Yeah, one of the qualities of the abstraction is how often you have to reach for the escape hatch, how nice it is to use the escape hatch, and whether it's an escape hatch vs. just two clean modes of tooling working together.

SwiftUI has failed pretty much all of those for me.

In react-pixi / react-three, you have your declarative component tree alongside a `useTick`/`useFrame` function that you can use to do more surgical work, and it works well together. Each component can tap into the tick to update itself.

    const Enemy = ({ initalPos, size }) => {
      const [pos, setPos] = useState(initialPos)

      useTick(dt => {
        setPos(/* Move in a circle */)
      })

      return <Sprite 
        src="/enemy.png" 
        size={size} 
        pos={pos}
      />
    }
I've migrated a few medium-sized pixi/three projects to their React wrappers, and the code cleaned up so well that I could work on them again.

Before that, I'd tried modeling games in Elm and then using its port system to send the game state to JS which then updates the pixi/three world. But it's exactly this updateWorld(oldWorld, newState) that's hard to write, yet that's what these libs do for you.

eyelidlessness•1h ago
Minor nit, because this is one of my weird special interests: this (being render-agnostic) isn’t necessarily a property of React’s virtual DOM. It’s a property of JSX being explicitly specified without semantics.

For instance, Solid also supports custom JSX renderer, but doesn’t use a VDOM to achieve that.

I find it helpful to think of JSX as analogous to a macro (in the lispy sense of the term), except that its syntax and implementation are decoupled. Most compiler tooling assumes the implementation maps to a function call, but even that isn’t strictly required (and again, Solid is a counter example).

ttfkam•11m ago
And JSX is not needed either, as seen with Threlte.

https://threlte.xyz/

When all you know is React, everything gets viewed through that limited lens.

hombre_fatal•5m ago
Sheesh.

The point is about the declarative abstraction and how it's useful for people who don't know what "React Three" might entail, not to enumerate all the frameworks that have it under a submission about "React Three Ecosystem".