skysight-inc/HackerNews huggingface dataset:
> Good dependency management means ...
> it is possible to safely evolve and update your environment when new versions of dependencies become available.

The post, despite its length, doesn't really spend time on this aspect, and I think it's one of the weaker areas.

Suppose my library depends on both A and B, and both of A and B depend on C, and in the current version of my code, there's some set of versions that matches all declared dependencies. But A releases a new version which has new features I want to use, and also depends on a newer version of C than B supports. I'm blocked from upgrading A with the normal tooling, unless I either ditch or modify B.

This can be a problem in other ecosystems too, but better tools support working around it. In the java world (and I may be out of date here), the maven-shade tool would allow you to effectively use multiple versions of C, e.g. by letting B use its older version but re-package everything under a non-colliding name. Or perhaps I depend on library B and B uses C but I don't use the parts of B that interact with C. I could build a fat-jar for my project, and effectively drop the parts of B that I don't need.

I think this is also most of the time in principle possible in python (though perhaps some relevant static analysis of seeing what is actually used in more difficult), but the ecosystem doesn't really support or encourage it.
I threw away my smartphone 4-ish months ago, and I have 50% more motivation, 50% more headspace to focus on things, and 50% better moods most days. The attention economy, especially in social media, is a plague.

It wasn't always this way. I did digital detoxes every few years for about two decades. For most of that time, there were always subtle positive impacts of switching off. But nowadays, the positive effects are not subtle at all. They are very significant.

I am impressed we let a few companies commodify and commercialize human attention and human connection to this degree. Humanity has been done a great disservice in both areas by them. One day, this period of mass harm will be a chapter in history books, I am now convinced.
Replace shooting with fire, flood, earthquake, tornado, etc

IMO the objection is dumb regardless, but maybe that will help translate.
Well, it depends. If those people are willing to accept our differences, then I reciprocate, and we can be friends. I accommodate them, they accommodate me. But if gap is too big to be bridged (they have a completely different personality), or they don't want to reciprocate (they insist on doing things their way because obviously that's normal and better and everything) then I just stop caring, and treat them as necessary evil. Coworker is passionate about ruining a project and manager won't do anything about it? Not my problem, just make sure that my suggestions were written down and then rejected. I'm not paid to do engineering, I'm paid to put up with stupid people and office politics while doing minimal amount of engineering. Aunt feels the need to spread the word of Jesus? Well, looks like next time I won't make it to visit her, and if I absolutely need to because of complex family relationships, I'll just nod and smile while being mentally absent.

At the same time, I refuse to spend my free time with people who challenge my patience. There's a clear distinction between professional/family me, and the leisure time me.
"You don't know what caused the breakage, and you don't know how to go back to a working environment. "

The author would be well served by using the first person and not including us in his uncertainty.
Thanks for this! I hope to put it in practice soon!
Fwiw, at the bottom the author recommends uv in almost all situations. (Except for non-Python dependencies, in which case Pixi)
That's why I have a requirements folder with separate files (eg - dev.txt, prod.txt) for various installation needs. If you want to include test dependencies in development, just add it into the file like you're installing a regular requirements file:

-r test.txt

And, to double-down, if you read the pip documentation (the second sin of software development?), you can use things other than pip freeze. Like,

python -m pip list --not-required

That option flag is pretty nice because it excludes packages that aren't dependencies (aka - the primary packages that you need). If you do that you don't to worry about dependency management as much.
I uploaded a picture of my dog, and laughed out loud at:

> The dog's economic status and lifestyle are unclear, but the setting suggests a comfortable environment.

He does indeed live the good life!
Do you recommend something different than the article?
There is something very click-baity about articles like this.
There always seems to be the implication that these examples are completely independent emergent behaviour, like the AI has suddenly acquired self awareness and a need for self preservation from nowhere.
Usually when you did deeper you find the entire process was guided, or the AI was given an objective, and carte blanche on how to achieve it, along with privileged data and admin access that it did not need to achieve it's goals.
The machines, believe it or not, still do exactly what we tell them to do.
As an American, I'm at a loss trying to figure out when phones started being allowed in school.

Back in my day, all electronics had to stay in your locker except your calculator, including pagers, personal organizers and for the very few kids who were wealthy enough to have one, phones as well. This would be about the time that Motorola and Nokia were selling giant bricks that they called phones.

Edit: and no, school shootings had nothing to do with the change. We'd gone through Columbine not long before, and despite the media spamming everyone they're very rare even today.
I am not an expert but I think it may be more nuanced in my opinion. Fast food started in the US in the 70's. Other nations followed after some time and I do recall seeing a funny chart ... not sure if I can find it tonight but it is an overlay of when people started eating fast food and when there was a dramatic increase of type 2 diabetes. One graph followed the other perfectly. There is a time window offset and I think that's why people have a hard time grasping the cause and effect. Other countries have similar graphs and they have the same time window offset but the graphs map onto each other perfectly with that same time windows offset. It's only gotten worse since then. A bored journalist at Ars should try to find those graphs.
Venvs are so clunky and probably the biggest stumbling block for beginners.
There was a proposal for a directory-based node_modules analogue which was unfortunately rejected.

I think that would have been the single biggest improvement to the Python onboarding experience ever.
"There should be one-- and preferably only one --obvious way to do it."

It was originally not a bazaar but "batteries included" where the thing you wanted to do had an obvious best way of doing it. An extremely difficult property to maintain over the decades.
I think 'pip freeze' was introduced later and requirements.txt was not designed with such a use in mind. pipenv and other tools have lockfile equivalents for a while.
But clearly not the same personality
And that makes this, what, the 100th package management solution for Python? A big reason why Python package management sucks is because there are as many package managers as there are frameworks in JavaScript. Nobody ever knows what is the standard, and by the time that information propagates, it is no longer the standard.
I have a longstanding hunch that the whole “teenagers need more sleep” thing is greatly exaggerated and it’s just that teens just stay up too late because they’re extreme stimulation seekers. Phones have made things worse, but we’ve had TVs, etc for a long time.
I was stung on the stomach and side ... It bent me over in the water then somehow I crawled up the beach and laid down.
you cannot possibly be serious, right? no “learn from my mistakes eh?”

if I am a heavy smoker, heavy drinker etc I have to make sure my 11-year old lights up with me and cracks open a bottle after a long day in school…?

still hoping you are joking though…
10 hours later:

Invoking SAT with clause count: 9661561

Invoking SAT with clause count: 5164645
You can use 2 separate requirements files no?

Pip install -f requirements.txt

Pip freeze > requirements.lock.txt

Pip install -f requirements.lock.txt
The data science uses are all using it for glueing a bit of data massage/data gathering into their high performance math/ML libraries.

Django users are using it natively, and cherryPy/etc. Python full-stack maybe, but they'll have DB drivers and JSON parsers probably from C.
Principles of Educational Programming Language Design
Hi Koji, this looks like a fantastic tool! I think it will pair nicely with Locofy (https://locofy.ai) for handoff from design to AI-generated code to really simplify the frontend process!
I’ll be sharing this with my design team!
> entropy is the ability to extract useful work from a system

https://www.damtp.cam.ac.uk/user/tong/statphys/jaynes.pdf

The amount of useful work that we can extract from any system depends - obviously and necessarily - on how much “subjective” information we have about its microstate, because that tells us which interactions will extract energy and which will not; this is not a paradox, but a platitude. If the entropy we ascribe to a macrostate did not represent some kind of human information about the underlying microstates, it could not perform its thermodynamic function of determining the amount of work that can be extracted reproducibly from that macrostate. […] the rules of thermodynamics are valid and correctly describe the measurements that it is possible to make by manipulating the macro variables within the set that we have chosen to use. This useful versatility - a direct result of and illustration of the “anthropomorphic” nature of entropy - would not be apparent to, and perhaps not believed by, someone who thought that entropy was, like energy, a physical property of the microstate.

Edit: I’ve just noticed that the article discussed links to this paper, and quotes the first sentence above, and details the whifnium example given in the […] above.
In data science mostly as glue code by design using frameworks which do the heavy work in native machine code.
> it's been heading there since ~2013

that's empirically not true.
Skipping over most of this (the vulnerability is not really investigated at all in the stream). But the gist of it is that "access devin's machine" links are tough-to-guess but unauthenticated URLs, so anyone who has that URL has all the same access Devin does to your account.
I mean I wouldn't trust either entity. If you're serious about maintaining some semblance of privacy then you should opt for a local solution such as BakLLaVa or Llama-3.2-Vision models.

https://huggingface.co/llava-hf/bakLlava-v1-hf

https://huggingface.co/meta-llama/Llama-3.2-11B-Vision
I think the emergence of the LLM-integrated IDE can be leveraged to transform a powerful yet unsafe language like c into a safe language.
After Weeks of Drone Sightings, New Jersey Remains on Edge
Can you elaborate on the difficulties of setting up Java projects? I have never worked in Java at an enterprise level, but have tinkered a bit. IntelliJ makes setting up a maven-based project pretty much one-click. But I’m guessing that the complexity that you’re referring to wouldn’t be apparent to someone like me who is only using it for small hobby projects.
Apple could release a fully functional iMessage for Android if they wanted to- hell the EU council would send them a cake if they did that.

One can speculate why they don't.
Anecdotal but I went to a fancy NYC private school (on financial aid) and what I heard was the teachers actually got paid less than public school teachers + lacked the union protections and whatnot. But it was worth it for the nicer environment and dealing with motivated students with parental pressure behind them.

Although you could make money in extra ways by networking with students for $300/hr SAT tutoring and such.
If your platform is supported by LLVM, Zig is worth serious consideration. It is able to target any of the operating systems you mention, from any of the operating systems you mention. Linking to the syscall interface / libc / C libraries is straightforward, exporting functions which respect the local ABI is quite simple.
What did you replace it with (if you did edit: scratch that, I brain froze and was thinking of "did you replace it with a regular phone") ? Most accounts I read of people ditching their smartphones mentioned they started carrying an ultra light laptop or small candy bar computer (for instance). Basically increasing inconvenience to reduce usage.
This is a great video - places o1 in context. with openAI, google and meta releases going at it at this pace, anthropic is next up..
Elon Musk slams SEC as agency threatens charges in Twitter stock probe
Also as an American, my experience was that the majority of high school students didn't care about the rules on phones. I attended high school when Motorola Razr flip phones were the hot new technology, and kids used them in class all time. People learned how to do T9 texts without looking so they could slip their hand into a backpack or pocket during class. There were even ringtones high pitched enough that adults typically didn't hear them. All of this under the threat of phones being confiscated if caught.

I'm not defending the use of cell phones in class. But there have to be more effective ways to reduce their use among students rather than simply banning them.
The cost of using Windows over Linux per device is significantly less than one month's salary for an engineer.

Even if you are cost sensitive, the OS is not at the top of expenses you need to worry about.
how do you deal with otp, mfa, mandatory id scans, face scans, compulsory apps, etc.?
The point is that you should focus on the bottlenecks, not on making every random piece of code "as fast as possible". And that sometimes other things (maintainability, comprehensibility, debuggability) are more important than maximum possible performance, even on the GPU.
The EU doesn't care. The DMA doesn't apply to iMessage, its market share is too small.
Thank you to summarise the video. No trolling here: I am surprised that no one asked an LLM to summarise the video, then post the result here as a comment (with LLM "warning" of course).
When Facebook bought WhatsApp, either Facebook or WhatsApp was the top social network in just about every country. It was a critical purchase for Facebook that locked out competitors globally for years. I can’t find the map now; if anyone knows what I’m talking about I hope they can share it.

Free or cheap texting hamstrung WhatsApp’s growth in some countries like the US. It was better in countries where cell plans were expensive because data didn’t meter per communication like SMS and WhatsApp was efficient.

WhatsApp isn’t an everything app like WeChat.
How much time do you spend tracking this?
Does anyone know of a way other than Raman spectroscopy to classify graphene monolayers? I recall making the graphene was simple but confirming it was the real chore.
No.

I prepay for all domains five years in advance. I have a calendar reminder to add additional time every year in September. Plus I have auto-renew enabled, but, I don’t trust fully trust it. Hence the calendar reminder.
Library Thing Is Down?
https://isdownstatus.com/status/librarything.com
Drying meat out over smoke will help to preserve it, as the CO and other emissions and heat will kill off bacteria and slow the growth of new colonies. It's pretty easy to discover by accident- meat that's been overcooked on a wood fire will last longer than meat than meat that isn't.

Other cultures did things like ferment meats and salt cure them, but if you're inland away from easy access to excess salt, it's pretty hard to do that and not get food poisoning.
you can accomplish a whole lot of the same keeping the phone and deleting all social media apps and accounts (what I did). I still use my phone as a map and camera and many other things … my screentime went from 7+ hours to hardly ever over 40 minutes daily
The Qwen family of models are REALLY impressive. I would encourage anyone who hasn't paid them any attention to at least add them to your mental list of LLMs worth knowing about.

Qwen2-VL is a decent vision model. You can try it out online here: https://huggingface.co/spaces/GanymedeNil/Qwen2-VL-7B - I got great results from it for OCR against handwritten text: https://simonwillison.net/2024/Sep/4/qwen2-vl/

Qwen2.5-Coder-32B is an excellent (I'd say even GPT-4 class) model at generating code which I can run on a 64GB M2 MacBook Pro: https://simonwillison.net/2024/Nov/12/qwen25-coder/

QwQ is the Qwen team's exploration of the o1-style of model that has built in chain-of-thought. It's absolutely fascinating, partly because if you ask it a question in English it will often think in Chinese before spitting out an answer in English. My notes on that one here: https://simonwillison.net/2024/Nov/27/qwq/

Most of the Qwen models are Apache 2 licensed, which makes them more open than many of the other open weights models (Llama etc).

(Unsurprisingly they all get quite stubborn if you ask them about topics like Tiananmen Square)
Python deps are alright unless you’re updating celery.
Fires, floods, earthquakes, tornadoes do not happen several times a week in the US, unlike mass shootings.
> the audience is at least partially composed of people with little technical background or AI bros.

I have never seen the term "AI bros". What does it mean?
5) there is no every system, there is only the universe in which all systems increase in entropy even if individual objects (block of ice) do not. You're bleeding off entropy into the universe you can never get back.
Have you tried using pip? Or, reading the documentation? It has more features than just "install."

You could try running

python -m pip check

To check dependencies. Or,

python -m pip inspect

To get a JSON output of your current virtual environment.

Or, update stuff automatically:

python -m pip install --upgrade

Or, skip worrying about dependencies:

python -m pip install --no-deps

Or, do a dry run installation with full report on what would be installed:

pip install --ignore-installed --dry-run --quiet --report

And, there's a lot more than that. Pip is pretty powerful and I'm surprised everyone dislikes it so much.

Hope this helps. Cheers!
Show HN: Clipboard Manager Pro
Hi folks, when I stayed in the hospital with my daughter, I cooked up this product in my free time. Even though I was a bit tired, I couldn't stop my ship. It started from my personal demand to manage clipboard history. I am working tirelessly to ship more and more powerful features to help you have a better experience and improve productivity.

Check it out: https://chromewebstore.google.com/detail/clipboard-history-p...
Thanks for the clarification.

My family library is around 1Tb, the weakest device is an iPhone SE, and the most used access is through a web browser.

Does on-device machine learning (provided you're syncing inter-device) work in that scenario ?
I think the main thing is the denunciatory rhetoric. I don't care if you're right or wrong (someone is going to misinterpret that, but it means the same thing as I don't care if I agree with you or disagree—as I've argued elsewhere in this thread, it's not the moderator's job to moderate on that basis). I do care when you hammer hardened talking points indignantly, because those qualities destroy the quality that we want here, quite apart from the content. It's a medium-is-the-message thing, if you like.

Actually, it's even less than that—I mostly just care that you don't primarily do that on the site. A certain amount is tolerable, more than that is not ok, and that word 'primarily' is how we test for that (https://hn.algolia.com/?sort=byDate&dateRange=all&type=comme...). It's not perfect but has proven to work well enough.
Cleverly lawyered weasel words are usually complex, highly specific and don't cover all possible uses.

This statement is so simple and so general that it covers everything.
Funny, I would expect the opposite, or at least there would be a different class of problems with LLM assisted C. What guardrails would prevent this, and if there are no tradeoffs with the power of C, why haven't we put those guardrails on for human crafted code?
Yes it is really part of the thought processes of people I have met too. Really strange how the reality can be distorted to make room for guns.
Static analyzers be entering a new era
Eventually supply plummeted though.
For all 4 of their sample photos and one that I uploaded, their thing failed to notice that there were humans in the pictures. It said the opposite, that there weren't any. I'm disappointed. The one I uploaded is one that I took some years ago, but I've forgotten the time and place, and I'd like to have had it tell me.
TIL I am Hispanic or Latino. I am also of Middle Eastern descent. My Latino co-worker is also of Mediterranean or Middle Eastern descent.
I believe and hope that uv settles this discussion.
There's probably a solution that creates a virtual midi device given a keyboard.

But it seems a bit counterproductive to train on a weird setup. You don't want to contaminate your muscle memory.
I meant to say white shoe. Sorry about that.
Doh! fixed now, I think. Thanks!
I track my migraines on a markdown file, but that’s as far as I go
it is hard to criticize this library rigorously, broadly i think the second sentence here is what’s important: core.match seems designed to demonstrate the power and potential of macros, which is decidedly not the same as being designed to solve some specific problem or use case. So it has a lot of quirks and rough edges. Nobody ever really ran with it past that to see where it might lead. And whatever that is, it will be subtly different than in langs where it is the fundamental control flow construct
That's a bad developer experience. I'd rather just use uv.
In reality, if you know your requirements up front, you do not need to dynamically allocated memory
4-D chess ?
So with Python dependency management 'there is more than one way to do it':

pip, pipenv, poetry, conda, setuptools, hatch, micropipenv, PDM, pip-tools, egg, uv, ActiveState platform, homebrew, your operating system's package manager, and many others . . .

Relevant xkcd: https://xkcd.com/1987/
Doesn’t screw up your dopamine system
rare as in 1,200+ in the last 4 years… https://k12ssdb.org/all-shootings

that’s about 1,200 more than parents worry about anything else
Cool idea, but the results aren’t particularly revealing
Teenage dogs need more sleep, too. I think it’s a bit of both.
That's not the point. The focus here is on removing the smartphone out of the system, not removing features from the smartphone.
> there is a kind of relativistic Tsiolkovsky equation for mass-energy propulsion vehicles that carry their own fuel

Yes, it's called the relativistic rocket equation.

https://math.ucr.edu/home/baez/physics/Relativity/SR/Rocket/...