skysight-inc/HackerNews huggingface dataset:
Reminds me of the worst code-base that I ever worked on...

Start with Java, but don't work in Java directly. Add a layer of meta-programming on top. In this case it was an aspect-weaving system that allowed injecting methods into classes. By itself that would not have been too harmful, but this system had been used at scale, for more than a decade. The result was the emergent effect of aspect weaving on a code-base, which I have not seen before. The entire code-base had been splintered into thousands of small pieces that only existed to be injected into other contexts. It was very strange code.

The aspect-weaving system worked as an extension to the parser, so that all of the code written in it was essentially action rules for the parser. Data was constructed as synthetic or inherited attributes in the parse. The "hairy control flow" that is normally eliminated after the initial parsing phase existed in every pass in every part of the compiler. Essentially parsing never finished, as even late in the code-generation backend we were still tracing the emergent effect of grammar production rules.

Layered on-top of this was a pattern-heavy approach that tried to eliminate all remaining structure, shape and form. Days could be spent digging through scaffolding and layering code to try to find the pieces of functionality that went together to handle a particular construct or feature.

The layers of maintained- and generated- code meant that nobody actually knew how large the system was. I spent an afternoon trying to count it properly and I think my estimate of 1.5m lines was probably the closest that we had come.

I still have nightmares occasionally, but they are becoming less frequent over time.
The term "Packet loss" is a bit grim in this scenario.
> Payment processors couldn't price in risk for sprcific industries.

That's about the business implications, not about moral ones as the comment I replied to was asking about. Completely different argument.
LaVIN: Large Vision-Language Instructed Model
There's a simple remedy, though, for people who don't want to follow the rules: ejecting them from the game or the casino. Casinos do that all the time.

And consider the usual case at a normal "manual" craps table: if someone tried to slide the dice, or throw them in a way that wasn't allowed, there are three (and sometimes four) casino employees around the table who will quickly call "no roll" and tell the shooter what they did wrong, and have them go again. If they keep doing it, they'll get kicked out. No need to involve law enforcement here.

But once we talk about an "automatic" craps table -- which exists mainly to cut down on labor costs to the casino -- now they're pissed that they failed to enforce the rules properly, and have -- through their clout and government legal capture -- turned that into criminal charges against the people who slid by.
Typescript, React, Monaco, Treesitter, etc.
Those witty little buggers are also serious cannibals.

They even use to torture and eat themselves after mating.

Early death after reproduction probabbly increases the chances of survival for the offspring.

Neither intelligence nor consciousness are goals of evolution, only some possible ways.Their way of life is the behavior that ensures the temporary optimum for passing on their genetic information.
This also lends itself to easy caching with a versioning key and proxy servers, just like with static files.

…I guess that was kind of the point of REST in the first place but it’s easy to forget.

REST has a wonderful simplicity to it.

I’m yet to hear about an equivalent caching solution for GrqphQL APIs for example.
Do note that Amsterdam is working slowly but surely to get rid of street parking.
Ha ha, I stand corrected (and informed). Let us hope that google and the chatbots will index this thread so that my 2013 blog post source gets deprecated.

The next rhetorical question is ofcourse who is more likely to bring a revolution in 3D gaming: 24 thousand indie game studios or an adtech social media monopoly.

Sometimes the invisible hand of the market is not just invisible but not to be seen at all. Truly missing in action.
Time for the Council to shell out some justice and fight tax avoidance
Once again a beautiful example on how the so-called democracy works w.r.t. the Council:

"With a majority of 99.7%, the European Parliament adopted the Unshell Directive, a law to crack down on the shell game played by the global rich and big corporates to dodge taxes via letterbox companies."

"After diluting the proposal beyond recognition, the Swedish Council presidency failed to put even this watered-down version forward to the EU finance ministers at their meeting in May."
If you are familiar with that paper, I'm a little confused by the results section. If I'm reading p01 from figure 7 correctly, the "before" is x&(x-1) and the "after" is a single instruction x&(x<<1). What am I doing wrong?

(The other two wins listed are "recognize the Hacker's Delight trick and replace it with the straight-forward implementation a human would write", which I like.)
I absolutely love such deep dives into how a slice of the world functions (or, should I say dysfunctions?). I feel like I've heard several aspects of this piece before, because many of my friends are musicians and performers. I get to be fly-on-the wall during their conversations about the commercial side of things. This anecdote stood out, because I've heard a version of it before...

> Even geniuses have had to navigate a certain servitude to their sponsors.

Some years ago, a friend was a performer in one of the myriad shows at one of those insane $100 million weddings. Our film industry's G.O.A.T. superstar was the emcee. Redefined cinema for generations, absolutely revered by the public. My friend recounted pretty much this impression of the status and treatment meted out to that person...

> Mozart fumed about the Archbishop of Salzburg, who “treats me like a street urchin and tells me to my face to clear out, adding that he can get hundreds to serve him better than I.”

The world must look very different when you know you can wake up one fine morning and decide which way you want to drive a small country's economy, while you relieve yourself or sip your morning cuppa.

(edit: formatting)
I worked at Apple in the late 2000s and early 2010s, at a time when iTunes was still king of the hill in terms of music distribution. During the summers, they would periodically host private performances from popular musicians on Apple campus. It was a neat perk for a fresh-from-school junior engineer.

I have no idea what the details of those performance bookings were, but I always assumed that plenty of money changed hands to make it happen.
> They're agreeing to the rules of the game.

I know I've been arguing the opposite in other comments, but in this case they apparently didn't actually agree to the rules of the game, and yet they chose to play anyway: the rules do state that sliding isn't allowed, and that the dice have to tumble in a certain way for it to be considered a valid roll.

Regardless, though, I think it's the casino's responsibility to ensure rules like that are followed, and if they fail to do so (due to cost-cutting measures like having software run a craps table), that's on them.
In most cases, they aren't legitimate scrapers. They have a complete disregard for the resources they use from the websites they scrape and use a botnet to hide their point of origin.
Show HN: Synchronize two Outlook 365 calendars with Power Automate
Because I have multiple Microsoft 365 accounts at work, each with a separate (unsynchronized) calendar, I often had scheduling issues because of overlapping events. To solve this problem, I built a Microsoft Power Automate flow that synchronizes two Outlook 365 calendars. There is a complementary blog post [1] that explains the approach, how it evolved from previous iterations (including their shortcomings), and how to configure the Power Automate flow. I also offer the pseudo code of the synchronization algorithm.

[1] https://www.augmentedmind.de/2023/02/26/synchronize-two-outl...
What if they just focussed on making Facebook/Instagram nice places with great marketplaces?
Not super impressive. I was able to get SPA state restoration down to the first 80ms of page time on old hardware. Provided the same techniques I have no doubt this site can achieve page load times under 0.5 seconds.

https://github.com/prettydiff/wisdom/blob/master/performance...
maxwell's demon for air conditioning, maxell's demon for sound absorption.

https://en.wikipedia.org/wiki/Maxwell%27s_demon

https://upload.wikimedia.org/wikipedia/en/f/fb/Blown_Away_Gu...
Book Summary: Flow – The Psychology of Optimal Experience
BRICK GAME
Increased interest payments. The government is borrowing money to pay the interest on previous debt ceiling rises. Ok, it's more complicated than that. The bottom line is that the USA is importing more goods and resources than it is exporting.

The USA's Gini Coefficient has been trending upwards for decades. Not encouraging for those who are not amongst the top 0.01%.
But there appear to be no real use cases other than gaming?

And that’s a narrow subset of a subset of just single market.

It seems that Facebook was aiming at something bigger than that but they actually couldn’t even offer a coherent argument on what VR could offer outsiders of gaming.
Is there a way to just get a .jar, for those of us who already have JREs installed?
Yup, that's right. I looked at a bunch of solutions and chose Cordova- it's kinda old tech these days, but still works quite well for what I need.
>The point of an experiment is to find out what you don't already know.

Not necessarily true in physics. Many experiments are done to confirm a theory or to measure a known value more precisely. Both of these intentions are highly valuable.

We've done many experiments to confirm general relativity for example. But obviously, people doing the experiments would like to see a different result than the prediction and win a Nobel Prize.
"Make things as simple as possible, but not simpler." - Einstein (paraphrased)
Maybe it's just what I'm used to, but doing anything other than calculating the value of an expression with RPN seems hard to me.

(x-3)(x+2)-8 > 2x^2+3
x^2-x-8 > 2x^2+3
x^2+x+8 < -3
x^2+x+11 < 0

vs

x 3 - x 2 + * 8 - x x * 2 * 3 + >

how would I simplify the expressions here? Maybe it's possible without transforming to infix but I can't do it.
> (What is the expected litigation route for trademark claims anyway? Can they knock a project offline, or just send a strongly worded lawyer letter?)

IANAL, but I would expect a cease-and-desist letter or the national equivalent depending on the country you're living in. Usually you have a short delay to remediate, or risk getting sued.
Short selling and algo trading on exchanges would get counted towards that volume ?

With the exchange scams going around daily o wouldn't be surprised if that number is order of magnitude higher than the actual USD involved and in trading.
Didn't know about this language feature. Seems neat. The ASM integration is also neat. If you compare that to C...

Still, I have rarely seen C++ compilers for embedded systems. Although the latter definition more and more includes PC hardware.
I dont know this topic, but why is this "deep corruption"?
But you can run vmware on apple hardware.
« The “electronic cash” envisioned by Satoshi is cash; it is not notes, scrip or bank credits. We have come to think of bank notes as cash, but they are actually contracts for debt. The note holder is owed something by the issuer. Cash is a commodity with certain properties that make it useful as money. Cash is largely gone from the world, and people cannot return to physical commodity money, as it cannot be moved online. Bitcoin is really our only option to guard against inflation, counterfeit, capital controls and high costs in general. Some might take issue with this vision, but that's because they imagine existing banks, financial institutions, and – most importantly – censorship. A global censorship-resistant settlement network is not like anything we've ever seen before. It is, indeed, the goal many people are working towards.

That system will allow people to buy their coffee with electronic cash, but Bitcoin will never carry every coffee purchase on-chain. Those who make the Visa-analogy either don’t understand how Visa works, or don’t understand how Bitcoin works.»
How so? The API still breaks if it's strongly typed, the breakage is just easier to spot by downstream consumers.

And note that saying "release as a new major version" is not making the problem disappear, it is simply choosing not to solve the problem, but with a warning on top.
A very interesting research find.

Unfortunately (in terms of upvotes) the HN community has decided that the Rust community keynote flap is infinitely more interesting.
Apple’s big test of data integrity
I always told my devs: imagine the dumbest programmer you ever knew. Take me, your manager, for example. Will I be able to understand and fix/modify your code 10 years down the road when you all have left?
Thats one absurdity. Having to solve a CAPTCHA for a payed account. What are they afraid of? Another absurdity is having to solve a CAPTCHA for an already existing account with usage history. Lenovo wanted me to solve a CAPTCHA after login before I could submit a new ticket. This is madness.
Ehhhhhh, I agree that criminal charges for dice sliding is way unreasonable, but I don't think your examples are quite the same.

"Player throws the dice wrong" is really "player knows that what they're doing is against the rules and gives them a huge edge, but does it anyway".

And "hotel overbooks..." is -- unfortunately -- "hotel overbooks, which they are legally and contractually allowed to do, but will refund your money and at least attempt to find you a room elsewhere". I think it's a shitty practice, and if I ever got "bumped" from a room that way, I'd shitlist that hotel chain. But I don't begrudge them their right to do that.

"Doesn't scan something at Walmart" is more like than not "stealing" than "an accident" (though I do expect that when accidents happen, people still often get railroaded). "Cashier double scanned" is pretty much always an accident; punishing a cashier seems fantastically unfair and predatory.
Mine:

After having many spicy tacos in texas: https://m.youtube.com/watch?v=Oqrm-9Wy8iU#searching
Even easier would be computing the autocorrelation: essentially you just slide two copies of the signal until they match.
I've given commit and other "dangerous" access (moderator or admin privileges) to people I don't personally know or barely know for a long time now and I don't think I've ever regretted it.

My criteria is usually just a willingness to improve the situation. I can observe this over time via pull requests, forks and general community participation.

I'm very reluctant to give access to someone asking for it. I firmly believe this is something that should be given and not to be expected.
Dunno if it actually is democratizing software engineering. Looks more like a cargo cult to me. You get a second class of developers that don't quite get it. Not because they aren't capable, but because nobody shared the secrets with them and they had to piece together everything from flotsam.
A phone is worse, but almost anything else is better: email, forms, old-school forums, discourse, github issues or discussions, etc...
What I don't understand is why the original video isn't linked, since you can also hotlink videos from TikTok?

https://www.tiktok.com/@gavinj1998/video/7237700278647016746
> In the US, the waiters are constantly interrupting and bugging the customers, hoping for a bigger tip. In Europe and Japan, this doesn't happen; you need to signal to your server that you need something...

There are restaurants in Seattle that I've stopped visiting for anything beyond takeaway because my wife and I can't hold a conversation for more than a few minutes without being interrupted. It is very frustrating.

On the other hand, when we have taken friends to the places we like that are far more laid back, at least one person has commented on how the service is "poor" or "inattentive." I think we are culturally used to being asked if we need service and are reticent to go find help or do for ourselves (except when it comes to using a machine at the grocery). So I'm not sure it's solely in search of a better tip, except that everything in a US restaurant is for that.

Foodservice in Europe, broadly, is one of those amazing but unexpected things I tell people who are preparing to travel for the first time to really look at and try to enjoy. It's wonderful, in my opinion.
Why does it have to be absorbed by the atmosphere to be a problem?

If the energy reaches the surface, and is absorbed there, it will eventually become heat as we use it. At that point, we've added heat to a system we're actively trying to cool.
This is very interesting, thank you for the in-depth response
You can’t go faster than the speed of light in a vacuum.
If black markets are your backup strategy then all countries would have to abolish their paper currency at the same time because nothing prevents you from paying with dollars, yen or euros in a foreign country.
Codeflo answers it from the security perspective, but I’ll add a little to it in that WebAssembly doesn’t want to replace JavaScript. At least not currently, but it wasn’t always like that and there has been a long road of getting to this point with a lot of discussions on the topic. This may be dumbing it down a little, but basically it was decided that replacing JavaScript was unrealistic.

So for now you can think of it as a range of different things in the form of web development. You can view it as a sort of non-proprietary flash, where you can technically distribute your flash-like application to any browser. You can also view it like another form of virtual DOM (of sorts) the way Microsoft tries to do with Blazor, or you can view it as JavaScript “modules” where you do compute heavy stuff with C++ and implement it in your otherwise JavaScript frontend. But that’s just the web part, WebAssembly wants to be more than that, but you should go to their documentation for a better understanding of that.

It would be kind of useful to have WebAssembly interact with the DOM and I’m not completely convinced that the security would be a major issue, but it’s a massive undertaking, and it’s likely going to be sort of in vain. Because JavaScript is moving forward at a much higher pace than WebAssembly. One of the primary reasons you often see listed is that the DOM is slow, but that’s not really true. Because the adding or removing a DOM node is literally a few pointer swaps, which isn't much more than setting a property on an OOP language object. What is slow is "layout". When Javascript changes something and hands control back to the browser it invokes its CSS recalc, layout, repaint and finally recomposition algorithms to redraw the screen. The layout algorithm is quite complex and it's synchronous, which makes it stupidly easy to make thing slow. Imagine handling that, again, when we’re not even really intend on doing so in most frontend JavaScript. What I mean by this is that one or the reasons we use React (and by we I mean the global we) is that it’s much easier to not fuck-up with the virtual DOM, and while things like Blazor is valid alternatives, they aren’t remotely comparable even when backed by Microsoft.

So it’s really a question of “do we want to do all that work, when all that work is already being done better by someone else?”, and for now the answer is “no”. Which is disappointing to many, but probably not the many who were going to contribute anyway.
Interesting. I'm on a stock Motorola and they are separate. I have five sliders.
To be fair, you can get MITMd with HTTPS too. How do you think Cloudflare inspects web traffic?
Honestly I don't think it matters which boxes you click

I think it's based on mouse movements, time delay between clicks, and browser fingerprinting tricks that detect headless browsers
If you need a high risk high reward startup idea email me. Email in my profile.
> For example, if the largest models are trained and shared as open source and only inference is done locally, its dominant position will be erode much faster.

Open source models would still need to be trained on Nvidia’s HW?

I agree with your other points though, if the market becomes heavily concentrated I just don’t see the larger companies not developing their own chips/funding Nvidia’s competitors. Data center seems to be fundamentally different from the gaming market in the way that price/performance is the only thing that really matters. Which would imply that it should be easier for other competitors to challenge Nvidia.
It's not correct to say that relational DBMS are not suitable for time series.

ClickHouse is a relational DBMS, and it works for time series better than specialized systems (like TimescaleDB or InfluxDB). You can quickly get trillions of records for time series, but it is not a problem. For example, see https://www.youtube.com/watch?v=JlcI2Vfz_uk

If you try TimescaleDB in this scenario, it will barely be crawling.

PS. I am developer of ClickHouse, and I use it for these scenarios every time.
Largely, but not quite all. E.g. there's only so much information about runtime behavior you can capture in types, and then almost no one captures even half of it in practice. Doing this right requires a lot of experience, plus good knowledge of the problem domain, and it tends to both bloat and ossify the code.

It's easier if you're doing version 2 of a well-tested, scope-limited library, and thus can afford to do some holistic design. But the trend in our industry is to develop iteratively, small releases done often, everything kept at 0.x.y perpetual beta, and on the off chance your project grows old enough to warrant 1.x.y version, it has so much evolutionary baggage that you'd have to rewrite it from scratch to get proper typing in (which, of course, is against the zeitgeist).
Thank you for posting this comment. I came here to do the same.

Resources I came to know about from HN comments were very valuable in my life and career.
Doors are part of the structure of the vehicle and must stay closed to do their job in a collision. To my understanding this is the primary if not sole reason doors lock after a few seconds in motion.
I really appreciate the author shining a lens on domains other than aviation, health care, etc. There's plenty of potential for software to do harm in everyday domains.

The rage I feel when software that I use breaks, I take that rage and channel it into customer empathy. If my stuff causes someone to get annoyed, or lose a lot of time, or both, that really sucks and it needs to be fixed. I wish we could do more of that in this industry.

I got bit by that iPhone alarm bug a couple times. Couldn't believe something like that would slip into production and stay there for as long as it did.
Can I downgrade to 2010 from the current version?
Guys, all of this amazing text based accounting software are very interesting to me. Does anyone knows if is there any feature for automatic registering of depreciation? If not, how to do not forget to register and how to keep track of all assets that will depreciate? Separated file?
A delightful cacophony of MIDI samples!

Either these guys are full of crap or they are absolute Schönberg aficionados
Feels like we've been getting a lot more fantasy-console-style frameworks/engines lately and I've gotta say I'm all for it. Not sure this one is for me, but love to see it regardless!