HNHacker News
TopNewBestAskShowJobs

phoyd

323 karma · joined July 7, 2010

submissionscomments
phoyd··on Pirate Face Rescues LLM Models from Deletion
Torrents should really be the preferred method for distributing AI model weights. Why rely on a single point of failure like Hugging Face? BitTorrent was made for exactly this.
phoyd··on Are we SIXEL yet?
Yazi, If, and Ranger file managers use it to display images inline. Euporie allows you to run a graphical Jupyter console session.

Sixel is a very old standard and has been used to display graphics in terminals since the 80s. It fell out of favor when high-resolution bitmapped desktop environments became mainstream (and affordable), but it is still useful if you are doing remote console work and don't want to set up network hoops with ad hoc HTTP servers just to view a remote diagram.

phoyd··on Distributing Mac software is increasing my cortisol levels
That's literally what this post is about.
phoyd··on Formatting a 25M-line codebase overnight
I am more shocked by the "overnight" aspect. I tried running clang-format on the Chromium source (68,281 .cc files, 21 million lines according to wc):

$ find chromium-149.0.7826.1/ -name ".cc" -exec cat {} + | wc 21640925 55715244 833460441

And that took less than 6 minutes on a single E5-2696 v3 from 2014:

$ time find chromium-149.0.7826.1/ -name *.cc | parallel -j 16 clang-format $x>/dev/null

real 0m5.666s user 1m13.964s sys 0m13.373s

That’s orders of magnitude faster, especially if we assume they’re not running their workloads on potatoes like mine. Is Ruby’s syntax really that much more complicated than C++, or is this a tooling problem?

phoyd··on Use singular nouns for database table names
I want to drop here the not very well known fact, that the SQL Standard grammar distinguishes between "SQL language identifier" and "regular identifier". According to the rules, a SQL language identifier can not end with an underscore (copied from ISO/IEC 9075-2:1999 "5.4 Names and identifiers":

<SQL language identifier> ::=<SQL language identifier start> [ { <underscore> | <SQL language identifier part> }... ]

<SQL language identifier start> ::= <simple Latin letter> <SQL language identifier part> ::= <simple Latin letter> | <digit>

So, using names with trailing underscore should always be safe.

phoyd··on Spectre.Console – create beautiful console applications
.NET Core ran on Linux from version 1.0 on and it was released 2016.
phoyd··on Ask HN: Device for Music and GPS
Only cellular iPads have GPS IIRC.
phoyd··on Every company should be owned by its employees
Giving employees stock options does not solve the "employes should own the company" problem, when there is a market to sell the stock. Shareholders and employees have different goals and interests regarding the company. For example, the employees they may have to decide on the elimination of their own jobs in order to secure the value of their stock holdings (which btw. would make the company not owned by their employees anymore)

A more interesting approach would be a model where being a employee automatically gives you a vote on company wide decisions including. the distribution of profits, just how being a cititzen of a democratic country gives you a vote on the fate of your country (similar to the Mondragon Corporation in Spain)

phoyd··on A Physical instance of recursion, from 1936
A nice illustrative example of https://en.m.wikipedia.org/wiki/Brouwer_fixed-point_theorem
phoyd··on Devzat – Chat over SSH, with some nice quality-of-life features
I'm also interested. Setting up a passwordless SSH account for some public service sounds like a good way to give your machine away to North Korean hackers, because you forgot to set someting in /etc/sshd to "no".

Is there a usable description somewhere on how to do this safely?

phoyd··on Z80 CPU Microprocessor Instant Reference Card (1981) [pdf]
https://retrocomputingforum.com/t/micro-chart-cpu-reference-...

has a few more charts from the same publisher.

phoyd··on Raspberry Pi 5
Pi5 is already on Geekbench. Speed seemed to be on the ballpark of a mobile Intel i5 dual core 4xxx IIRC.
phoyd··on Why did 16-bit _lopen and _lcreat functions return -1 on failure instead of 0?
Under UNIX, the lowest available file descriptor for the process is returned from open/create (also in Posix). So if you close(0) and then immediately open() something, you will (probably) get 0 as the new file descriptor.

This is the way redirection was done in early UNIX versions, at least I think until System 7, where dup2() was introduced to address the race condition lurking here.

phoyd··on Chromebooks will get 10 years of automatic updates
2008 ThinkPad t400 user here, running Ubuntu. Most business class notebooks are incredibly durable and the market offers replacement parts for 10 of 15 year old devices. A t400 battery is less than 25€ on Amazon and there are dozens of vendors.
phoyd··on Inmos and the Transputer – Parallel Ventures
Transputer (and Occam) designer David May founded XMOS in 2005 where the ideas of the Transputer are still alive in the the xCore Architecture they make and sell. Their SDK offers offers a programming languages called "XC" which contains Occam features in a C skin:

https://handwiki.org/wiki/XC_(programming_language)

phoyd··on There's something off about LED bulbs
>If you’re lucky, the LED will have a CRI of 90 or higher

EU has banned incandescent lights years ago and the situation for LED buyers is much different here. My local drug store chain (Rossmann in Germany) sells 1000lm E27 bulbs under their own Rubin brand with CRI>97 for 4.99€. No flickering and available as 2700K or 4000K. My Opple Light Master 3 even reads CRI 100. So for me right now, it's just going to the drug store and buying a bulb, like before the ban.

phoyd··on Bard uses a Hacker News comment as source to say that Bard has shut down
Hey Bard, ever heard of Descartes?
phoyd··on Show HN: Unblob – extraction suite for 30+ file formats
I am not seeing an option to pass a password to the archive extractors. Is the any?
phoyd··on Byte Magazine 1975-1995
Yes, this was awesome. They explained the VM and everything.
phoyd··on Byte Magazine 1975-1995
I remember how I read about functional programming languages for the first time in the August 1985 Byte issue, which I bought as a teenager because it featured a technical rundown of the new Amiga computer. For me in the early 80'e, Byte was a cornucopia of interesting stuff, much like Hacker News today.

(For example there was a whole issue in 1981 on Smalltalk-80, with an introduction by Adele Goldberg, where the Xerox Palo Alto people from the Smalltalk-80 team explain the implementation, the VM etc.)

https://vintageapple.org/byte/ has a (complete?) archive, albeit with slightly lower resolution scans.

phoyd··on We asked ChatGPT to write a Sherlock Holmes mystery
Sherlock Holmes stories are almost always narrated by Watson IIRC. ChatGPT missed that too, didn't it?
phoyd··on There's an ARM Cortex-M4 with Bluetooth inside a Covid test kit
Every Covid self test I've ever used had two red lines for postive and one red line for negative. Why are there tests out there that need color vision?
phoyd··on Chromecast volume controls are disabled on Android 12 due to a ‘legal issue’
The legal issue seems to stem from a few Sonos patents:

https://www.theverge.com/platform/amp/2021/8/13/22623977/son...

For example, Sonos has patented "Method and apparatus for adjusting volume levels in a multi-zone system" and the patent shows an app where you can set volume levels for connected devices:

https://patents.google.com/patent/US8588949B2/en

phoyd··on Founder of Spanish social network Tuenti tortured to steal millions in crypto
Related story: https://news.ycombinator.com/item?id=29092292
phoyd··on Kind: A Modern Proof Language
Do I miss something, or does the quick sort example fail to handle the case where the value of "fst" is present more than once in the list?
phoyd··on A Bit Overcomplicated
Wrong. (-1/2) is 0, (-1>>1) is -1 in C/C++/Java/C#...
phoyd··on Fun with Unix domain sockets
Now Docker should provide some way to bridge container ports to UDS. That would be perfect.
phoyd··on The Tyranny of Spreadsheets
"More Modern" such that it does not contain 8 year old unfixed bugs.

https://stackoverflow.com/questions/68034271/how-can-i-get-t...

phoyd··on Terrible programming features from the past
Actually, it is still in vb.net for compatibility reasons. "on error" is fundamentally incompatible with structured error handling, going so far, that you can't event have try..catch oder event using..end using in a sub or function that also has "on error"
phoyd··on Solana Labs completes a $314M private token sale led by Andreessen Horowitz
Point is, that you can not finish VDF twice as fast (and probably not even by any other factor >1) with two CPUs, because they can't share work.
Page 1 of 2Next →