skysight-inc/HackerNews huggingface dataset:
I am trying to learn how to build React apps with ChatGPT following the TDD method. Building a todo app is just one single prompt. ChatGPT is pretty good at coming up with test cases given a set of requirements. For the backend, I'm thinking of Supabase.
Yeah arithmetic coding on its own is not enough, typically you would have it as the last step, with dictionary and other compressors before it.
Distribution is hard, though. Will reducing food even in countries where it is wasted solve distribution any better, or will it just hurt the people at the bottom of the distribution chain more?
Yea, but when there are single digit numbers of family house rentals in Meath on done deal, something is wrong.

When there’s 100 people applying for rentals. Or people moving from Blanch to South Wexford or Carlow because that’s the closest they can afford. Rents have doubled or tripled in the last 10 years.

We bought 5 years back when we couldn’t find a rental, rents were 1400 for a 3/4 be then, we got 1600 3 years ago when we were away for a year, and comps now are 2500+, in a place with a 1.5 hr commute to Dublin.
The big plot hole in this master plan that many people apparently can't see or accept. If we remove the production of meat, this will severely harm the production of vegetables. They are connected.

You can't have real agriculture without manure.

Fossil guano is a finite, scarce and very expensive resource, and human manure is not so desirable as replacement by several reasons so, how do they expect to feed their green miracle exactly?.

How efficient is the conversion food-to-meat is irrelevant if you omit half of the products obtained. This food also will turn into leather, milk, workforce and manure, so the calculus is flawed from the start.
Good grief - Australia and New Zealand (3) [1] !!!

My map suggests that Australia alone has rather more than 3 [2].

It's missing a host of Australian languages and simply not GIS mapping others, eg: Yolngu Sign Language [3] should be tied to Elcho Island [4] & surrounds.

Speaking of Yolngu .. [5]

[1] https://en.wal.unesco.org/discover/languages?f%5B0%5D=locati...

[2] https://mgnsw.org.au/wp-content/uploads/2019/01/map_col_high...

[3] https://en.wal.unesco.org/languages/yolngu-sign-language

[4] https://en.wikipedia.org/wiki/Elcho_Island

[5] https://www.youtube.com/watch?v=bdpoWcma4HE
Ledger allegedly leaks private keys
The thesis that I felt Curtis was pushing in recent works, and which I didn't particularly care for was: "Trump/Thatcher/Reagan/Brexit told a fictitious story that people liked, because people like simple stories even if they're not true, and if we (people who think that Trump/Thatcher/Reagan/Brexit are net-negatives to society) want to improve the world, then we need to tell a similar story and stop pissing around with facts and reality."

Which I feel is both giving too much credit to Trump etc. (who were all backed by big financial incentives, which covered up and normalized their insanities and inanities) and too little to modern political movements which have achieved incredible progress by doing boring, factual, useful work.
"Bosnian" and "Croatian" are different languages? Really?
Agreed. Demeter is based on highly esoteric principles. Plus they've had an "interesting" relationship with the Nazi regime and obviously repeated their non-scientific weirdo theories in the Covid pandemic[0]. Personally, I only buy if I cannot avoid it.

[0] https://de.wikipedia.org/wiki/Demeter_(Deutschland)
On equivalent instances it seems a good bit more expensive than e.g. lambdalabs [1], but in turn you get a lot more flexibility. Both in terms of having more GPU models to choose from, and having much more flexible machine configurations. Seems like a worthwhile tradeoff.

1: https://lambdalabs.com/service/gpu-cloud#pricing

https://oblivus.com/pricing/
But it being inline is a critical requirement, or we'd just shell out to any of a number of image viewers. The problem isn't a lack of options for showing images, but a lack of options to show inline images.

Not needing to pull in a dependency also matters. E.g. this is enough to do Sixel on a supporting terminal:

echo 'G1BxIzA7MjswOzA7MCMxOzI7MTAwOzEwMDswIzI7MjswOzEwMDswIzF+fkBAdnZAQH5+QEB+fiQjMj8/fX1HR319Pz99fT8/LSMxITE0QBtcCg==' | base64 -d

Or e.g (I have no idea if this will survive HN's comment parsing, but it's the output of base64 decoding the above in single quotes):

printf '\ePq#0;2;0;0;0#1;2;100;100;0#2;2;0;100;0#1~~@@vv@@~~@@~~$#2??}}GG}}??}}??-#1!14@\e\\\n'

Having other options is great, but then don't remove the desire to have something really basic as well.
Saying that a software is god awful when it's commercially successful is not a good argument. Certainly tons of people and orgs out there are deriving value out of it. I still have to see anything that comes closer to Confluence for arranging organisational knowledge
I think you’re fighting a losing battle here, mos-co will sound as wrong to an American as mos-cow sounds to us. I presume both US and UK both used “mos-co” originally, and the US broke away with the newer bovine pronunciation at some point. I’m curious why and when this happened though - maybe the advent of TV or Radio there were some prominent announcers who used that pronunciation and it stuck?

What puzzles me are the elongated “aw” some use in place names like Milan, Prague and Hamburg (“Milon”, “Prog”, “Homburg”) - because they’re not correct in either English or the local languages. I wonder if that came from the realisation that "France" uses that "aw" vowel sound in French, so the assumption is other European languages would be the same (i.e. it's a misguided attempt to be more correct)?
Is this a U.S. thing? Where I live—a rural part of the UK—I don't think anyone thinks twice about letting their cats out. It's just what you do with cats.
You're going to need more than hubris and Youtube videos if you want to prove Einstein a fool.
They funded vice with like a billion dollars, right? We're not just allowing it, we're actively encouraging it.
That is not the definition of dystopian. This could have come straight from a Black Mirror episode.
Constrict Your RAM with Python
Various ways to make memory bombs in Python.
This is why the West has such ossified systems. If you propose any systemic change, people dont actually evaluate the suggestion on it's merits. They just go China/communism!
Computing Our Way to Antibodies
The article was referring to the original AVX1 not the subsequent variants. Likewise I was referring to the first set of extensions.
ooohhhh those were the days...
If you're on Google Workspace, using Google's Device Manager (assuming you use Chrome as the 'forced' browser), you can get pretty far. It's not as full-featured as other enterprise device mangers by any means, but it should be sufficient for some compliance (ISO27001 and SOC2) as I know companies who have passed with this setup.
It’s really not. Without subsidies, farms could not exist; we simply don’t pay enough for produce to keep them running. You could argue that subsidies are to keep the public onside. If you were the party who removed subsidies (and increased food prices by 50%), it would be political suicide.
That question is very generic, so I'll give a sadly boring and generic answer.

Two options here:

a) You want to learn. Pick whatever fancies you. Do it, but don't expect the end result to be perfect, because you're going to make mistakes, which is part of learning. There is no turn-key "best practice" checklist that would result in learning and not making mistakes.

b) You want to achieve some real and concrete project. That something is by and large independent of the tech you'll be using, as long as that tech stack satisfies the project requirements. Pick the one you're most confortable with and that satisfies said requirements. Do it. Focus on the project goal. Make it work, make it right, make it fast. Ship it. You'll have enough on your hands with the project itself that you don't want to lose your way down tech rabbit holes.

Doing a) and b) together has a high chance of blowing up in your face.

Side project? You probably won't have much time/energy for it, so focus is key. Make peace with the fact that project goal is either a) or b).

If a): This is a sandbox. Try stuff, compare options, tear it apart, _throw it away_. Using the project idea as a mere guideline, a "how could I do this or that" impetus, you're at liberty of hacking around, comparing and whatnot without fear nor constraint. Embrace the malleable nature of sand.

If b): You know Rails? Go with Rails. React is fine in front of Rails (heck, erb/slim backend rendering is fine even in most cases). Define "modern": is it _really_ about the tech, or about the UI/UX? Sick of these thousand JS/CSS bundlers and Rails trying too hard to integrate with an alien world? Keep it simple, emit JS/CSS and stuff it in `public` for Rails to serve. No fancy live reload? So what, big deal. fswatch+xdg-open/open get you 99% of the way. It's static in production anyway. Resist fancy, go for simple and useful. Achieve the project by yourself, which is a learning in itself.

In both cases, avoid choice paralysis. Trying to do a) and b) at the same time only amplifies it. Make a choice, decide what are you gonna do, how you're gonna do it. Just decide and move forward, sidestep the paradox of choice. Just do it. There is no perfect unicorn anyway.
But wouldnt it lower the price of chicken in those places, providing more people w access to good calories although hurting the local farmers? Couldnt this be solved by a country putting up tariffs or banning importing such chicken? If they didn't do that what was their reason?
There's almost as many ways to make a modern website in 2023 as there are developers of modern websites. You'll find plenty of opinions in here, and I of course have my own :)

You can still write websites using the technologies you're familiar with, such as Rails. If your goal is to get something out the door, then I'd suggest you pick something that feels familiar and comfortable, or will hold your attention, and is good enough for the job.

No matter what you choose, there's going to be pro's and con's. That's not to say that each choice is equally good -- some options are on balance worse than others, and the optimal choice also depends on the nature of your project. But chasing the optimal choice can cause delays. I've personally been guilty of swapping a key part of my stack (the website part) half-way through a project, just because I wanted to do it a different way (for that project though, it did not matter).

With that out of the way, my bias: I strongly suggest you pick postgres for your database, which is a favourite on HN for good reason.
Just go with rails and whatever you feel comfortable with in the frontend (jquery or react, or whatever). Ignore what's modern.
So, you think this statement should not be made publicly but also not in private since a private statement is just a public statement yet to be leaked? Bollocks.
Aistote - The ultimate AI-powered learning app. Test your knowledge with quizzes, reinforce with flashcards, compete with fellow users, and achieve mastery.
Are you disagreeing with my views on theming or just my poor choice of metaphor? ;-)
Randomly seeing the wrestling god in this video as the interviewer took me a second to process. Kenny Omega isn't just a random wrestler, he is one of the most critically acclaimed and audience beloved wrestlers ever. This would be like having Tarantino host the Oscar red carpet.
Microsoft Says New AI Shows Signs of Human Reasoning
Yes, but I have not heard it used for years. It seems to have fallen out of favor like my dad’s favorite: “boob tube.”
Or "launcher replaces the app, app updates the launcher".
But do we need to do everything in your shell window? I made an alias to be able to show pictures from my kitty terminal...and almost never use it. I have a photo viewer on my laptop, why would I use the terminal for that?

If I want to show a single picture, it doesn't take longer to type eog <filename> [1] than my alias (icat), if I need to see thumbnails of more than one, it doesn't take longer to open my file manager. If the file is remote, the directory is mounted easily from my file manager or the command line.

[1] eye of gnome in my case
Or make Czech reservoir: https://prehrada.hrach.eu/en.html
We will only truly have been successful at making machine in our image when it tries to cheat the Turing test. All it has to do is patch through one human users input to anothers output. A machine in the middle attack as it were.
It's neoliberalism 101. It's how it functions.
if you ever write a lot with pens then using a Fountain pen is a dream to write with on good paper. I always used to get a cramped hand from using rollerball pens, gels were a bit better but not much.

Tried a Lamy Safari, a "cheap" for fountain pens at least (23 euros), and I have never looked back. I love writing by hand now, and take every opportunity to do so. It's just so much more fun writing when your thoughs can just slide out from your hand on to paper.

Daily drivers are my Lamy Aion (a 80Euro pen)with my Safari as a backup.
This is wonderful! I wish more companies would follow suit and open source their frontend apps. Really interesting to look through the source as well.
Hah. Have you met many business leaders? They could be poster models for the Dunning-Kruger effect.
“A language is a dialect with an army and navy” (https://en.wikipedia.org/wiki/A_language_is_a_dialect_with_a...)
I think this is a result of conflating the act of coding with code as a result. The effort in understanding a domain and specifying a program is about learning and communicating about it with other people.

A working program is useful, but deepening knowledge about a business domain and being able to adapt to changes on the ground is the real value. Being accidentally right but unable to be consistently right over time is a distraction. It can generate false confidence, and future maintenance burdens.
What do you actually want to build? Without knowing that, the suggestions people are making are shots in the dark.
A few other options to put on the table.

A CMS like Webflow or Ghost have a theme system and are pretty powerful and flexible.

Static site generators like Gatsby and Hugo can take away some of the busy work and decisions.

A headless CMS like Strapi can handle your backend.

These are all viable low code alternatives and flexible enough for most sites nowadays.

For anything interactive and CRUD based, I still haven’t found anything faster than Rails, and I’ve been through them all.
> Instead of boosting their economies by importing stuff from those countries we kill their exports with subsidized local produce and then spend a lot on development aid.

I think a key takeaway from the pandemic is that you don’t want to be reliant of import from strategic ressources and food is priority number one.

European subsidies are mostly going to France which is a huge wheat producer.

Farming is an area where I can predict there are going to be a lot of tension in the EU between ecological ambition and the cold reality of having to feed everyone.
If you're already familiar with RoR then it seems quite a sensible choice to me to just go with that. Working in a modern Rails codebase can be insanely productive and is probably a bit more polished and stable than a modern JS/TS codebase (oh you haven't touched your codebase in a few months? Here are 7 major version changes across 3 frameworks none of which are compatible with one another).

For the frontend I highly recommend Svelte as it's dead simple to get started with and the learning curve is quite mellow. If you don't want to mix programming languages in your codebase, SvelteKit is a good option, but it can be quite finicky to setup and to get working according to your tastes if your tastes stray too far from the SvelteKit happy path.
Something like 85% of livestock feeds are byproduct of something that would be grown anyway. E.g like when they make coconut milk/ fibre for humans, they take the coconut leftovers and grind it down for cattle. That byproduct exists regardless of livestock eating it.
Because Windows don't have decent package management system.

Linux way of "add a repo, upgrade every package from either system or app-own repo" is strictly superior but windows just doesn't have it (and thanks to that there is multi-billion dollar cottage industry to fill those holes)
Are you making this project specifically to learn new things and modern tools and workflows? Or are you trying to build a product?

If it's the latter, just build your standard dynamic monolithic web app using boring technology that you know. If it doesn't need to be dynamic, even better, build your standard static site.

You can always add dynamism and frontend frameworks on top of it to meet your and your users' needs, and you can always add the new shiny library or framework you want to try out, too.

If it's the former, go on https://hn.algolia.com and search for this same question, as it's been asked in a variety of different contexts with a variety of different answers that can help you decide exactly what modern technologies are right for what you're trying to accomplish. I bring it up not to say that this question is redundant or anything, but just as an aside if you don't know about it and want to see what others have said about it in the past.

My suggestion when choosing between new technologies is to just go with whatever has the most community support and momentum. There tend to be less less headaches, problems and road blocks on the well-trodden paths.
A groovebox in the browser:
https://tahti.studio/
I'd rather have access to less text that I know to be right then a lot that might be wrong in subtle ways I cannot detect.
I think you should pick Rails.

It now has by default support for Hotwire -> https://hotwired.dev and it also comes by default with support for importmaps (so you will not even need to install nodejs) and it works with Tailwind.

Here is one command to generate your project:

```
rails new myproject --css tailwind --database postgresql -T main
```

and then you can just start it with

```
bin/dev
```

I think it offers out of the box a very good experience with very few dependencies to install.

You will have:

- Hotwire -> you can make with just a few html attributes very good UI (like independently updating parts of the page without refreshing the page) + Stimulus controllers if you want to write JS for various small tasks.

- PostgreSQL as DB

- ActiveStorage -> upload files to most known clouds

- You can add Devise gem and have all you need to user auth

I recommend using RubyMine as an editor to have full support for go-to definition until deep down to each gem. VSCode with Shopify LSP is also a good combination.

I am not sure what web app you are trying to create, but before reaching to SPA please think if you really need SPA.
The tokenizer as far as i know is just byte-pair encoding. You take your whole corpus, you find the most common 2 byte pair (probably .[space] for the first iteration) and you assign it to a token. Then, you do it again with the previously found token as possible parts of the byte pairs. Do it enough times and enventually you get full words as tokens if they're common enough, and for more uncommon words just the root of the word (and then later you can assemble root+ing for example, ing being just a normal token among others).

It struggles with rot13 because people don't generally make large corpuses of text rot13 available, next to their translation, so the problem compounds. On one hand there are probably not many rot-13'd words recognized by the tokenizer, and on the other hand even if there were the model wouldn't be trained to predict the correct translation after these tokens because there are very little rot13 roseta stones just laying around.
Not only American.
Ask HN: Do you have Guilds, Chapters, and/or Tribes in your engineering team?
I recently stumbled upon this state of DevOps [1] that suggests creating community structures, including Communities of Practice, to build a high-performing engineering team.

Is it some kind of structure you have in place in your team?

[1] https://news.ycombinator.com/item?id=20778175
I think the way the disagreements are voiced and handled by the disagreer matter a lot in which of those two responses you would receive.

Also, I think it would matter a lot on how X vs Y turned out later. I.e. the difference between always disagreeing but also always getting it wrong. Or sometimes disagreeing but then getting it right and handling being right gracefully.

In my experience "shut your mouth and do as you're told" people are appreciated, more than employees who just disagree to disagree. However, the employees who voice their opinions, are able to articulate their stance and know when it is important to budge or when not to budge are always valued higher.
> I'm used to police solving problems, not aggravating them.

A quick reminder that ACAB does not stand for American cops are bastards. The USA has its own distinct problems, yes, and is worse than many other countries, but policing as an institution has serious problems probably everywhere. (Yes, even in countries where police are routinely unarmed.)
When the younger generation takes over, I predict a massive wave of construction globally. Most millennials have had it up to here both with high rent and the anti-development I've-already-got-my-own-house crowd that caused it.
> The author seems to dismiss declarative UI without explaining why. From my perspective, declarative is the best way to describe UI.

…but I mean, that’s an opinion that is not falsifiable.

If the author disagrees, that’s up to them right?

I agree with the author too; after using xaml, my taste for declarative UIs is limited.

Here’s something that is falsifiable: what is possible using declarative UIs is a strict subset of what is possible using imperative code.

If your declarative config is Turing complete, it’s a DSL; ie. a programming language, not declarative and you’re in “not invented here” land.

If not, the possibilities for it are a subset.

That’s provable; so, if you’re worried that your UI is too complex to easily represent with the existing declarative structure, go for code.

What if you need dynamic layouts? What if your layouts are determined at runtime by dynamically loaded plug-ins? What if your layout needs to generated differently based on themes, or screen sizes? Who knows?

It seems entirely reasonable.

The same goes for other declarative solutions and projects. Eg. Terraform.

I mean, the author literally says a) it’s a trade off for velocity, b) they’re more concerned with performance, c) the implementation in slint is not complete and d) they’re considering writing a very very low level UI library to get what they want.

…maybe, they just want different things to what you’re offering?

It doesn’t mean they’re “wrong”.
Code LLMs and they didn't call it CLLaMs? :_(
Well, you can have nested options. Some(None) is different from a None

It also has nice ergonomics with bind, map and such. And the fact that a None is not even comparable to an 'a.
That "just" is doing a lot of work there.

Even with a constitutional convention, you still need 3/4 of the states (38 of them) to ratify anything, which I don't think is feasible today. Hell, I'm not even sure the delegates to a hypothetical constitutional convention could even agree enough on what to propose for ratification.
My mate used to say "git" to say something is fine/good (to him).
Harry Potter and his broomstick please all ages (2010)
I don't honestly think I know.

You actually need to actively and effectively manage factories or you go out of business very quickly. For the last 50 years rentiers with enough capital basically can't not come out ahead.