Hacker Newsnew | past | comments | ask | show | jobs | submit | Retr0id's commentslogin

I was tinkering with writing my own .git parser recently, and I couldn't help thinking "this could've been an sqlite db".

I found https://github.com/chrislloyd/git-remote-sqlite as a way to achieve git-on-sqlite, which works by registering itself as a git "remote" helper.

Amusingly there exists a "Why SQLite Does Not Use Git" article (https://sqlite.org/whynotgit.html), but there is no corresponding "Why Git Does Not Use SQLite".


> "Why Git Does Not Use SQLite"

For one, you probably don't want your git repo permanently corrupted if you happen to be running it over an NFS mount.

There is a lot of value in "scattered write-once files" as a storage mechanism.


> this could've been an sqlite db

And yet Fossil doesn't use SQLite for its own data model, just as a blob store with indices.

"Fossil is not Relational": https://fossil-scm.org/home/doc/trunk/www/fossil-is-not-rela...


Well the big difference is that an sqlite db has to be running. Git repos just exist as long as the files are on disk, which I think is a mental model people are very used to by now.

No, the whole magic of sqlite is that it is also just file-on-disk.

Huh I didn't know that. Thanks for the correction.

Sqlite does not have a server component (although there may be other projects that do provide sqlite as a server). Sqlite files are also just files on the disk.

Sadly a lot of browser features are inaccessible from non-https contexts.

Don't most (all?) browsers consider file:// and localhost to be secure for the sake of enabling those features?

https://developer.mozilla.org/en-US/docs/Web/Security/Defens...


Unfortunately, no. CORS will block this on Chrome and Firefox.

https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/COR...

The security risk : https://www.mozilla.org/en-US/security/advisories/mfsa2019-2...

You need a local webserver. Or bundle everything in one html file.


So that's why I have to keep booting a Windows 7 computer in order to use an html file I saved 10+ years ago? Some dumb shit android app.

or you could use something like caddy (https reverse-proxy, local cert), and have a dedicated ws running in the background that serves your files

Now I wonder when the first polyglot file was published. I kinda just assumed they'd been around forever. EICAR.COM comes to mind as a COM/plaintext polyglot

> I've seen a few folks online remarking about the “JPEG” or “PNG”-like quality of the images

What do they mean by this?


Players that don't know the technical term "billboarding" might use this as a way to say that the images of the food are "flat" unlike the rest of the 3D modeled environment. Just a suspicion!

Also that they use a more realistic style compared to much of the in-game art assets.

I can also be used for derogatory connotations; Another example is for Smash Brothers specifically, the Byleth character's ultra move has a flat image of a character in their game and people call it "png sothis" (character name) to suggest that it's low-effort or not well made

JPEG has morphed into a synonym for photo, I guess.

See also: Ace Combat 7s infamous JPEG dog.

https://youtu.be/IXB1W8va3eg


Huh, Ace Combat sure has changed since I last played it in the 90s.

Isn't it about compression artifacts?

What does "flagged" mean in this context?

"flagged" generally means flagged by users, which is an option with enough Karma on Hacker News. Such posts will have a [flagged] tag and will not appear on the front page normally.

In this /active page, there are two posts pertaining to politics (without a direct tech angle) as user-flagged, as the Guidelines state that is off-topic.


Users with enough karma can "flag" posts and comments, which a) calls for moderator attention and b) decreases ranking. It's meant for off-topic/inflammatory/low-quality submissions.

People on Hacker News with a high enough score get a "super downvote" that can downrank a story, with enough removing it off the page entirely (flagged). It's why you won't see stories critical of Elon Musk or the current administration last for longer than an hour.

HN has had plenty of large frontpage threads fitting each of those descriptions. What we don't want is too much repetition. Otherwise the small handful of hottest topics on the internet would dominate everything else, and HN isn't that kind of site.

Lots of past explanations at https://hn.algolia.com/?dateRange=all&page=0&prefix=false&so..., https://hn.algolia.com/?dateRange=all&page=0&prefix=false&so..., many more available on request!


Speaking as the user you responded to in the first link: I’m sure you get flak from all corners, but I (and presumably many others like me) take zero issue with your philosophy or design goals for the site. I’m with you all the way when you say you don’t want to HN to turn into a current affairs site.

The problem IMO is the current sensitivity of the filtering. You said upstream that a high enough number of upvotes could outweigh flags — but that CECOT thread was one of the top 5-10 posts of the month despite having been taken down for many hours overnight. If that wasn’t a thread where the upvotes should be a strong enough signal to override the flags, I dunno what is.

We’re asking for subtle knob tuning, not revolution.


It seems like this post got killed as well, but it's the first I'm hearing of the functionality. I wouldn't say I'm a frequent user of the site, but I think I would have noticed if people were posting this link often.

“Too much repetition” of subjects you find politically incorrect, you mean.

As I've said in the past*, avoiding repetition is a core principle here and applies to every topic - especially when it's a repetitive+indignant combo. There's no political exemption.

https://news.ycombinator.com/item?id=42978389

* (edit: to you, as it turns out!)


And as I’ve said in the past, to you, no one’s buying it. It’s obvious to everyone that the same tech and biz topics can and do appear here ad nauseum.

Indignant, though. What a joke.


Very high quality "Recommended repos for you" results, the top one was in fact a repo I was looking for a couple of days ago but did not successfully find.

I just wish I could scroll further down the "Similar to you" list.


I would like for the weighting to be stronger (e.g. newness - im still getting fairly stale recs), otherwise yes very cool.

i second the quality. really uncanny.

I do something similar but it's iPhone SE plus olympus camera plus laptop. The laptop is where all the libre software lives, and the camera is (of course) for taking pictures with. I don't use the phone for anything except boring essentials, for the most part.

> Not laws against dinnerware.

Don't worry, the UK is on the case https://reason.com/2019/10/07/the-u-k-must-ban-pointy-knives...


like in this meme: Oi you cheeky ..., is that a knoife

I thought this was an exaggeration


Yeah, you know that's a right-wing ragebait site, that posts made-up stories to make the "critical thinkers" angry, right?

I wasn't aware of that, it was just the first non-paywalled article about it I found. The primary source: https://www.rochester.anglican.org/communications/news/gover...

You do realise you are talking about a petition started seven years ago by a small diocese that got less than a thousand signatures?

Yup!

So in what way is the UK on the case?

lol says you, its been my experience that reason.com does NOT post made-up stories, they simply have priorities aligned with their political biases which is relatively normal nowadays. AI agrees.

google:

"Reason.com is a reputable source that adheres to journalistic standards, but its content is filtered through a specific, consistent libertarian lens."


Okay, so they're repeating an anti-immigrant neonazi talking point because they're "libertarian". Okay.

can you post the neonazi part? I couldn't find it. if you're uncomfortable posting actual nazi text, post the wordcount that precedes it in the article and I can count the words that precede your neonazi discovery.


30-120 seconds sounds surprisingly long for ~368 attempts, do you know which part(s) the slowness comes from?

From doing MR rounds in pure Python: https://github.com/textonly/git-prime/blob/main/git-prime-co....

Should be under 5 seconds in C or C++ using gmp


No, MR in pure python is ~instantaneous for numbers of this magnitude.

From looking at the code, the overhead will be from repeatedly invoking git as a subprocess.


Have not flame graphed or even really considered optimization

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: