@kornel@mastodon.social
@kornel@mastodon.social avatar

kornel

@kornel@mastodon.social

This profile is from a federated server and may be incomplete. Browse more on the original instance.

kornel, (edited ) to random
@kornel@mastodon.social avatar

Dear #OpenSource contributors:

do
not
reformat
the
code.

It takes a second to run the formatter, but it requires hours to review the massive patch to ensure there aren't any bad changes hiding among all the spaces and brackets moved around.

kornel, to random
@kornel@mastodon.social avatar

People are afraid of running unaudited curl | sh, but nobody bats an eye on 24707 lines of obfuscated garbage in ./configure.

#xz

kornel, to random
@kornel@mastodon.social avatar

“Argument list too long” is such an archaic error.
Sorry, your computer can’t run this program, because somewhere there’s a buffer limited to one millionth of your RAM size.
#posix

kornel, to random
@kornel@mastodon.social avatar

It's surreal how slowly time moves in the world of C compilers.

Today there are still active projects that are hesitant to move past C89, and C99 is still the "new" standard.

The C99 standard has been released before the first public Mac OS X and Windows XP. It's older Itanium and the x86-64 instruction set. It predates iPod, Game Cube, first ever Xbox, and Nokia 3310.

Entire platforms lived and died in the meantime, while C programmers still can't be sure if they can rely on the new C99.

kornel, to random
@kornel@mastodon.social avatar

I've finally managed to get notarized!

Try the beta build v1.9.1. It supports ARM fully now.

https://imageoptim.com/changelog.html#v1.9.1

kornel, to random
@kornel@mastodon.social avatar

I remember how outrageous it was when Windows XP required 64 megabytes of RAM, because the whole Windows 95 disk installation fit in 55MB. Win95 was bloated too, because it merely caught up with features of AmigaOS from a decade earlier, which fit entirely on a 0.7MB floppy. And that AmigaOS had some fancy icon files larger than entire programs for GeOS. And micros had it easy. Bletchley Colossus did more important work than any of your computers ever will, and it didn't even have RAM!

kornel, to Software
@kornel@mastodon.social avatar

In the pull request model, any change needs to be approved before it's merged.

In Wikipedia, changes are allowed by default, only later reverted or corrected if necessary.

I wonder if open source #software projects could use the Wikipedia model instead.
Maybe with a twist that tests can't be changed, but anything that passes tests gets merged automatically.

kornel, to random
@kornel@mastodon.social avatar

iOS is showing me Uber Eats ads on my home screen. I don’t have their app.
If this is some kind of a beacon trick, I hope Flipper Zero can broadcast goatse shortcuts.

kornel, to webdev
@kornel@mastodon.social avatar

folks, do you have any recent data on effectiveness of CSS/JS minification? (vs just gzip/brotli)

kornel, to random
@kornel@mastodon.social avatar

#DNSSEC serves no purpose other than causing outages for those who try to keep the dead technology alive.

https://blog.cloudflare.com/1-1-1-1-lookup-failures-on-october-4th-2023/

It doesn't even matter if DNSSEC is secure, because nothing important relies on it.

kornel, to random
@kornel@mastodon.social avatar

I end up explaining over and over again that #rustfmt is not good for being applied unconditionally to human-maintained code.

Unlike gofmt-like tools that correct bad formatting, rustfmt forces a canonical form of everything. It replaces all human direction with its own primitive heuristics. It doesn't have common sense, and does not allow to be corrected. This frequently leads to absurdly misformatted code, and pointless changes for the worse.

I'm going to snap and write my own formatter…

kornel, to random
@kornel@mastodon.social avatar

I'm annoyed by the rants about HTTP/2 being "bad" for having one (already mitigated) issue, as if we foolishly left a better protocol behind.
HTTP/1 had a long history of request smuggling attacks due to its deceptively tricky to parse syntax. H/1 got hit by slow loris DoS. H/1 pipelining is forever unreliable — browser vendors have given up on it after years of trying, and getting silent data corruption. The "simple" protocol has created complexity of domain sharding and cookieless domains.

kornel, to random
@kornel@mastodon.social avatar

I've set up git commit signing with SSH. It was relatively easy, and did not need any GPG cruft.

https://calebhearth.com/sign-git-with-ssh

kornel, (edited ) to rust
@kornel@mastodon.social avatar

I took the list of packages in Debian, and converted it to cargo-vet audits, so you can use "Debian-approved" dependencies without depending on Debian.

https://salsa.debian.org/rust-team/debcargo-conf/-/tree/master/src

https://raw.githubusercontent.com/kornelski/crev-proofs/HEAD/debian.toml

https://mozilla.github.io/cargo-vet/importing-audits.html

https://lib.rs/crates/want/audit

kornel, to random
@kornel@mastodon.social avatar

Building the rustc compiler:

Max: 3m32s
Max: 2m17s

M1 has 8+2 cores, M3 has 12+4. Not a scientific benchmark, I just ran these once.

kornel, to rust
@kornel@mastodon.social avatar

Computers are fast:

  • Loading and parsing 123,610 JSON files from a git repo: 6s.
  • Running full recursive dependency resolution for 160,404 versions of crates: 1.6s.
  • Calculating stats for reverse dependencies from 6,206,363 uses of crates: 0.3s.

And it all trivially fits in RAM, I'm not using any database. #rustlang

kornel, to VisionPro
@kornel@mastodon.social avatar

I've had the first iPhone, but 3GS was the first good version, and 4 rocked.

I've had the first iPad, but it was quickly replaced by one half its size and weight, and it took >4 generations before it was fast enough.

I worry the $3.5K 1 is going to be same thick, heavy, underpowered, quickly-obsolete first-gen product.

kornel, to random
@kornel@mastodon.social avatar

I've been using https://DuckDuckGo.com as my default search for years now. It's fine.

DDG supports a special !g keyword that redirects the search to Google, so I can easily get a second opinion when DDG isn't finding what I want.

kornel, to random
@kornel@mastodon.social avatar

I've been looking a bit at #Lemmy, the fediverse reddit.

Once set up, with subscriptions to multiple communities, filtered views, a better skin, I can see it could work.

But it sucks at making a good first impression. Color scheme of a ransom note. Fits only 5 posts on the screen, four of which are dare to upvote a can of beans.

kornel, to random
@kornel@mastodon.social avatar

I'm writing a fluid simulator as an excuse to learn more #shader coding.

I get now why people keep reinventing fluid simulators — there's some very clever math in the fundamentals, but also the problem has no right solution, so there's also lot that can be fudged and tweaked for different results.

kornel, to random
@kornel@mastodon.social avatar

Can I get 10.5 million dollars to develop unnecessary doodad for a useless thing? I promise when it fails, I'll return some of the money back.

https://mastodon.social/@web3isgreat@indieweb.social/111269242099718770

kornel, to random
@kornel@mastodon.social avatar

I've made improvements to the lib.rs site: #rustlang

https://users.rust-lang.org/t/new-features-on-lib-rs/98560

kornel, to random
@kornel@mastodon.social avatar

Game graphics will get even better once developers can set #raytracing as the minimum requirement. Path tracing in Alan Wake 2 looks great, but it inherits some errors from lights pre-baked for an older rendering pipeline.

https://youtu.be/tXfwvohROPA?si=ZyzgkwzWGNHTvVAw

kornel, to random
@kornel@mastodon.social avatar

Who's using #s390x?

AFAIK that platform has been dead for nearly 20 years now. And yet, Ubuntu seems to have native build machines for it.

kornel, to random
@kornel@mastodon.social avatar

C++ users are offended when someone says “C/C++”, but the LAMP abbreviation uses “PHP/Perl/Python” and nobody bats an eye.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • mdbf
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • megavids
  • GTA5RPClips
  • tacticalgear
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • ethstaker
  • anitta
  • provamag3
  • Leos
  • cisconetworking
  • lostlight
  • All magazines