skysight-inc/HackerNews huggingface dataset:
I am a beginner to programming language implementation but here's what I learned.

The first two chapters of the LLVM tutorial are good enough to learn the idea of how to implement lexing and parsing:

https://llvm.org/docs/tutorial/MyFirstLanguageFrontend/index...

I wasn't targeting LLVM so I didn't do much except skim the LLVM stuff.

This document is good at explaining Pratt parsing which is useful to understand how to parse expressions with precedence.

https://abarker.github.io/typped/pratt_parsing_intro.html

At university I wrote a poor motorola 68000 emulator so I had a motorola CPU textbook, so that's how I learned how encoding of instructions worked. I wrote a Java SWING GUI tool to create the opmasks for each instruction component. It was a strange way of doing it but it worked.

For AMD64 x86_64 I wrote some GNU Assembler and then reviewed the generated machine code with the following commands.

Put C you want the assembly for in example.c:

gcc -o example example.c

Put your GNU Assembler in example.S

gcc -o example example.S

Then run and review example-text to see the machine code and opcodes beside the assembly.

objdump -dj .text example > example-text

I used this page to work out the Mod/RM format for opcodes.

https://www.cs.uaf.edu/2016/fall/cs301/lecture/09_28_machine...

I have a barebones toy compiler here that compiles a simple mathematical expression to assembly:

I do simple live range analysis and register allocation. I use A Normal Form as my representation.

https://replit.com/@Chronological/Compiler3

I have the beginnings of a toy JIT compiler here which generates some machine code for MOVs and ADD but I haven't implemented much else... I need to implement C FFI.

http://github.com/samsquire/compiler

For code how I generate an "add" instruction:

https://github.com/samsquire/compiler/blob/main/jitcompiler....

I use a case statement to match on the registers opcodes for source/destination and literally insert opcode bytes into a malloced array.

You essentially end up with a nested switch statement.
I credit XTree with building some of my foundational CS intuition. At 11 y/o I became a master at grouping, filtering, tagging, inverting, summing subgroups (directories), and coming up with efficient routes to moving stuff around as we coped with our ever-stuffed 10MB drive.
Not really. With a VPN, the only change is that the networking between A and B now go through a tunnel with no changes to A or B. But if you get a seedbox, A is completely removed from the picture and you just have a connection between B and C.
No i didn't, that's part of providing a safe environment. Feeding creatures food isn't manipulation, it's providing for their basic needs. If my parents had stopped feeding me, I would have left the house too!
Again, my point is not about people (maybe wrongly) reciting sentences that they have picked up somewhere without any attempt at verification or understanding of the matter. My point is making up entire new entities (function names) that don't exist at all and claiming these things as facts in a very self-confident tone. While mindlessly reciting "facts" that you have picked up somewhere as a conversational style doesn't require any understanding (it's called belief), making up entities demonstrates that you do something that requires a real understanding, but you don't have that understanding. You just somewhat carefully arrange words based on statistics to match a query. I've yet to find a human who does this. Even my uncle who fits your description more than perfectly wouldn't do this. And I've never met anyone who is mentally healthy and sober doing this.
It's not arbitrary though. It's a choice to save bandwidth shipping unnecessary javascript rather than making it easier to develop the website. At the scale of Wikipedia that isn't unreasonable.
>I think it's important to remember that we do actually have old buildings

The (US) city I live in has streets built in the mid-1600s.

Considering the great fire of London and the Blitz, is your canard really accurate?
another good one, originally steming from the Amiga:

https://www.gpsoft.com.au/
Also, everything has to have an account now. I just got fined $8 by a movie theater for buying a ticket without an account.

Of course, with the rise of microservices, everything that requires an account is also unreliable.

Also, there's the dark pattern of returning incorrect results during partial outages, so even when stuff is "working", it's mostly gaslighting the end user. This was pioneered by Netflix's frontend team, but it's seeped into all sorts of inappropriate things. A surefire sign of this is opening up an online-only app, and having it report stale data until it updates. My car does this. I don't care what its charge level was sixteen hours ago (typically displayed by my phone for 10-60 seconds), or four days ago (from my watch).
The comments on the exam and the answers, which he claims to be correct and incorrect, make for interesting reading. https://www.thebigquestions.com/2023/04/05/gpt-4-fails-econo...
The right word would be 'Abuse of power', if every center-right politician is labeled Authoritarian -- it will become a meaningless word.
The difference is that HN stays very fast. Being logged in is more costly for the backend, but doesn't degrade your experience as a user. On Wikipedia you really suffer for being logged in.
I'm not assuming that we must trade those features for improved latency. It is a possibility, but there are always alternatives.

Unfortunately in IT you always trade one set of problems for another. And clean architectures have to be watered down with time to stay practical.

Nobody is smart enough to predict all pros and cons accurately. We're always smarter after the fact. When we have finished a transition and gained some experience with the new technology. But then it's mostly too late to go back.

On top of that, computing is always a moving target. Now you have to target highly mobile devices with small batteries traveling at high speed in metal tubes connecting to unreliable networks. While more or less related to keyboard input lag, depending on where the action should be registered, you have to be careful where you spend your development resources.

That's why I think this is an oversimplification. True in its deepest form, but neglecting reality.
Of course it's a doctrinal concern. The books are not chosen at random. Some will make it, some not. Somebody is going to make a choice, according to somebody's own (or external - like recommendations) judgement. The question is who has the power to control the choice, and who gets to say "my opinion is common sense, your opinion is dangerous ideological extremism".
There's a lot of loaded language around Leverage buyouts but it is just taking out a loan to make a purchase. In practice they work almost exactly like a mortgage. You get a lender to take most of the cost.
> when a new HTTP request arrives, the VM is ready so you don't need to initialize a different process to manage it.

I suspected that, pretty smart. I presume that a WASM module state can be cached in a similar way, essentially imitating a "fork" syscall semantics while keeping the pool of request handlers in a always-ready hot state.
This is wrong on most every level
International Election Observation Mission – Republic of Türkiye [pdf]
An 'era long passed' perhaps? Can't quite figure that one out. I think I was looking for the term 'bygone era' but couldn't think of it.
The sheer amount of hubris in your post is astounding.

So any opinion other than your own is propaganda fed by the west, but the only true reality is the one you agree with that paints India in a flattering light.

Using “the world happiness index” as some kind of gotcha propaganda is hilarious, when we’re discussing actual issues like arresting protestors. Just ridiculous.

I won’t be replying again to you because I don’t think you are capable of accepting that other people disagree with your world view. It’s unhealthy and I really think you need to leave your own bubble.
> - Super smart designs causing the page layout to change after it's loaded.

This seems to happen far too much. Nowadays usually causes me to give up on a site and go somewhere else. Feels like eliminating stuff like this should be low-hanging fruit UX-wise (albeit not especially exciting, I guess)
Marriage, apart from a nice opportunity of celebration, is a legal contract.
This was somewhat recent and it’s incredibly irritating.
From $600 MRR to $0, from Premium Service to Free Service – Will It Survive?
People are bad with labels; diversity is associated with liberalism, which often gets conflated with a whole spectrum of other positions from social-democrat to actual Marxists (who tend not to be all that pro-diversity, depending on how "tankie" they are)
See iconicmath.com for one perspective on this using iconic visual math, math that looks like what it means. Symbol processing aka calculation is better suited to computer science than the distinction/difference and indication of maths.
Rheinmetall pilot project for curb stone chargers for EVs
My point was that submitters who only submit political articles (in line with their biases) are detrimental to the site. Such articles attract more politically charged engagement, and over time draw in people who care more about politics than tech.

The article btw is of questionable newsworthiness; and is a link to a propoganda blog. It's not really an accredited news organization.
lots have been pointed out

- infantilization of interface to treat everyone 'like a 5 year old'

- removal of functionality , homogeneous bootstrap-like interfaces with rounded corners everywhere, to the point where you no longer recognize which system you re using

- "mobilification" of the desktop

- no more rational organization: no hierarchical menus, only the top 5 buttons survive
A large number of people living for many years with sharply reduced physical and mental capacity, retaining theoretical "autonomy", and mostly cared for by the medical-care-industrial-complex as opposed to family and community - all this is an accidental abomination created by modern medicine and economics. As a society and species this is new to us, and I doubt we will ever figure out a way to treat such a class of people humanely. It's just too big a challenge.
Bcrypt 25 Years Later
Torrents. As in you don't want your whole traffic to go through a VPN, but you may be in one of those places where a torrent client is a must.
Sounds interesting but behind the WSJ paywall.
A story I find very interesting is the recovery of a large number of films found preserved under permafrost under a former ice rink in Dawson https://en.wikipedia.org/wiki/Dawson_Film_Find
Torrents need a port open and forwarded.
Why do people care about Twitter at all?

It doesn't matter what people say on 4chan or fox "news", why is twitter any different?

It's all just opinions, not worth anyone's time. Ignore it.
I am amazed that the title is allowed to stand despite the original title and the content.

The origin of the image is unclear. Sure, one can speculate that "India ruling party's IT cell" is behind the morphed image. This is what this comment section is for. But without hard proof the title is as much of an propaganda as are the morphed image.

Are we going to tag everything a Democrat does as "US ruling party's" doing?
Logged out users get served by varnish cache on a server geo-located near you.

Logged in users still get cached pages, but the cache is only part of the page, its not as fast a cache, the servers are not geolocated (they are in usa only for main data center), and depending on user prefs you may be more likely to get a cache miss even on the partial cache.
I Hacked a $10 Calculator to Run Doom Eternal
What would you recommend for classifying documents? Most of the companies I've evaluated market their product as using fancy AI/ML, but instead they have hundreds of people, usually in India, manually classifying the documents.
What if a country's economy doesn't make widgets at all but merely controls the system of international finance which is premised upon its own debt?
> Could someone explain to a total finance noob how a "leveraged buyout" transaction actually works?

Have you ever bought a house using a mortgage? What you've done was a leveraged buyout of that house.

When you do a leveraged buyout of a business, it's the exact same thing! You borrow money from someone, and use that money to purchase the asset (whether its a house, a car or a business), and you use the asset you're purchasing to "back" the loan, essentially saying "If I don't make the payments, you can auction off the house/car/business to pay off the debt".

>However, here we're talking about acquisition of private companies - so there are no shareholders. Then who exactly is the "seller" party in the transaction?

Shareholders is just the name for "Partial Owner", and every company has one (or more) owners.

The owners of the business sell it to the one who is buying.

A company being "Private" just means that the company's shares (ie: the partial ownership) is not being traded on any stock exchange.

It doesn't mean the ownership of the business can't be sold, any more than the fact that your house not being listed on a stock exchange prevents you from selling it to whoever will buy.

>It could be that the hospice was owned by itself

There is no such thing as something being "owned by itself". There is always one final owner.
There's a disclaimer about the stories being machine translated, but I'd still like to know how "Elon Musk" became "Earon Mask."[1]

[1] https://gigazine.net/gsc_news/en/20230529-elon-musk-cut-twit...
It’s difficult to take this kind of heavy-handedness seriously: Judy Blume? Really?

It’s also unclear what the boundary is for you here: is any mention of sex or violence verboten? Are educators and authors meant to pretend that middle schoolers don’t know what death is, to minimize the Holocaust or other human travesties, or contradict the school’s own sex ed programs? In what world does that make children better socially adjusted, much less prepared for adulthood?

Ultimately, if exposure to adult topics is a problem for you, then you should probably consider homeschooling (or a private system that will allow you or another adult, not regulated by the state, to micromanage your child’s life). But socialization outcomes for homeschooling are overwhelmingly poor, as are outcomes for schools that hide the world from their students: they fail to accomplish the basic goal of preparation for actual life.
> Try teaching an old person how to use a smart phone some time

Also, try to teach a young person to use an old program, or an older version of an office program
According to TFA, it's because of multiple reasons, not just one search warrant:

> This has led to law enforcement contacting us, our IPs getting blacklisted, and hosting providers cancelling us.
> Sometimes, when everyone else is hostile to you

Anthromorphizing, just another symptom of the human mind’s inability to really comprehend things as complex as geopolitics. We’re not meant for this, people! Technology has complexified our simple and beautiful world.
Fyi there are plenty of commercial/foss solutions in this sort of "port forwarding service" space https://github.com/anderspitman/awesome-tunneling
"the concrete proof" Louise posted was a pretty straight forward explanation from Micay with Louise basically dismissing the entire thing with "You dont get to bully people' Without even reading the comments. It's clear louise is upset or scared and gaslighting his audience about this entire thing.

He actually accused him of being willing to sabotage his entire OS just to target one person on an OPEN SOURCE Project. He also weaponized his self admitted autism diagnosis and used it to slander a talented developer.
On Being Paid to Learn
Imho WebAuthn is just the next problematic non-solution: Everything you do in WebAuthn you have to build up manually within the already-problematic forms+cookies+serverlogic+javascript stack. You cannot just instruct your webserver to do WebAuthn for /secret and everything works, no, you need tons and tons of code for it to work. Code that will have errors and problems. Code that is lots of complications on top of forms+cookies+serverlogic+javascript.

WebAuthn might solve a problem for the likes of Google and Facebook. But definitely not for the average web developer or server admin. And not for the user of some HTTP-based API. And the problem WebAuthn solves isn't really "we need better Auth", it is rather "we need better customer lock-in". Because the complexity and incompatibility of WebAuthn will just reproduce the debacle that was OpenID, only with the added "bonus" of being coupled to some hardware.
Poor little thing really can't handle web traffic from HN. (To be fair, plenty of contemporary Wordpress blogs can't, either.)
hm, to me the opposite seems more likely. Rust community/leadership/confs/organizers seem very far from racism. some idiotic internal petty/interpersonal conflict seems much more likely IMHO.
$12/month for a ELI5 seems pretty steep to me, especially so during these times when ChatGPT is available (even with its caveats).

Targeting developers who are just starting out is a cute concept but having to decipher the ramblings of a madman, be it in code or documentation, is a pretty standard part of the job.
Thank you. Words commenters aren't focusing on:

* Prefer

* "Gravitating away"

* "even one of these suggestions"

* "better than nothing"

* "This isn't always possible. Sometimes we have to use software with millions of users. But I think it helps to rely on small-scale tools as much as possible, and to question tools for large crowds of people at every opportunity."

(I'm the author.)
To be fair, the terms and conditions say they stopped offering port forwarding two years ago https://web.archive.org/web/20210430072429/https://mullvad.n...
Generally it's not illegal to host services that could potentially be used for those things (as basically any online service with user generated content could be used for that), but it's illegal to not act once you have received complaints about it and not acted. Presumably, Mullvad does act when they get noticed about their service being used in those manners.
I am also interested…
Intel: AI is overwhelming CPUs, GPUs, even clouds, so all Meteor Lakes get a VPU
The world’s biggest ad agency is going all in on AI with Nvidia’s help
It's very difficult to overcome an airgap. How could society reorganise around that? Going back to sneakernets?
Texas passes sexual conduct bill drag show artists fear will prompt crackdown
That’s the promise. Whether they do anything with it is questionable.

https://imgur.com/a/6blpTqF shows my recent advertiser blocks from about 10 mins of browsing. Clearly inauthentic accounts, some paying the $1k gold check fees.
BJP is also hard at work at creating a single, homogeneous Hindu and Indian identity, where something more of a cultural sphere existed, to create fanatics to their cause. They're re-engineering Indian society in a way that we've seen end up in tears for everyone in the past, in other places.
Our uncle was similarly scammed. We tried to act. The local sheriff wouldn't proceed unless our uncle said he was robbed. Of course, uncle thought he'd invested that money (and still expected a huge payout). So sad, because uncle had been quite savvy about money, before the dementia.

I don't know what the cure all preventative fix is. Maybe securing power of attorney earlier?

Our father wisely set up trusts decades ago, which did help us protect our mom later on. And after seeing other families tear themselves apart over inheritances, I am deeply grateful my siblings and our kids won't go thru that. (Fingers crossed.)
When I applied to undergrad in 2007, I kicked myself for not sending in an application to Stanford (though I probably wouldn't have gotten in anyway) when I learned about the Cui group's silicon nanowire battery project shortly after the application window had closed. It's intriguing to see how long it takes to get these developments from lab to factory.

Here's the 2008 version of Wikipedia's "List of emerging technologies" showing the nanowire battery way back then — where I first heard about it:

http://en.wikipedia.org/w/index.php?title=List_of_emerging_t...
Encryption and privacy is futile when posting online. If what you post is publicly accessible, it’s accessible to govts too.
Your power supply woes remind me that I want a NUC to take USB C power delivery. I hate proprietary chargers, and with tiny GaN units delivering 100W, that should be more than sufficient for anything but space heaters.
Data lineage: The unseen lifeline of data-driven organizations
I just tinker as a hobby. If i live long enough even the minor annoyances in my life will eventually get iterated on and improved. The teeth thing was a medium to major annoyance so got attention first.
Video games are all about visual tricks that make them look more pleasant and not as much about physical realism. This looks much better in context when moving vs. the jagged original approach.
> If the would-be parents can't reasonably guarantee a happy household going forward, having children is the epitome of irresponsiblity.

Who can do this? Who can possibly guarantee anything about the future, especially when it involves other people?
I mean, pretty much. However, I've also been pretty happy and - more importantly - fulfilled, without marriage. It's to the point where I don't understand why someone would take the risk (in both capital and personal impact), especially when divorce rates seem so high.
I have some Asian and Asiatic ones from my medium blog traffic notes:

zk.com
apptractor.ru
awayvk.com

zk stuff usually is in English.
Langchain and such tools can do it.
That's incredible! I've never thought of it that way! Thanks a lot.

I guess I'm one of today's lucky 10,000!

https://xkcd.com/1053/
Want to Be an Artist? You’re in Luck. This One Is Selling His Practice.
Can't wait to read the transcript of the Joe Rogan n-word episode at the library.
That doesn't seem too unbelievable. Maybe a sufficiently large LLM will be able to find a flaw in the algorithms or logic behind some encryption schemes which even our greatest monkey brains overlooked.
Would it be possible to design say 1000 of the soft tools and have the machines auto-replace the "tips", as if it were an ink cartridge that you replace but in an automated way, with an auto-feeding mechanism after their useful life?
I have not yet, but I'm trying to transform my 20 years of exp in software development into a game about software development - https://devmanager.carrd.co Check in a year if that worked out.
windscribe is a no-log VPN that still provides port forwarding features, if you're looking for an alternative

(full disclosure this is my place of work)
That may be true, but most of OP’s posts did not get any traction at all. This one did because it’s relevant to the community.
https://archive.ph/ml4rY
If browsers require authenticated images as suggested, then CSS will probably grow the ability to apply a masking layer to crop, filter, transform the image.

Advertisers are going to want to postprocess images and have the green check.
ChatGPT and the Velcro Test
yes. Cloudflare seems to be aggressively blocking Mullvad and Tor and I am sure others. It started a few months ago. Meta has been blocking them for some time also. The other side of this problem is so many domains are sitting behind Cloudflare.
Careful with the shade trees. I had to cut down 2 due to them messing with my foundation. Now I have no shade. It’s difficult to find ones that can shade from a proper distance.