News for hackers. Stuff that matters.

joerick

Re:Python's experimental JIT to be removed on Wednesday October 28, 2026 @04:58AM (#50270816)
I only just saw it mentioned in this thread, but CinderX might suit you well.
Re:Using FireWire on a Raspberry Pi on Thursday March 26, 2026 @07:29PM (#47537197)
I have a Focusrite Saffire that has lots of nice, quiet preamps and ADC channels. I managed to get an old Mac to connect over FireWire and using the Focusrite Control app, I configured the routing to map all the analog inputs to ADAT. That works great but it's always at the wrong sample rate, and I can't change that without getting the old Mac out. Maybe I'll look into one of these rPi shields too. Anyone got any reverse engineering tips for the control protocol?!
It should land in 3.15, so October next year. https://peps.python.org/pep-0790/
Re:Uncertain<T> on Friday August 29, 2025 @02:05AM (#45060737)
I've been wondering for a while if a program could "learn" covariance somehow. Through real-world usage.

Otherwise, it feels to me that it'd be consistently wrong to model the variables as independent. And any program of notable size is gonna be far too big to consider correlations between all the variables.

As for how one might do the learning, I don't know yet!

If we assume no conspiracy, what's the sentencing like for perjury due to carelessness?
Re:Introducing Gemma 3n on Thursday June 26, 2025 @05:23PM (#44391566)
Google do have an API for this. It has limits but perfectly good for personal use.

https://developers.google.com/custom-search/v1/overview

Re:Guess I'm a Rationalist Now on Friday June 20, 2025 @06:42PM (#44332788)
Beautifully put.
Pretty fascinating from an information theory point of view. Surprising that it works at all. Is this, like, the JPEG of uniformly distributed, uncorrelated data?
I came across this page in a discussion about dithering. It was posted by @rikroots.

Fascinating stuff. I love to see the application of the 2D Fourier transform for analysis. Added bonus - they tile brilliantly.

Re:EA Open Sources Command and Conquer: Red Alert on Friday February 28, 2025 @05:07AM (#43203874)
Hahaha. We used to get desyncs on networked games of Generals pretty regularly. I remember if a game took more than 30-40 mins I'd start to get a spidey sense things were about to go wrong
Re:Embeddings Are Underrated on Friday November 01, 2024 @08:50AM (#42016448)
Yeah, 'everything' as in 'everything that the model cares about' :)
Re:Embeddings Are Underrated on Friday November 01, 2024 @08:49AM (#42016441)
Nice workaround. I just wish there was a less 'lossy' way to go about it!
Re:Embeddings Are Underrated on Friday November 01, 2024 @08:48AM (#42016432)
Interesting, but your hypothesis assumes that 'tone' is one-dimensional, that there is a single axis you can remove. I think tone is very multidimensional, I'd expect to be removing multiple 'directions' from the embedding.
Re:Embeddings Are Underrated on Friday November 01, 2024 @07:13AM (#42015790)
The thing that puzzles me about embeddings is that they're so untargeted, they represent everything about the input string.

Is there a method for dimensionality reduction of embeddings for different applications? Let's say I'm building a system to find similar tech support conversations and I am only interested in the content of the discussion, not the tone of it.

How could I derive an embedding that represents only content and not tone?

Re:Orion, Our First True Augmented Reality Glasses on Thursday September 26, 2024 @02:39AM (#41655195)
The touchscreen might be better than you're giving it credit for. Direct interaction (vs the indirectness of mice, keyboards, gesture) is one benefit that I can't see done better any other way. I think people will always have some kind of handheld touchscreen as a result.
Re:Vue 3.5 – The Vue Point on Wednesday September 04, 2024 @03:19AM (#41442778)
Biggest functional difference is that Vue's reactivity is built on Proxy objects, which lets you simply bind your view layer to your model layer and things just keep in sync, without any extra APIs to think about. React has useState which gives you a setter that you need to use with an entirely new object each time. In Vue you can just change a property deep inside the model layer and the view updates.

That's what's keeping me in Vue primarily. I think MobX does something similar in React but the API is clunkier than Vue.

On top of that, the API is just much nicer. None of the confusing functional language and concepts e.g. "what exactly did the programmer intend by this 'useEffect' call??"

Re:No One's Ready for This on Friday August 23, 2024 @03:50AM (#41326995)
I've been thinking for a while that digital photos should include a signature derived from a hardware key on each camera. That at least would prevent people lying in metadata, and give us some means to verify. If I trust Canon's signature, I trust that these pixels were taken by a camera.
Re:Rye and Uv: August Is Harvest Season for Python Packaging on Wednesday August 21, 2024 @07:28PM (#41315201)
...and a lot of solo developers and academics besides. (I say that as a corporately unaffiliated PyPA member)
Re:Things I've learned building a modern TUI Framework on Monday August 12, 2024 @12:11PM (#41226101)
I've used xterm.js for this, but I was already in a webview. It's pretty good, might even be worth the webview for https://github.com/xtermjs/xterm.js Used by vscode among others
Re:Figma OSS Alternative on Wednesday May 01, 2024 @04:51AM (#40220969)
If a project is really mature, reusable components in design tools can work. But for early stage stuff, they can quickly prove more trouble than they're worth.

The designer's job is to think creatively, on behalf of the user, through the entire system, the states, the transitions. Faffing around with reusable components gets in the way of the right kind of thought, IMHO. It's like the design version of big complex class hierarchies. Done too early, they will really slow you down.

Re:Figma OSS Alternative on Wednesday May 01, 2024 @04:45AM (#40220939)
Figma made a mistake including the absolute positioning in their Dev mode. It's never useful, and leads to confused engineers like this.

Figma is a design tool. It is used by designers as a way to build the visual mocks of software. It's not building HTML under the hood. As a frontend engineer, I have to interpret the designs given to me and translate the layouts into something that will be responsive, cope with different data, etc. that part is the job of a frontend engineer, and so far there is no tooling that solves that.

The Figma dev mode helps shortcut some of that work, by providing easy copy-paste for attributes like background, border, fonts, spacing etc. it's a timesaver. But you should never copy the whole thing.

Re:What I've learned about flow fields so far on Tuesday January 02, 2024 @05:18AM (#38840102)
This is awesome! I noticed on the 'Experimenting with lines' section, when smoothness is low, warp is high and length is high, that the lines end up mostly coalescing into big roads. It reminded me of ants forming paths, but it's interesting that this required no communication between the lines. Is this a particular feature of the noise function or does it always do that?
Re:Ethernet over HTTPS Protocol on Saturday December 30, 2023 @08:47AM (#38815236)
This is confusing. The response to a raw Ethernet frame is JSON containing "https_response" Why drop down to a layer 1 Ethernet frame when the response is specific to HTTP?
This is a huge release! I'm still getting my head around what the Python-in-hatch inversion means. I'd expect to do 'pip install --user hatch' to get hatch on my system. Does this mean that hatch itself is distributed separately from a Python installation?
Re:Ask HN: Show me your half baked project on Friday October 13, 2023 @07:27PM (#37876716)
When I was a boy I found an app on MacOS 8 called Graphical Calculator. You could type in nonsensical maths like 'sin(x+tan(y))' and it would draw beautiful pictures.

20 years later I get the same kick out of GL shaders. I built this website to play with them.

https://tinyshader.com/rq

Re:Towards HTTPS by Default on Thursday August 17, 2023 @03:02AM (#37158181)
While I support the cause, HTTPS is the biggest thing obsoleting old devices in my experience.

Currently hitting this with an old eink project that's based on an obsolete ereader. I wonder if there's some kind of proxy I could connect to over HTTP that does the modern HTTPS on my behalf. (I'm aware of the security implications, just want it to get a tweet/weather forecast)

Re:Experimenting on My Hearing Loss on Wednesday December 30, 2020 @03:13PM (#25585533)
I would also be curious to know this. Maybe it's possible that non linearities of hearing make the time-based approach better?

Older »