skysight-inc/HackerNews huggingface dataset:
Wow - someone shares my view!

I use pyenv + direnv to automatically configure my Python interpreter and virtual environment for each repo. It is pretty painless.

In addition to the redundant tools you already mentioned: conda.
John Carmack has written about it and agrees with you with the caveat that functional programming alleviates or even eliminates this kind of issue. AKA if your extracted procedures are just functions, then it can improve your code. And since this is Elixir we are looking at presumably mostly functional code.

http://number-none.com/blow/blog/programming/2014/09/26/carm...

I want to add a third condition that makes this decision easier IMO, because I think it is insufficient to say "if it is a pure function you can extract it". It can often be the case, but it can also lead to what you describe regardless.

It is insufficient if the extracted function is just a one-off helper. The remaining downstream code should read as an _abstracted_ form. Meaning the naming of the functions is clear, uniform and in the best cases they represent a domain layer: A mini-language that communicates clearly what is going on, but draws away from the details. And most importantly it should follow John Ousterhout's proposed rule about interface surface to implementation depth ratio, which should be kept as small as possible.

To the example: I don't think the amount of cases handled should have any implication on extracting functions here (as mentioned in the example). It would still be clearer to just return the data directly. Nothing is gained until the body of the functions themselves have enough _depth_ to provide a useful abstraction, the function names would naturally fall out of what they provide instead of just being a different way to communicate their body contents.
a few years back working on Java project. Used H2 instead of postgres, and included H2 db as in application memory access. It speed up quries tremendously. There is just no beating in application db.
I have been using it most recently to shield myself from an avalanche of Depp and Heard trial clips seemingly created to support Depp.
> separating development dependencies

I just have:

requirements-dev.txt (dev only requirements)
requirements.txt (top level requirements)
requirements-freeze.txt. (all requirements frozen)
why did they call it pyenv when it has nothing to do with python environments, well at least the existing python virtual environment nomenclature
Numberphile have done a pretty good interview with him which is worth a watch. There is both a full length 1 hour interview [0] and a cut down interview running 18 minutes [1].

[0]: https://www.youtube.com/watch?v=QNznD9hMEh0

[1]: https://www.youtube.com/watch?v=gjVDqfUhXOY
> I think it's worth tempering the language here.

Normally I would agree with you, but not in this case. Software patents need to die, and anyone who tries to extract rent through them *is* a parasite. Especially if they employ mafia-like tactics like those patent pools. Oh, quite a nice codec you have there; it'd be a shame if anything happened to it.

Nowadays you can't even fart without infringing someone else's patent. So, sorry, but I'm not going to apologize for calling them parasites. This is one of very few strong opinions I have, and is a hill I'll gladly die on.
Does anyone know what happens to the fish this oil is extracted from?

If it's sold to us, it wouldn't have any oil in it, now, would it?
Prosperous universe is just the spreadsheets part of EVE lifted into its own game
That isn't how collateral works, so you really are just making stuff up. If you did start doing this sort of thing as a bank you would attract regulatory attention pretty quick.
My deep belief is that there must be zero tolerance policy to anyone who is within the nation's borders illegally, or tries to cross illegally. There must not be any "asylum seekers". Trying to cross the border without proper papers? You are not let in regardless of the story you tell. Crying to cross outside of designated point of entry? You get a bullet. Every section of the border must be marked, monitored and guarded 24x7 with personnel that shoots first and asks questions later: there may not possibly any legal reasons to cross outside of checkpoints.

People must be checked in the streets, and yes racial profiling is perfectly OK in that process just to make it more efficient. Everyone must wear papers with them. These papers must contain biometric info and be checkable right on the spot. People caught without papers must be detained until they are able to prove they are in legally, on deported otherwise, or kept indefinitely if it is not knowable where to deport or no country would accept them - an equivalent of no-nonsense, no-paperwork lifetime sentence. There must be a sufficient supply for that - large, cheap to maintain, profitable gulag-style concentration camps.

People brought illegally as children should not be exception, but their parents if caught must face a death sentence. And yes citizenship by birth must be scrapped in countries where it is still a thing, it will remove most of the motivation for illegal immigration in the first place.

Illegal immigration is a crime. Always have been. People who defend criminals of this sort are doing it for morally corrupt, unjustifiable reasons (mainly because these people vote for them - and yes i believe a very strict voter ID, probably requiring two different federally issued picture IDs, one of them is biometric, checkable on site, must be required). It has to be stopped.

And yes surely using innocent electronic methods to find and deport them is completely OK. It's not a problem if it's done on home soil: these people are foreign enemy.
He says America is not collapsing despite the failed coup and the growing chorus of people who perceive things are fundamentally wrong within the country. He talks about the economy and in this case it’s not about the economy. It’s about soon living in a country where in one state you can do something that is legal while in another state you can be executed for it. It’s about living in a country in which voting rights have systemically been watered down and in which neither the House or Senate has proportional representation. We are entering a period of religious minority rule.

The sum of these things indicates that absent major structural reforms in how apportionment occurs indicates that a breakup is a realistic outcome.
Two of the last three houses I've lived in had front panels that no longer fit, so you needed to take care when operating the breakers. In the older one, we tripped a breaker and about half the lights in the house went out. I went hunting for it and eventually went to flip off the main to start a more thorough check, only to find that is what had tripped, leaving half the house on... About half my 120 and all my 240 breakers were wired direct to the bus bypassing main. I'd love to hear a pro's stories. I bet they see really weird and terrible stuff.
My issue is mostly that they don't at least have a non-cryptographically secure method of simply putting an image or a stamp on a pdf. It's such a useful thing. Instead, to import a stamp like a green check mark into Preview, you'd have to print one out and then hold it up to the camera, which is absurd.
>The only explanation

I am generally of the opinion that Youtube is up there with Facebook in responsibility for eroding democracy worldwide with their filter bubbles so while I get a lot of value from all the educational and entertaining content I consume on there, there is little love lost from me.

However, in this case I think there is another explanation which I think at least is the official one: dislikes were used to bully people. I don't know what the scale of the problem was but I can imagine it was a genuine problem and that they genuinely wanted to solve it. That's not to say that there weren't financial concerns as well, but I am willing to give them the benefit of doubt here.

By the way, I think the rationale was similar for hiding vote counts on this very site and I guess they concluded that it worked, given that they stuck with it.
The legalese and marketing terms CCTV companies use to describe audio capture is, "situational awareness"
I don't think broadcast executives would love TV ads having likes or dislikes visible to viewers on their TV screens.
Google's fairly recently acquired Snowflake is their answer to MongoDB in the cloud.
I switched from conda to pyenv after they changed their license
Yeah, just like in the stock market, also expect to loose 75%... UST is already back at $0.92 though...
It should be possible to identify these people very easily with a SQL query. To qualify, a business had to have been running for some time (years) and have payroll. So run a query for "loans issued to entities with banking history < 1y and w-2 withholding payments == 0".
My reading is that was the intention though, it was supposed to be for White House guests to grab an album to listen to, but that didn’t last into the Reagan administration.
Apple to push its Services business further into streaming and advertising
It's really serious? Wow! Not even Microsoft TPMs write such nonsense.

Forcing people to have a single ID across the web is a terrible idea. Having multiple disjoint accounts makes it much more difficult to track your activity online. It's not worth killing privacy just to stop a couple of annoying spammers.

Of course Google/Facebook/Microsoft love the idea because it makes tracking user behaviour much more easier.
Three people commented on my calling code reviews a waste of time. To kick off my discussion, I should reveal that I stopped doing code reviews 20 years ago. That actually turns out to be significant. Here's why.

For the first 20 years of my career I worked at 5 different places and so have some experience with different development cultures. They all did code reviews and they all had the same flaw - they focused almost exclusively on all the wrong things. There would be endless arguments about indentation, braces placement, variable naming and so on. A little bit of the time was spent on what actually matters - the implementation. C++ (which was hugely popular in the 90's) made this even worse - now people could argue about whether a function should be overridable (virtual), whether members should be private, and on and on and on and on. After a few years of working on our own internal framework and working with commercial frameworks it dawned on me that nobody got it right. Meanwhile all these inane arguments led to time being wasted, projects missing their dates, team members arguing over stupid crap - ugh! I saw this with multiple teams across multiple organizations. Different people, same problem.

So what happened 20 years ago? That's when what we now call CI/CD tools first started appearing (remember Cruise Control?). With that we saw the advent of automated unit test frameworks, tools that could check the code against coding guidelines, and tools that could measure the amount of CRAP (Change Risk Analysis and Predictions, remember Crap4j?) and assess the security risk the code imposes. All of this is automated. I saw that automating the code reviews could get rid of a lot of the negativity, be objective, and focus on the implementation and quality of the code. This is the way.

When code is pushed to the repo I have evidence of it's quality: I know it conforms to our coding conventions (which I'm not a big believer in, but some people like to die on that hill), it's been tested (we require 40% test coverage and getter/setter tests don't count), it's CRAP score has been assessed, and it's had a security scan looking for vulnerabilities. All automated.

When working with junior developers they get immediate feedback on the quality of their code and can fix it. If they don't understand how to fix it then they reach out to one of us and we can help mentor them as to what is being reported and what the actual issue is. It's all very positive.

What I should have said then was manual code reviews are a waste of time - you want to automate that activity! I don't ever want to see a code review activity scheduled on my calendar!
People overestimate the presence of minorities, impeding equity and inclusion
Updates work about half the time for me on mini-conda, but they break the other half of the time. When I look up the issue, I am not alone. I end up re-installing it a lot.
Love me some KRAZAM. It's such niche humour there's nobody I can share it with.
YouTube keeps declining in quality. One of the more random things it does to me is keeps directing me to Richard Wolff videos and I can’t stand that guy… it’s super annoying. If a video ends, it’ll start auto-playing a Richard Wolff video and I have to change it constantly.
No, the person I’m thinking of is his successor. Ive ruined a lot of UI, but I’ve known his name for many years.
"Our employer could not use information gleaned through software surveillance to demonstrate just cause, much as police officers can't introduce evidence obtained illegally in court."

Interesting that you should mention this, as police have been known to use "parallel construction"[1] to get around such attempts to restrict what they're allowed to do.

If companies can still surveil their employees, they might also resort to something like parallel construction to come up with other excuses to discipline/terminate their employees, even when the real reason they did so was a result of surveillance.

[1] - https://en.wikipedia.org/wiki/Parallel_construction
Fair enough, I actually do `requirements.txt` and `requirements-freeze.txt` for top level and then everything. But honestly it works very well.
If we're designing a system that relies on an unconventional and otherwise quite rare use-case of a dependency in order to make critical long-term stability guarantees, I would rather that dependency be SQLite, for sure.
GM Reveals More Cadillac Lyriq Specs
I don't like Quanta. They always try to explain some super specific cutting edge new stuff that nobody has any context for and it results in fake understanding. It's an aesthetic of understanding, science porn if you will. There should be way more pop science stuff that would explain old (decades or centuries old) concepts to the lay public instead of the hottest new thing of the day, where the incentives are huge to overhype for career reasons. "News" don't mix well with science.
What are some other games where spreadsheets help? I'll start:

- Kerbal Space Program. Figuring out the sizes of different stages, how many solid boosters to add, etc.

- Factorio. Ratios of different factories, mostly for creating science packs.

- Cookie Clicker. Figuring out what to buy to get the best marginal cookies per dollar.
It seems unfair to blame science and scientists for how their work is reported. Scientists are skeptics, and are fully aware that the latest press release is not the “last” word. Reporters are not teachers - their job is to tell stories that sell ads, not wallow in subtlety. If you want to learn about new science, stay away from the popular press.
How do you make sure that transitive dev dependencies end up in requirements-dev.txt? Do you manually say "dev dep X depends on transitive deps A and B, so I'll put X, A, and B in requirements-dev.txt"?
I believe that was because their most successful fund was the retirement fund for employees, or something along those lines. I heard they only lost this case because of a clerical error.
Apple Restructuring Services Team to Focus More on Streaming and Advertising
Is this[1] the best resource for understanding TPU (or TPU-like) architectures in general?

I would love to see a TPU implementation in the style of the Nand2Tetris[2] CPU, reduced to its bare essentials for learning purposes.

Are systolic array processors the best place to start for this kind of info? Thanks in advance if anyone answers. :)

[1]: https://drive.google.com/file/d/0Bx4hafXDDq2EMzRNcy1vSUxtcEk...

[2]: https://www.nand2tetris.org/course
DeepMind Trains AI Controller for Nuclear Fusion Research Device
Interestingly, I've also seen a lot of EVE friends that have gotten jobs because of their EVE connections (logistics, computer security, state dept, ...)
Yup, instead of providing a reasonable recurring "stimulus" income directly (along with suspending rent/loans) during the emergency, PPP loans funneled massive amounts of money into "business owners" pockets.

The loans were meant to be used for payroll but the process was so opaque and full of loopholes that business owners could simply play a shell game and keep the funds, or some people even created businesses to receive it.

What irritates me is that this is another instance the heavily flawed "trickle down" concept. Companies time and time again act against the best interest of individuals. PPP only further enriched a small subset of business owners at the expense of individual taxpayers.

A clear wink-and-a-handshake "deal" to funnel huge amounts of government money into corporations with minimal oversight.

If the money had gone directly to people instead, it could have been spent as normal, and that would have done more to help local SMALL businesses stay afloat. Plus the business owners who had to close for lockdowns would have been receiving regular benefits too and rent/loans should have been suspended.
If all you have to encourage people not to use those loopholes is an appeal to their morality, then you should not be surprised to find a bunch of amoral people and amoral corporations ignoring you.

The rich must be forced to do the right thing, otherwise they will not do it. Expecting otherwise is lunacy. Maybe one or two foolish and good ones will try to do the right thing, but they'll be swiftly out-competed in our hyper-efficient economy by those willing to break rules and cut corners.
The average price over the previous month (with Meta at least)
I lost my phone on a business trip. It was a nightmare. Don't use your phone as a 2FA for everything. It creates a devastating single point of failure.
Even in those states it's only illegal if you're not aware or don't consent. Very easy to add a "you consent to our surveillance" clause to your contract. Pretty good odds a lot of us have them in there already if we read carefully.
That doesn't sound like "arbitrary". In fact it sounds very "reasoned".
Palantir’s Crystal Ball Needs a Shine
So wholesome haha
pyenv can compile Python versions that might not be available with "apt install" yet. And you can have multiple minor versions available (3.7.8 and 3.7.9, for instance), if you ever need it.
> - Environments, you don't need anything that isn't bundled with python, `python -m venv env` is the "official solution" and works really well.

Except when you run on Debian based systems, where you need to install the module separately for the OS Python

$ python -m venv env
/usr/bin/python: No module named venv
No, I don't agree.

If you can't describe the operation of putting a file in a folder and then sending that folder to your colleague for work purposes, and have faith that your work colleague will do the job as needed, then neither of you are ready to work with computers.

Yet, just today, in a company that has been operating for over 50+ years, I observed this very interaction occurring. 20 minutes of explaining how to wrangle files and folders, sheesh ..

This fault lays at the feet of operating systems designers, who have not fixed the faults in their abstractions before adding new ones. Don't even get me started on the Dropbox palaver ..
> Chief Executive Officer Alex Karp brought up the threat of nuclear war twice in the company’s latest quarterly call Monday morning.

Yeah, I'm sure nuclear war is good for forward earnings.
And yet I wonder why this is supposed to be an integral part of the Python ecosystem.

Q: Now you want to build your Fortran extension with a compiler supporting OpenACC. What now?

This should show relatively clear that this tool is just an edgecase of a quite general problem. I recommend a general solution (like spack).
If you use FIDO keys as a backup second factor and keep them somewhere safe I'd argue that's strictly better than having a phone alone.
Yes. Sorry I was wrong.
I don't know if it's "superior", but it helps you manage / install / uninstall / set system Python versions, as well as virtualenv features. That's it.
Deploying Django to App Engine with GitHub Actions
> Also have you proof that Go will die under large memory usage?

The Debian binary-tree test is designed to create a ton of allocations and stress the GC. Go comes in at 12.23 seconds with Java at 2.65 [0]

Discords famous article about moving a service off Go because of GC issues [1]

I think there is definitely enough evidence to suggest that Go’s GC does have performance issues and doesn’t give you the knobs to tune it.

[0] https://benchmarksgame-team.pages.debian.net/benchmarksgame/...

[1] https://discord.com/blog/why-discord-is-switching-from-go-to...
how is a physical yubikey any different from a loss POV?
You don't need any of those tools. One can use virtualenvs to avoid global Python pollution, but that's it.

I've used poetry, pipenv and others... Nowadays my opinion is that I want my package managers to be simple.

For each app, I mantain requirements.txt, requirements.dev.txt, requirements.test.txt... I edit those files manually and only use pip freeze for pinning requirements.freeze.txt

For libs, flit + pyproject.toml is a breeze.
No. Sorry I was wrong.
You're going to get far less heavy metals in algae than in fish. Supplements may concentrate things, but with fish you're adding concentration on top of concentration.
Just so it’s extra clear, once the key on your Secure Enclave is unlocked, it then decrypts the repository of passkeys on your drive and then sends that to connect to the service.
Life imitating art imitating life.
Purely player created. They're basically guilds in other games.

There are some built-in 'NPC Corporations' that you start on, and default back to if you get kicked out of a Corp, but they're basically just placeholders.
> insane compounding effect of a better funded society

this "compounding" is not captured by the private individual, where as the compounding from the saved taxes is.
There were definitely some missteps but given that these problems are global I don't think you can really pin it too tightly on any US policy. The main drivers by far are the pandemic and the war in Ukraine. Both black swan events.
We did solve the pandemic quickly. The entire population was vaccinated in a matter of months.
Isn't the Omega-3 to Omega-6 ratio the more important over just consuming enough Omega-3?
You mean like when the US occupied Vietnam and prohibited a revolution? Like that?
Check Growling Sidewinder for lots of DCS videos (a lot of them guns-only dogfights, but still): https://www.youtube.com/c/GrowlingSidewinder
And this is not a Python problem either. It's a general problem.
IMHO it’s solved by installing different python versions using the OS package manager, like `dnf install python3.8 python3.9`, and then creating virtualenv using whichever version you need, like `virtualenv -p python3.9 venv`
The Nighthawk looks ugly as sin to most people, which is probably why it doesn't bet as much love. The B2 Spirit is what I imagine the Nighthawk looking like if it weren't so angular.
There are a couple of interesting options in a similar space:
BedrockDB ( https://bedrockdb.com/ )
Dqlite ( https://dqlite.io/ )
Rqlite ( https://github.com/rqlite/rqlite )

I'm interested in how this performs and particularly, what are the tradeoffs relative to the other options above.