skysight-inc/HackerNews huggingface dataset:
After some trial and error I have now settled on the following "stack": 1)I manage python versions with pyenv 2)For each new project I create a new virtualenv with venv "PYENV_VERSION=3.10 python -m venv .venv" 3)Then I start jump into the venv and initiate the project with Poetry ("poetry init -n") and manage dependencies with Poetry.

If I'm keeping the projects under Dropbox, then I'll just add the .venv folder to the ignore list ("attr -s com.dropbox.ignored -V 1 .venv") to reduce the amount of files that need to be synced. If I need to get back to old project, I simply recreate the venv and install dependecies using Poetry.

A good habit would be to add a .pythonversion file on the project folder. Pyenv can pick that up and it is then obvious which version was used for the project.

I do development on Windows, but run all the Python stuff on WSL2 and use VS code for notebooks and everything. One thing I haven't looked at is using pipx to manage Poetry. Now I simply have one Poetry version installed.

Pyenv has worked fine once I managed to collect all the necessary dependencies to Ubuntu. For me it's not just to switch between Python 3.x. I like the fact that you can easily have different patch versions and match exactly the version I would use in production (via containers).
It's a good idea to regulate and examine companies with over a certain share of the market and over a certain size since it's almost guaranteed they will abuse their market position one way or another.

These companies pose a general threat to the proper functioning of a healthy market due to network effects and compatibility issues, things that regulators should always be working to counteract.
I normally go by the title, but a little (and brief) explanation is nice. Not longer than what you wrote above.

- a short summary of what this is (am I interested?)

- intended use case / users (is it for me?)

- unfinished work (where to not complain?)

- a question (where can I help?)
> The Aztec empire was only about a hundred years old when it fell. They were very active conquerors on top of committing human sacrifice.

I'm aware. I was aware when I said I don't believe we can group them in with the Nazis. Are you saying we can?

> Seven million Mexicans today are fluent in indigenous languages while between 11-23 million identify or are identified as indigenous

I'm not ready to conflate language with the practice of a culture or the self determination of a people.

> Also, cultural assimilation is never quite so targeted. How many countries can you name whose leaders don’t wear Western suits and ties or where nobody plays soccer or where you can’t find a McDonalds?

I don't know what you're saying here.

> There’s probably a single digit number of countries that don’t have a military, and one of them (Iceland) is nonetheless a NATO member with foreign security guarantees so I wouldn’t even count them as pacifist.

I think you've done a disservice to what I said by focusing on a particular aspect that you personally disagree with. The point still stands that pacifism is not a "fringe" idea. You might not believe pacifist countries are "truly" pacifist by your definition, but the rhetoric of pacifism is part of mainstream politics in many parts of the world. You can read about various peace movements globally here:

https://en.wikipedia.org/wiki/Category:Pacifism_by_country
Your phone has a higher resolution, a lower size, and a lower thermal footprint, and more battery life....
Humans were terrible at getting calculations right - that's why we invented abacuses, slide-rules, books of mathematical tables and tabulation machines.
Make `a + b` `A * B` then, multiplication of two potentially huge matrices. Same argument still holds, but now it's blocking (still just performing addition, only an enormous number of times).
Sam’s a snake. This should be well known. He’s charismatic. He’s well liked, he gets things done. He also craves power and will lie and destroy you if you stand in his way. Never trust Sam
Completely different things with different levels of complexities. The LLM is the one doing the heavy-lifting in the case of an agent. One does not need to build an LLM from scratch, but they do with a web-browser. With the LLM, the work is already 70% done, the rest is figuring out how to create an agent and fine-tune the params.
Nice data !

I'm a bit surprised by the % of flights / mass to orbit that's taken by Starlink actually - 2/3 of the launches and 80% of mass. If I read this correctly, if we exclude Starlink related launches, SpaceX is still big, but not that much bigger than the rest actually.

The title should almost be 'It's a Starlink World' !
Just a thought, but what happens if you use orchestrate a browser instance with an installed ad blocker like uBlock Origin?
No, you have to convert it to CSV first [1]. Or install a driver [2].

[1] https://www.gigasheet.com/post/how-to-open-parquet-file

[2] https://www.cdata.com/kb/tech/parquet-odbc-excel-query.rst
Friends don't let friends export to CSV -- in the data science field.

But outside the data science field, my experience working on software programming these years is that it won't matter how beautiful your backoffice dashboards and web apps are, many non-technical business users will demand at some point CSV import and/or export capabilities, because it is easier for them to just dump all the data on a system into Excel/Sheets to make reports, or to bulk edit the data via export-excel-import rather than dealing with the navigation model and maybe tens of browser tabs in your app.
Aside from the fact that an async/await operation can have arbitrary side effects , returning values is not a prerogative of async/await. For example in c++:

void foo() {
auto future = std::async([]{ /* do some stuff */; return some_value; });
... // do some work concurrently

// join the async operation
auto some_value = future.get();
}

Here std::async starts a thread (or potentially queues a task in a thread pool); please don't confuse async/await (i.e. stackless coroutines), with more general future/promise and structured concurrency patterns.

edit: note I'm not making any claims that std::async, std::future, std::promise are well designed.
I'd love the detail on this, what did it save you from and how did you ensure your firmware does not, say, hang?
Absolutely, and IMO the EU should be developing our own semiconductors.

It seems completely unreasonable to me that one pillar of modern society has to be bought from USA or China and doesn't have a locally sourced alternative...
For a good portion of the world I think you'd have to add, "...at a price roughly equal to [insert large percentage, in places exceeding 100%] your monthly income," to get a more realisic response.
PCMCIA is reborn
Garden-variety elitism. Safely ignored.
That's one example of a lock you might eliminate, but there are plenty of other cases where it's impossible to eliminate locks even while single threaded.

Consider, for example, something like this (not real rust, I'm rusty there)

lock {
a = foo();
b = io(a).await;
c = bar(b);
}

Eliminating this lock is unsafe because a, b, and c are expected to be updated in tandem. If you remove the lock, then by the time you reach c, a and b may have changed under your feet in an unexpected way because of that await.
> It just makes me question humans' intelligence if anything.

A more serious byproduct of the tendency to talk about machines in anthropomorphic terms is the companion phenomenon of talking about people in mechanistic terminology. The critical reading of articles about computer-assisted learning —excuse me: CAL for the intimi— leaves you no option: in the eyes of their authors, the educational process is simply reduced to a caricature, something like the building up of conditional reflexes. For those educationists, Pavlov’s dog adequately captures the essence of Mankind —while I can assure you, from intimate observations, that it only captures a minute fraction of what is involved in being a dog.

https://www.cs.utexas.edu/users/EWD/transcriptions/EWD09xx/E...
Volta – Fastest Node version manager in Rust
Regex with callbacks? Congrats, you’ve reinvented lex.
I think you might be misreading that -- it says that users either pay the $11 or consent to the tracking that reduces the price to free (in theory, anyway).
I would not apply. Besides the fact that I don’t want to spare half a working day unpaid, I find it worrying that implementing a feature on an unknown code base without any kind of collaboration with co-workers before or during the implementation step is considered normal in that company.
I’m not a fan of pairing all day, but coding tasks like these always seem to assume that it’s normal to not talk to other experts in the team, and that asking for advice or brainstorming on solutions or pitfalls is the exception.
More than Python versions, I use pyenv to keep from polluting the system’s site-packages.

It also ensures that my requirements.txt is sufficient for the code to run.
The author does not mention the software in question. My assumption is that it's ZooKeeper. Simply because in my previous role I had to build the exact same thing. We didn't have thousands of nodes, but we deployed (and managed) ensembles on prem at customers. Things would go tits up quite regularly, and would be difficult to recover (or even identify). Netcatting 4 letter magic words to ZooKeeper, parsing and aggregating the results was how we got a handle on things.

Eventually we built this into the application we were deploying, so that it could monitor its ZooKeepers, raise alarms, and give us insights into aggregated reliability data.
34 out of 96 launches involved 3rd parties though.
Or you give ads based on the content the user is reading/watching and not who he/she is. So you read an article about skydiving? You get served skydiving equipment ads. This way you are EU compliant since you don't track the user.
If you take the same Galton board and focud on the paths taken by all balls that ended up in a particular bin you get the hypergeometric distribution for the steps they have taken. So the draws without replacement lurk in the Galton board too.

It does, in other words, not require a demon, only a restricted viewing angle.
Tools you can use to make sure the Python program you wrote keeps working: requirements.txt, pip, pipenv, pyenv, virtualenv, pyenv-virtualenv, virtualenvwrapper, pyenv-virtualenvwrapper, venv, pyvenv, conda, miniconda, poetry, docker, nix.

Which ones did I miss? Which of them actually ensure your program always works the same as when you first wrote it, without asterisks?
This has a particular resonance when coupled with the enshittification of streaming

https://news.ycombinator.com/item?id=39179418
There's the ITU
Upgrading Apple Keynote with AI [video]
> aware you can import a csv file in excel by manually defining the column types but few people use that

And what fraction of those users would be able to anything with another format?

> an extension of the csv format with one extra top row to define the type of each column

If the goal is foolproof export to Excel, use XLSX.
Doesn’t a claim become instantly implausible when we see how it is incorrect? It's only plausible as long as it might still turn out to be correct.

Furthermore, sometimes mistakes are made when assessing correctness, even in mathematical proofs. A correctness judgement thus still has a degree of plausibility associated with it.

I'm thus not sure if the distinction being made here isn't just one of degree.
It's scientific to say other languages are "predicted" to show similar results, but unscientific to say we know they do.
> So why not drop this special word `async`?

You can drop the special word in Rust it's just sugar for 'returns a poll-able function with state'; however threads and async/await are not the same.

You can implement concurrency any way you like, you can run it in separate processes or separate nodes if you are willing to put in the work, that does not mean they equivalent for most purposes.

Threads are almost always implemented preemptively while async is typically cooperative.
Threads are heavy/costly in time and memory, while async is almost zero-cost.
Threads are handed over to the kernel scheduler, while async is entirely controlled by the program('s executor).

Purely from a merit perspective threads are simply a different trade-off. Just like multi-processing and distributed actor model is.
Especially because in a global market, these kind of companies can be more powerful than governments. So it’s a good thing that large countries, or unions of countries, attempt to push back a little bit on their power.

I think EU has an easier case, because the way I understand it, in the EU anticompetitive behavior in itself is illegal, while in the US, as long as you can argue the consumer benefits (eg Amazon selling stuff at a loss), it’s no problem.
There's no amount of money you could pay me to do this with Kubernetes. Like, you could offer me double my salary, and I'd laugh.

The only answer that makes any sense here is Ansible.

Arguments:

Way simpler

Can fall back to using plain SSH if things goes really wrong

No vendor lock in

One less bit of technology in the mix to go wrong

Very boring, which means very reliable
> JSR: [...] many people are both excited and scared by the potential [of
ai]. People doing surveillance, [are] seeking ways to manipulate
public opinion and perceptions [...] We need to be extremely vigilant
toward [...] signs that big companies are doing business with players
that are going to be putting these things to surveillance or
information environment shaping purposes, and we need to be incredibly
skeptical around promises that the technology can be somehow built or
promulgated without those abuse risks in it.

I'll add a couple of other ideas on top of regulation.

Education [0]. In Britain we have the NCSC, who are a slightly less
conflicted version of GCHQ/MI(n) charged ostensibly with what my
colleagues term "civil cybersecurity" - their job is to actually
protect real national security; of the citizens. We need more of
that. We need governments weighing on with funding for digital
self-defence.

Investment in counter-surveillance.

Another way to crack this problem is to actively fund anti-spyware.
Making it better and cheaper than the predator's wares means the fight
can take place in the market. Two problems with this are that it fuels
an arms race, and that it requires true integrity of NCSC like
organisations to actually defend citizens (including politicians and
activists) against its domestic counterparts. That tension is not
impossible to manage and aligns with a mature 'checks and balances'
model.

Given the history of the anti-virus industry I don't hold out much
hope for the latter. The former is difficult because it means
governments taking a positive ideological position on digital rights.
But if Biden is already on that track, why not follow suit in Europe?
What concerns me is that the motive is fear rather than care.

[0] https://cybershow.uk/blog/posts/election-disinfo
What alternative do you propose? To do nothing? We organize into democracies, where everyone votes on representatives, which rule the controlling institutions giving permissions (or not) for such undertakings.

It's surprising to me so many people are angry over the sky being polluted visually, and not over common air poisoning by burning fuel, river pollution by dumping waste, ocean and sea pollution by ship transportation, plastic pollution, and many other... Rain water is already above (arbitrary) safe toxicity level and so shouldn't be drunk... So what you're doing is you're in a house fire and complain on some noise. This doesn't mean of course you're wrong: the pollution is a problem to astronomers and to the safety of space ventures.
There is a single thread executor crate you can use for that case if it’s what you desire, FWIW.
They got it right as you said, it just took a bit longer. That doesn't contradict what I said, humans can get things right very reliably by looking over the answers especially if you have another human to help look at the answers. An AI isn't comparable to a human, it is comparable to a team of humans, two ChatGPTs can't get more accurate by correcting each others answers but two humans can.
What is this? Am i missing something or is this a nothing post? Just some vague twitter post promising something with no links or further info. This borders on spam.
> The problem is that containers are excellent, and IMO there's a gap in the market between "I want to run one container" and "I want a fully managed k8s cluster"

A single container: Docker

A few containers on the same node: Docker Compose

Containers across multiple nodes with load balancing and networking: Docker Swarm (with Portainer to manage it)

Alternatively, Podman is also pretty nice.

If you need something that runs not just containers in clusters: Hashicorp Nomad

If you want to go for Kubernetes but without it being too hard: K0s or K3s or MicroK8s or RKE (with Portainer or Rancher to manage it)
Show HN: A Quick AI Personality Quiz
If it could, how would AI perceive your personality? Or your habits? Take the AI Personality Quiz to find out. It's quick, anonymous and free.

I was interested in seeing if LLMs could put together a list of effective questions if they were provided with concrete psychology texts to reference. Using puppeteer to scrape open source psych texts, I used a simple RAG implementation to prompt the LLM to generate questions. You know, not necessarily the 'buzzfeed icebreakers', but questions that really delve into personality traits at large.

I've got the best results with GPT-4 with Mistral coming in second but with a much larger delay. Hoping to get my hands on Claude 3 to see how it works against that.

So far it's been incredibly accurate for most of my friends and family. Check it out and let me know what you think!
Congratulations, very interesting! More details on what I think..
I presume that the poster did not get the job. The correct answer is that while addition and subtraction are mutually order independent addition and multiplication are not. This cannot be implemented for a value that allows addition. You need to create a new type of value "multiplyable" and implement multiplication only for that new special type of int. Otherwise you'll end up with meaningless race conditions in the case,of multiple clients.
practical question - if i wanted to just point a camera at a roomful of people and have a model count the number of raised hands vs the number of people... is there a model that can do that well? what is this kind of problem even called?
> I’ve never heard of “счастливый” being used to refer to any kind of luck or even allude to it

"счастливый случай" (lucky chance), guy probably meant
None. The software container image is the best bet but you need to keep the image and not only the building scripts.
i have seen dependencies being installed when using scoop
for example an app might need ffmpeg in the system
You can find links to sponsor the project here [1] in the section "Sponsor this project" at the bottom right of the page.

[1] https://github.com/gildas-lormeau/SingleFile
Excel will literally use a different value separator depending on the locale of the machine (if the decimal separator for numbers is a comma and not a dot, it’ll use a semicolon as a value separator instead of a comma).
Wayland is perfectly ready to be used for normal desktop applications, but the devil is in the details.

Lately, I struggled with:
(1) a flickering bug in the NVIDIA driver only affecting Xwayland
(2) streaming to my TV via SteamLink
(3) reduced performance (compared to X11) on very old (2013) hardware

I fully support the idea of Wayland, but it needs to be adapted better for games.
I love the DMA. But if you have to launch a long, sprawling compliance investigation the minute the law enters in force, it might mean you didn’t write it with enough precision…
Heh, to someone not overly familiar with North American geography, the clear cutoff between off-polar orbits and the few exceptions almost looks as if they decided to turn around at the Canadian border.
SPQR 1.3.0: a production-ready system for horizontal scaling of PostgreSQL
But how do I get a .venv with a new/different version of Python in your setup? And how do I add some kind of Python version requirement in my project?
> LLMs are plausibility engines.

This is one way to look at LLMs. But it doesn't automatically impose an upper bound on their capabilities.

Humans are reproductive organisms. This is also true. At a glance, it would seem that humans could not evolve to be intelligent. They are only selected on their reproductive abilities. But obviously the categorization, while true, doesn't impose an upper bound on human abilities.

LLMs are evolved to be as efficient as possible at retaining knowledge.

A simple strategy for retaining knowledge is memorization. Neural networks definitely can do that.

A different strategy for retaining knowledge is using algorithms. Neural networks can evolve to retain knowledge using algorithms too. For instance, it has been shown that a small neural network evolved FFT-like structures to perform addition. It started out with memorization, which was far from perfect, but later in the training it switched to an algorithm using FFT for addition which produced perfect results.

I think the better LLMs retain knowledge through sophisticated compression. It involves building a world model and ways to relate the input text to that model.

I see it as the building blocks of a reasoning machine. It is incomplete and buggy, and the current architectures might hit a ceiling soon, but nonetheless it is a completely different thing than pure memorization.
Having seem 5 at this point (mostly pure luck), I would spend 20 hours driving to see one. I'm doing 8 and at least I'll get a neat camping trip out of it if the weather decides to be a nuisance.
Good point. I guess the world recognizes that MS isn't quite as dominant as it was before - aleast on the operating systems side with Apple and Linux gaining reasonable share
i wonder how much these changes are costing Apple vs how much they make in Europe. would be interesting to know if there's an amount of compliance costs and complexity that could see Apple leave the EU market!
Why does being an employee of a billionaire matter? I could be a janitor.
There is a subtler issue. Even if your average input and output rates are OK, the lumpiness (stochastic variations) in input and processing rates can cause queues to build up.

In the simplest example, with "well behaved" arrival and processing rates, and a single server (an M/M/1 queue), the average queue length is 1/(1-mu) where the utilization mu = avg arrival rate / avg processing rate. So as the arrival rate approaches the processing rate the avg queue length becomes infinite. In reality, you want to keep the average utilization below 80% to keep queue lengths reasonable.
The biggest gripe I have with every "new" language, be it a lisp, c-derivative or some variant of javascript is that I rarely see a comparison side by side of something useful on any of the first 3 pages of the documentation.

I see a hello world. I see some obscure (to me) syntax. I see talk about how this will solve world peace.

But never "here is http.c and here is http.$newlange" side by side, this is how they perform, these are libraries and these are language functions.
…or it means that subjects didn’t take it seriously enough or are ready to die on this hill.
Pyinstaller, provided you build it in a reasonably old glibc to avoid glibc incompatibilities. I know that is a caveat but it is a one time build time operation.
Those are proof of concept builds now and will eventually hopefully replace indygreg's builds.

Not only does the format need to exist but the service of building and publishing them is needed too.
What does checking whether companies actually complied with a law that's been published for years have to do with precision?

(Lack of precision tends to be a US legal weasel word actually meaning "you didn't leave us loopholes to exploit".)