skysight-inc/HackerNews huggingface dataset:
> If you have accrued vacation, you "earned" your vacation and they can't take it away from you without compensation... If they fire you, they should even have to pay you your salary for those vacation days.

This is indeed the law in Israel. What happens is that people are allowed to accrue a number of vacation days up to a limit, typically however many days of vacation you earn in a year, times two. Then the company forces you to take, at the end of the year, a number of vacation days down to the limit.

Companies where this limit wasn't put in place introduced a moral hazard, whereby people would wink-and-handshake with their superiors when they would take a reasonable amount of vacation without actually reporting the vacation days to HR, wherein HR didn't really have the means to detect and enforce against the fraud. Thus people would work for decades, retire, and take compensation for decades of "untaken" vacation days, on top of the normal retirement packages. These policies represented usually $1+ million in obligation per worker and thus were clearly unsustainable without some kind of enforceable limit.
Filament: Full-Stack Laravel Components with Livewire and Tailwind
> with torch.compile the main advantage of jax is disappearing.

Interesting take - I agree here somewhat.

But also, wouldn't you think a framework that has been from the ground-up designed around a specific, mature compiler stack be better able to integrate compilers in a more stable fashion than just shoe-horning static compilers into a very dynamic framework? ;)
https://news.ycombinator.com/item?id=34424677

shielding
jamming
regulation
publicity
I question the accuracy of those statistics. I’m one of the few people who game on macOS and almost exclusively use Steam via CrossOver, so I wouldn’t be included in that 1.37%. The same was true before the Apple Silicon era when I used Boot Camp.
Even without an ORM that supports both, as long as the DB layer is reasonably separated in your application it shouldn't be too much effort to switch. And if you've scaled to the point where it matters, you probably have the resources to do so.
your answer was fine and good until you classified ChatGPT's SQL generation as "very good" -- which it is not. I've had _all_ GPT models spit out monstrosities and slow queries of all kinds.

ORMs are not all bad. In fact, some ORMs generate better code for really complex joins (think hundreds of tables, each with hundreds of columns) than humans, and often ensure that trivial best practices (like indexes and consistent foreign keys) are followed.

Writing SQL is a great skill, but if you tie yourself to a single database engine's idioms then you're in for a shock when you switch platforms/jobs/environments.
Another bonus if you use AltStore - you don't have to install an app from a company that defrauds children with in-app coin purchases to unlock stuff in their games... it's funny how Epic is now portrayed as 'the good guys'.
> I was on mobile data with like 300mb high speed data left. After opening the page and reading the article I got the notification that I have no data left.

That's the reason I configured uBlock Origin on my phone browser to disable both images and JavaScript. Text-only pages have a much lower chance of eating all the data, and if I really need JavaScript or images for a site, I can easily tell uBlock Origin to temporarily unblock them for that site.
Are you going to publish your RAG strategy?
MySQL is like Javascript: Full of bad decisions and footguns. It works perfectly fine, but I don’t see why you’d use it when Postgres exists.
Americans call it innovation I call it going back to 1890.

But I refuse to believe that every employer in the US is a piece of shit. I bet most of them are decent people.
Gatsby, Ghost, Hugo, Jekyll or another static site generator?
Try to avoid the bespoke features of psql in favor of generic SQL unless cornered by circumstances into doing so, methinks.

If there's one complaint I have about pg, it's that it has too many features that encourage finding cute, non standard, non obvious ways of going about things.
I haven’t looked into the issue at all, so can you tell me what is wrong with the current content-blocking features in mobile safari that prevent ublock origin from working? AdGuard works fine, but that in itself doesn’t necessarily mean anything.
Okay, so it's just Bitdefender being overzealous then.
Thanks!
1) Fault isolation in case of hardware failure

2) You may not even be able to _think_ about using Docker (OS restrictions, airgaps to install images, etc.)

These are just 2 that come to mind from working in regulated industries.
> If you see a college student or fresh grad using MongoDB stop them. They need help. They have been led astray.

I like this sentence way more than I should.
I would rather companies be a lot more deliberate about hiring people rather than just hiring and firing willy nilly.
> The problem is that you can still get fooled or bullied into accepting a bad deal. I suggest everyone working in the EU to learn their rights and to consult a lawyer when something doesn't feel right,

If you've been forced to make a choice with an incredibly short timescale, many tribunals/courts (in Europe anyway) will put aside your choice if it later turns out to be detrimental. It's a bit like forcing someone to sign a contract at gunpoint.
Predicting and Controlling Bad Actor Artificial Intelligence
The value of AI-mated research is results. This tool will aid engineering. It will offer a pinpointed research to resolve a particular issue at hand. It will close the verification loop naturally by proving that the research has indeed facilitated a useful result. Most of such useful research will never be publicly available.

What you are complaining about is a legitimately brocken verification loop. Let's consider a case. An engineering department has a problem. It passes the problem to the research department. The research department slacks out, while produces junk. It makes tons of papers that are hard to prove, not to say apply. They drink champagne with other researchers, so they can publish the junk and defend the turf. AI-mated research will finish the racket and corruption.
The benefit is that it makes people puke from looking at it so you have more job security I guess. Putting xml onto the same line with a scripting language is like mixing toothpaste and orange juice.

I don't understand why people take such offense to calling document.createElement() or document.getElementById() or kind of document. or window. function. It's consistent and native.
With most test, the problem is that after a few weeks you learn to solve them more efficiently [1] and the improvement can be falsely attributed to the nootropics. Double blind randomized controlled trial or it didn't happen.

[1]In the math class, we call it "studding for the midterm" :)
How is a short term contract a solution? It sounds like you don’t have a job at the end of the contract?
Thanks for pointing it out, that reminds me I should probably run the entire website through a spell checker / AI at least once.
Not quite every day, but: 1. I made a slack bot that translates a text query into SQL specific to the internal database, with lots of deeper context around the data. That's often useful now for reporting. 2. I'm learning to find a sweet spot for Aider and Plandex - they can be very useful, but require some time investment to know the right scenarios. Also they require learning how to talk about code and requirements, but I take it as an incidental positive result.
> AI is a bubble

why does it even matter? I know that I need multimodal search in my product, and that is why I need vector DB. You're not saying anything interesting by saying "AI is a bubble". If you say something like I may not actually need RAG/mutimodal/semantic search/dedicated vector db then you may have my attention.
I agree, Organic Maps is often better than Google Maps for walkable trails, bicycle and hiking paths. I found there are some paths mapped on OSM that are not mapped at all on GMaps.

On the other hand, GMaps is better for up-to-date commercial data like stores and their opening hours. Its navigation system is better too. As much as I'd like to drop all Google services from my life, Maps is too useful to let go.
There were two groups I was hoping vanillajsx would resonate with. The first is people who still buy into the React dream but are beginning to be disillusioned with its inability to deliver on its promises, and the second is people who already are fully disillusioned.

Specifically, I'm hoping to show that vanilla architectures can be not only performant, but easy to maintain with well designed code that uses stable and known patterns. Using JSX just so happens to clean up the code nicely and make the relationship between React and vanilla very visible, but that's really all it did here.

Although to be fair, the hack required to get JSX-as-DOM to work is really unfortunately and I'm not very happy with it, and I would prefer JSX to just render as an object tree that anyone can render however they want. But when I tried that for a few months or a year, it was not nearly as performant as rendering them as strings as soon as they're evaluated, which can then be cached via standard module caching. At least, that's how I got immaculatalibrary to entirely render all HTML files in ~700ms initially and ~70ms on most file changes.

I'll try to do some experimentation next week to see if I can get more performance back out of having <foo bar={qux}>child</foo> to render as {foo:{bar:qux, children:[child]}} again though, because that would absolutely be the ideal, and would unfork JSX in the same way Typed Annotations proposes to unfork JavaScript types.
Hey patrick, love your work!

I think the biggest, well "con" I've seen is non-technical - the fear of JAX being killed by Google.

I mention in the blog as well [here](https://neel04.github.io/my-website/blog/pytorch_rant/#gover...) how important having an independent governance structure is. I'm sure for many big companies and labs, the lack of a promise of long-term, stable support is a huge dealbreaker.

I'm not sure how much Google bureaucracy would limit this, but have you raised the subject of forming an independent entity to govern JAX, very much like PyTorch? I believe XLA is protected, as its with TF governance. But perhaps, there could be one for JAX's ecosystem as well, encompassing optax, equinox, flax etc.
Whatever the quantity and quality of Russia's satellite surveillance systems - most of their worst intelligence failures in this war suggest that their chain of command is very high-impedance for transmitting unwelcome intelligence up to the top.

That is a very common problem in well-entrenched autocracies, especially in closed and censorious societies.

(Also, here in late 2024, I suspect that most of "Russia's" satellite intel capability is actually "friendly Chinese" satellite intel capability. Which has its own set of issues - starting with China's wanting to avoid an actual Russian victory, and ending with Putin's emotions about dependence on China's self-serving charity.)
I looked into what this is, and I don’t think I could use my mobile banking apps, my payment cards or software required for work on this. Otherwise I like the idea and I hope it will mature and become a real option one day.
This stopped a long time ago. Many older GNU projects still have them, but newer ones are not required to have them. Some have even made their usage optional.

An example of a project making it optional is GCC itself: https://gcc.gnu.org/pipermail/gcc/2021-June/236182.html
How does this stack up aginst using lit-html?
Housing in Ottawa is ridiculously expensive. Good luck buying a home for less than $1M and even then you’re looking at a considerable commute.

How one can take a 67% pay cut and have housing still high means you have more in your pocket you’re going to have to explain.
May I ask question about this part?

"Push all your business logic into big long stored procedures/functions - don't be pulling the data back and munging it in some other language - make the database do the work!"

From my courses I had at university, I've been led to believe that the current trend is doing hexagonal architecture, as that allows for better modularisation of the project and helps keep code clean over many years with many software engineers coming in and out.
As a part of that I've been taught that the only part you could trust then is your internal modules - and even database has to treated as an external source, whose only job is to pull data in and out.
How does that work in what you're suggesting? Is it just a different way of approaching things that will work depending on what's your goal is?

I'm just curious about this as I'm trying to get myself to learn a bit more, just to clarify
Author here.

You are right, the main downside of the approach in the article is that you have to remember to filter the deleted_at column on constraints and consider how foreign keys cascade.

About triggers, we do link at the bottom to an article that uses them: https://brandur.org/fragments/deleted-record-insert

Since I am exploring a sync engine, having a separate table for deletes means I’d need to run additional queries when catching up, which led me to explore the single table approach. Let’s see how it evolves.
more like PHP, which is funny because they always come in pair, prolly originate from the days of LAMP stack.

js is more associated with Mongo, another bad db. Most modern js projects (or any modern project really, except PHP) use Postgres
BTW in Germany, if a company decides to lay off people just to save money, they have to coordinate with some government agency -- and if the company doesn't have financial trouble, those layoffs can be blocked.

This happened to Alphabet/Google when they wanted to lay off 6% of their workforce, but were wildly profitable. They couldn't in Germany.

(This probably wouldn't have applied in the Twitter case, because Twitter wasn't profitable, but it illustrates that there are processes and rules around employment that might seem very unusual to others).
Foambubble/foam: A personal knowledge management and sharing system for VSCode
When I worked in Europe I had to give 3 months notice. If I left before that I had to pay the company the equivalent salary.

So let’s say I leave after 1 month of giving notice. I now owe the employer 2 months salary.
I’m having fun using vanilla js with lit-html. Using string templates instead of jsx. VSCode extensions for lit make it almost identical to editing vue templates with type checking etc
Ha, I expected to read about something designed for on-device/off-network intended LLM inference of customized models (LoRA vs LoRa).
This is not true even in those spaces anymore. Games these days require libraries like SDL, or (increasingly) use engines like Godot.

Defense is a weird place, but open source is used quite a lot there, it's often required to do so and to record the open source consumed to produce a product. And often times, it must be commercial open source where you can get engineering support for the lifetime of the product's existence.
Does anyone know why seemingly all the introductory courses advocated nosql stuff like using mongoDB

Even freecodecamp who is excellent, does this.

They have a rel-db course https://www.freecodecamp.org/learn/relational-database/ but their backend course uses mongodb https://www.freecodecamp.org/learn/back-end-development-and-...
They receive my money, as I pay them the way they ask for it.

I am actually not responsible for their choices of how they spend it.

Everybody has to invest something to deliver their craft. A handyman needs tools and materials. A carpenter as well. They pay taxes. And so on. That’s the reality of doing business. If they are not business savvy enough to turn a profit. Not my responsibility.

That’s called free market capitalism by the way. Everybody is free to try to make money on their terms in any given environment. But nobody is entitled to actually make money. That’s how the market actually acts as an agent for economic and business evolution. Not the worst thing there is, given how well real existing socialism worked. I grew up next to the GDR. I know how "strong" their economy was. How successful their companies were.

Other aspects, like creating a social net to mitigate the worst effects of capitalism on the people is a topic for a different thread imho, though.
> You change your phone every year? Because I have this Android phone sitting on my desk for development. When I bought it it was almost as responsive as iPhones (and much cheaper). 4 years later the UI is a lagfest [1].

As a counter anecdotal evidence: I bought my current Android phone before the pandemic started (that is, more than 4 years ago), use it daily, and it's as responsive now as it was when I first used it. While I don't have any iPhone experience to compare, I feel no lag when using it.
*in nodejs (for now)
But that might be just like the sea has waves?
Eeehh, conveniently, this is consistent with their other “scare popups” that don’t directly harm their business model like installing provisioning profiles. They’re installed via Safari, where a pop up tells you the instructions to go to in Settings, rather than a button to take you there.
Surprised to hear that losing 15 min of state is not a big deal in a banking context.

I haven't worked with banks before, genuinely curious, how do they recover from something like this? Wouldn't this potentially destroy all transactions made in that time period?
I frown at JSX. Just a layer of abstraction that is so "leaky" that you have to know what actually goes on in the layers below or you are fucked.

It looks simpler at first glance/ to a untrained eye; but it's just adding complexity without really solving any problems.

I like approaches like Kotlinx.html, scalatags, Elm's HTML package or HtmlFlow. They are also abstractions, but they add typesafety that html-as-a-string does not offer. On top of that you get breakpoints, code completion, and you can keep working in one language.
The problem is that this additional salary in turns inflates the housing market or tuition fees, and at the end of the day you're not earning that much in exchange for the protection you gave up.
>> as long as the DB layer is reasonably separated in your application

I find this is easy in retrospect but tricky when you’re building a system. It’s all shades of grey when you’re building:

Should I put my queue in my DB and just avoid the whole 2PC drama (saga is a more apt word but too much opportunity for confusion in this context).

I probably should implement that check constraint or that trigger but should I add a plugin to my DB to offer better performance and correctness of special type X or just use a trigger for that too?

Should I create my own db plugin so that triggers can publish messages themselves without going through an app layer?

In retrospect it’s easy to see when you went too far, or not far enough. At decision time the design document your team are refining starts to head past the ~10 page sweet spot limit.
The problem here is with the Epic Store website and not with Apple
I mean, it does allow a better access to "move fast, innovate and break things", the issue being that some of things broken are people lives and careers and in the EU we more or less decided this was not ok nor worth it.
Brain found to store three copies of every memory
> Proof is simple: Since a lot of low paying jobs in the US have no labour protections.

That doesn't follow. The low paying jobs exist because the value to the employer of hiring someone exceeds the low pay. For those jobs, if the employer is required to provide paid vacation etc. then it can push the cost of hiring someone over the cost of offshoring the job or automating it, so the alternative then isn't high pay vs. low pay, it's have a job vs. no job.

Also, many of the costs are in proportion to the pay, e.g. the cost of a vacation day is the cost of paying someone else to cover, so the difference will often be a percentage rather than a fixed amount. Then it's no surprise that skilled professionals get paid more than unskilled labor, but that doesn't mean the unskilled laborers can't still be making more than they would be in the alternative where the company had higher costs to hire them.

> Or look at what Tesla does in Texas, with the "unprotected" third party companies that don't have labour protections. They are vastly worse off than those that work for Tesla ( since the country required minimum protections and Tesla didn't apply that to contractors)

They have fewer employee benefits, but in return contractors generally get higher hourly wages. One way or another they have to convince the worker to work for them instead of somebody else.
Their reasoning is that some platforms like Heroku do not support SQLite.

Why use those then and not a platform that supports it, like Glitch?

I have used Postgres, MySql etc, but having the project storage in a single file is making things so much easier, I would never ever want to lose that again.
Technically, this was not a lawsuit.

It was an enforcement action from the Workplace Relations Commission, and can be appealed in court.
I believe this stunt by Elon still doesn't work in the states. It's true that if you don't sign, they are entitled to fire you, but their line that it's a voluntary resignation is still bullshit. The consequences are smaller, but they've managed to do something that doesn't even make sense in terms of US labor law.
Purdue physicists throw smallest disco party
Personally, I'm not surprised that Google did this, they remove a lot of applications from the play store. The creatures, what to take from them!
It’s possible to prefer a product as a sum of all its parts, but have some downsides or criticisms of it.

Personally, I dislike the Android look and feel more than I want the ability to install other app marketplaces.
What's wrong with OSM itself?
It is always good to highlight that Slack does not enable to download private messages (except in more expensive data compliance plans).

If you want to to this on an organization you need to impersonate every account from your domain(s).
Nullable deleted_at suffices. There is no need for an is_deleted flag.
> Once they learn how to solve it once, changing up the animals will not fool a typical child. You could even create fictional animals with made-up names and they could solve it as long as you tell them which animal was the carnivore and which one was the herbivore.

When was your last experience with small children? Let's define "small" here to 5 y.o. or less, as that's the limit of my direct experience (having a 5 y.o. and an almost 3 y.o. daughters now).

There's a lot riding on "learn how to solve it once" in this case, because it'll definitely take more than a couple exposures to the quiz before a small kid is going to catch on the pattern and suppress their instincts to playfully explore the concept space. And even after that, I seriously doubt you "could even create fictional animals with made-up names and they could solve it as long as you tell them which animal was the carnivore and which one was the herbivore", because that's symbolic algebra, something teenagers (and even some adults) struggle with.
> Isn't this like table stakes for being a thoughtful person who isn't a sociopath?

Not all thoughtful people come to the same conclusions, and it's nice to try to axiomatise these things anyway, so you have something to point at when trying to formulate new rules.

For instance, non-toddlers understand the Golden Rule, which seems good enough on its surface, but on deeper reflection can let bad behaviour through.

Hypothetically, I like bribes: I can pay others to change the rules in my favour. I also like receiving money for changing rules. So this passes the Golden Rule, but fails Kant's Categorical Imperative.