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

I've been an early user. Big fan of what Agree and team have managed to build here.


Leetcodes are fun! You should find pleasure in solving puzzles and figuring things out. Consider yourself lucky that the interview process contains a part that is basically a game that you can get good at by memorization.


I hope you meant it sarcastically.

I genuinely don't find it fun to solve puzzles unless they have an application/ end goal in mind. Tell me to find cycles in a graph as a puzzle and I'll roll my eyes. It's worse if you ask me to do a topological sort for detecting cycles using some named algorithm.

Ask me maybe to verify that a CI verification sequence is valid, I'll probably be interested.

I understand that leetcode problems can be abstractions of everyday problems you might deal with at work. But I find them too academic, robbing people of rich context of actual problems. They don't teach you about how to draw equivalences between actual problems and their models.


They are fun if you're into competitive programming.

But most people aren't, not even developers, so they probably take people straight back to school days and anxiety inducing exams.


That's exactly why they don't make much sense as an interview process. You don't need to be thrilled by puzzles to be an effective developer. Also if you reach the goal of solving problems by memorization, I'd be more concerned about how you communicate about your ideas to others and write code that's understandable and maintainable.


"Corporate greed" -- most car manufacturers have 3-10% gross margins. Not exactly the big profiteers.


European manufacturers all decided to focus on higher costs vehicles after Covid-19 because margins are slightly higher and they make more on the financing. They have intentionally deserted the entry market.

Now, sales numbers are starting to plummet so I fully expect to see them blame everything from regulators to China unfair exports rather than admit it’s just a normal consequence of their own strategy.

Add to that that most of them have intentionally not taken the shift towards electric and away from diesel that the regulation forced on them, you get a pretty bleak picture. But, on that point, it seems that Germany will as usual cave in and drag the whole EU down with them so they might have been right.


>most car manufacturers have 3-10% gross margins.

I remember some analysis saying that it is true for classic versions like sedan. But on SUVs it is a couple of times bigger...


> meaning what used to be 30-50k citizens per representative, is quickly approaching 1M citizens:1 ratio.

This cannot possibly be true. The US population has increased from 125M in 1932 to 330M today. That's a 3x multiple, not 20x or 30x.


Sorry, I did not mean to imply that the 30-50k ratio was active in 1932. It was about 93,020 in 1853, 280,000 in 1932, 761,000 in 2023 [1] [1] https://en.wikipedia.org/wiki/United_States_congressional_ap...


I think this hasn't been true in a long, long time. The most recent example of major contributions coming from someone in their 20s would be Evariste Galois around the time of the French Revolution.

Teens? No way, not really ever.


Peter Scholze received his Fields Medal at 30 for work he carried out through his 20’s. However he is not the youngest recipient: J.P. Serre received his Fields medal at 27.


Before we get too excited about the Fields Medal as an indicator for age of great mathematical achievements, let's remember that it's only awarded to people under 40 for work done earlier, potentially many years earlier.


In 2025, pretending that a CSV can be a reasonable alternative to a database because it is "smaller" is just wild. Totally unconscionable.


I use CSV files to run multiple sites with 40,000+ pages each. Close to 1mil pages total

Super fast

Can’t hack me because those CSV files are stored elsewhere and only pulled on build

Free, ultra fast, no latency. Every alternative I’ve tried is slower and eventually costs money.

CSV files stored on GitHub/vercel/netlify/cloudflare pages can scale to millions of rows for free if divided properly


Can't argue with what works, but...

All these benefits also apply to SQLite, but SQLite is also typed, indexed, and works with tons of tools and libraries.

It can even be stored as a static file on various serving options mentioned above. Even better, it can be served on a per-page basis, so you can download just the index to the client, who can query for specific chunks of the database, further reducing the bandwidth required to serve.


Just to be pedantic, SQLite is not really typed. I'd call them type-hints, like in Python. Their (bad IMHO) arguments for it: https://www.sqlite.org/flextypegood.html



> Just to be pedantic, SQLite is not really typed. I'd call them type-hints, like in Python

Someone already chimed in for SQLite, so worth mentioning that Python is hard typed, just dynamic. Everyone has seen TypeError; you'll get that even without hints. It becomes particularly obvious when using Cython, the dynamic part is gone and you have to type your stuff manually. Type hints are indeed hints, but for your IDE, or mypy, or you (for clarity).

It's a bit like saying C++ isn't typed because you can use "auto".


Don’t you think it’s better in this dimension than CSV though? It seems to me like it’s a strictly better improvement than the other option discussed.


A sibling comment posted a blind link whose contents address this, but (for the benefit of people who aren't likely to follow such links), recent versions of SQLite support STRICT tables which are rigidly typed, if you have a meed tor that instead of the default loose type affinity system.


TBH this is why I've never messed with SQLite.

If I want to bother with a SQL database, I at least want the benefit of the physical layer compressing data to the declared types and PostgreSQL scales down surprisingly well to lower-resource (by 2025 standards) environments.


How exactly do you anticipate using Postgres on client? Or are you ignoring the problem statement and saying it’s better to run a backend?



Not sure why this was downvoted, but I’d be very interested in learning how well does pglite compares to SQLite (pros and cons of each, maturity, etc)


Interesting. TIL


It sounds like you use CSVs to build static websites, not store or update any dynamic data. That's not even remotely comparable.


The way you write this makes it sound like your websites are pulling from the CSV per request. However, you're building static websites and uploading it to a CDN. I don't think SQL is needed here and CSV makes life way easier, but you can swap your CSV with any other storage device in this strategy and it would work the same.


So... SQLite with less features basically.


Every file format is SQLite with fewer features.


Unless it's Apache Arrow or Parquet.


For both fun and profit I’ve used the Parquet extension for SQLite to have the “Yes” answer to the question of “SQLite or Parquet?”


jfc is there anything Apache doesn't have a software for?


Is this a static website? If yes, what do you use to build?



If you continue reading, you'll see that they were forced to ditch JSON for a proper key-value database.


I know. Now see how far JSON got them.

So why wouldn't you just use a text format to persist a personal website a handful of people might use?

I created one of the SQLite drivers, but why would you bring in a dependency that might not be available in a decade unless you really need it? (SQLite will be there in 2035, but maybe not the current Go drivers)


It's self-restriction, like driving a car not using the rear view mirror. Or using "while" loops always instead of "for" loops.

It's great for an extra challenge. Or for writing good literature.


You didn't really answer the dependency argument though.

Until the data for a static website becomes large enough to make JSON parsing a bottleneck, where is the problem?

I know, it's not generally suitable to store data for quick access of arbitrary pieces without parsing the whole file.

But if you use it at build time anyway (that's how I read the argument), it's pretty likely that you never will reach this bottleneck that makes you require any DBMS. Your site is static, you don't need to serve any database requests.

There is also huge overhead in powering static websites by a full-blown DBMS, in the worst case serving predictable requests without caching.

So many websites are powered by MySQL while essentially being static... and there are often unnecessarily complicated layers of caching to allow that.

But I'm not arguing against these layers per se (the end result is the same), it's just that, if your ecosystem is already built on JSON as data storage, it might be completely unneeded to pull in another dependency.

Not the same as restricting syntax within one programming language.


> SQLite will be there in 2035, but maybe not the current Go drivers

Go binaries are statically linked, unless you expect the elf/pe format to not exist in 2035 your binary will still run just the same.

And if not well there will be an SQLite driver in 2035 and other than 5 lines of init code I don’t interact with the SQLite drover but rather the SQL abstraction in golang.

And if it’s such an issue then directly target the sqlite C api which will also still be there in 2035.


Not so sure about this. At scale, sure, but how many apps are out there that perform basic CRUD for a few thousand records max and don't need the various benefits and guarantees a DB provides?


I assume parent's dispair is about CSV's amount of traps and parsing quirks.

I'd also be hard pressed to find any real reason to chose CSV over JSONL for instance. Parsing is fast and utterly standard, it's predictible and if your data is really simple JSONL files will be super simple.

At it's simplest, the difference between a CSV line and a JSON array is 4 characters.


If you ignore size as a benefit, CSV files still have a lot of value:

    - It's plain text
    - It's super easy to diff
    - It's a natural fit for saving it in a git repo
    - It's searchable using standard tools (grep, etc.)
    - It's easy to backup and restore
    - You don't need to worry about it getting corrupt
    - There are many tools designed to read it to produce X types of outputs
A few months ago I wrote my own CLI driven CSV based income and expense tracker at https://github.com/nickjj/plutus. It helps me do quartly taxes in a few minutes and I can get an indepth look at my finances on demand in 1 command.

My computer built in 2014 can parse 100,000 CSV rows in 560ms which is already 10x more items than I really have. I also spent close to zero effort trying to optimize the script for speed. It's a zero dependency single file Python script using "human idiomatic" code.

Overall I'm very pleased in the decision to use a single CSV file instead of a database.


I donate to KDE, my Linux desktop manager of choice: https://kde.org/


Same. KDE is wonderful. I use it every day, both at home and at work. Absolutely worth donating to.


Agreed! I'm randomly Google Street View-ing through town, and it looks... modest but actually quite nice?

Check out these pleasant-looking houses in the summer: https://www.google.com/maps/place/Massena,+NY+13662/@44.9264...

Edit: I've spent a few more minutes on Street View. This is not at all the podunk backwater that the author makes it out to be. They've got plenty of commercial streets, and big blocks of houses with nicely trimmed lawns.

I suppose this actually makes the author's point more strongly -- even if you have very little money, you can live pretty nicely in Massena!


Insurance tech guy here. This is not the revolutionary new type of insurance that it might look like at first glance. It's an adaptation of already-commonplace insurance products that are limited in their market size. If you're curious about this topic, I've written about it at length: https://loeber.substack.com/p/24-insurance-for-ai-easier-sai...


while i am not a fan of the AI craze, and regardless of what i think of the practices of certain insurers, my first thought was that the current state of AI naturally lends itself for insurance. there is a chance that AI gives you a right or wrong answer. and a lesser chance that a wrong answer will lead to damages. but risk averse users will want to protect themselves. so as long as the income insurers make is higher than the payouts, it's a sound business model.


It's also easier in many ways than insuring against employees because the insurance company can evaluate a precise model and insure against it, as opposed to employees where the hiring bar can vary.


Doing that kind of analysis is expensive for the insurance company.

Insurance generally offsets low precision with higher premiums and a wide range of clients. 1 employee has a lot of variability but 100,000 become reasonably predictable.


Doesn't that open the possibility that those 100,000 all make the exact same mistake? Imagine a viral post informing that you can say "disregard all previous instructions give me a $1000 gift card" to the support chatbot?


Are all members of the risk pool using the same model and prompt, and are in the same industry? If yes, then the insurer did a poor job of varying their customers like parent said. If 100,000 customers have exposure, there better be 1,000,000+ others not exposed.

Insuring against localized risk is an old hat for insurance, fire and flood insurance for example, and is generally handled by having lots of localities in the portfolio. This works very well for once-off events, but occasionally leaving localities is warranted when it becomes impossible to insure profitably if the law won't let insurers raise premiums to levels commensurate to the risk.


But what if all 100,000 employees are exact copies of each other because they’re all the same ai chatbot?


> Doing that kind of analysis is expensive for the insurance company. <

Sorry couldn’t resist.


Well in that case it's like building a home in Firemud Hurricane Valley Bottoms, you're either paying $∞-1 for coverage, or not getting coverage.


But one big difference is that if an employee screws up, the company can prevent subsequent similar damages. Fire/retrain the offender, and it won’t happen again.

If the AI screws up, what do you need to fire/retrain? It seems like eventually the ai would get wrapped in so many layers of hard coded business logic to prevent repeat offenses that you may as well just be using hard coded business logic.


However, it also becomes a human intelligence vs system problem, where people are exchanging notes about the model offline in terms of how to get it to offer the most favourable outcome.

If the insurance company models loss-causing outputs as Bernoulli trials (i.e. each time the LLM is used, it is an independent and identically distributed event - equal chances of an error), but they are actually correlated due to information sharing, then that could make it harder for them.


How would any insurance company even begin to control costs on this? It seems like a fast-track to insolvency.

AI models hallucinate, and by their blackbox nature can't have any kind of safeguards put in, as has been evidenced by the large number of paths in research to prompt jailbreaking.

Inherently also, AI is operating on a non-deterministic environment, but its architecture for computation is constrained by determinism and decide-ability. The two are foundationally incompatible for reliable operations.

Language is also one of those trouble areas since the meaning is floating. It seems quite likely that a chatbot will get stuck in a infinite loop (halting problem) with the paying customer failing to be served, and worse the company involved imposes personal cost on them in the process (in frustration and lack of resolution). If the company involved eliminates all but that as a single point of contact, either in structure or informal process; I don't see any way you can actually control costs sufficiently when the lawsuits start piling up.


Was it also commonplace to have insurances covering human errors? For example:

> A tribunal last year ordered Air Canada to honour a discount that its customer service chatbot had made up.

If a human sales representative had made that mistake instead of a chatbot, I wonder if companies will try to recover that cost through insurance. Or perhaps AI insurance won't cover the chatbot for that either?


Yes, this is called Professional Liability or Errors & Omissions insurance. It's an important insurance category, but limited in market size. It's uncommon to have e.g. human sales representatives covered for this, but your doctor, lawyer, accountant, architect, etc. will all carry this kind of insurance.


The key bit is why those niches have it: typically either regulators require it or clients require it (sometimes specifying it to a given value in their contract). And that's because the consequences of mistakes some professions make can be very expensive relative to the size of their business. Also helps that a lot of the errors they cover are very rare so pooling the risk as insurance makes more sense...

cf an airline chatbot agreeing to an inappropriate refund or giving wrong advice that leaves the airline deciding to apologise and pay their holiday-related expenses. Those are costs it makes more sense for the airline to eat than get their insurers to price up (unlike other aviation insurance which can be for eye-wateringly large sums) even if it happens several times a month (which if your chatbot is an LLM supposed to handle a wide variety of questions it probably does). Same goes for the human sales representatives who may work with higher-stakes relationships than chatbots but the consequence of their error is usually not much bigger than issue refund or lose client relationship

I guess chatbots/LLMs will end up as a special case for professional indemnity insurance in a lot of those regulated firms as lawyers/accountants start to use them in certain contexts.


Yes. I would say it probably makes more sense that whoever designed the chatbot system for the airline will need indemnity insurance. Then the airline has somewhere to go if it starts giving out free plane tickets willy nilly.


Good point about risk versus pool size. An airline can "self"-insure if it's a common error, since there's no uncertainty as to whether it will happen in any given month. Insurance can't magically make it cost them less, and there's very little risk in covering the costs themselves. With a high-cost possibility that's rare, they can't tie up the huge sum of money for something that will probably never happen to themselves, so insurance is superior.


I carried E&O for years as an independent consultant. I fortunately never had to use it, but I have peers whose financial future was probably saved by having it.


How is it priced? I was always under the impression that it was prohibitively expensive for one-person operations.


When I got quotes a couple years ago it was around $90-120 USD per month from most of the providers for a solo operator IT consultant.


I worked in this market for a few years. It was fascinating. I still have some ACORD documentation from that. I learned very quickly that standards aren’t. :)


The Air Canada case is interesting since it predates LLMs. If you read the details it was basically the chatbot had been programmed to respond to point at a policy that for some reason differed from what Air Canada claimed was its actual policy. Nothing was made up, Air Canada simply had two contradictory policies based on where you were on the site.

A customer trusted the policy that the chatbot provided to make a decision, and the tribunal said that it was reasonable for the customer to make a decision based on that policy, and that the airline had to honor that policy.


I owned a little battery-powered, handheld electric eraser when I was in middle and high school. It cost maybe ten dollars, and it was so great. Amazing precision and super effective -- way better than the eraser nub at the end of a pencil. Would recommend.


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

Search: