skysight-inc/HackerNews huggingface dataset:
I think Python needs much fewer packages in its standard library:

- array: everyone uses numpy for the same purposes

- bisect: very niche feature, not a good fit for standard library

- glob: should probably be part of os

- graphlib: why is it part of the standard library? even if you need to work with graphs, chances are you have different requirements or data format

- shlex: again, not really necessary in standard library (unless it's used in shutil, I don't know)

- statistics: should be handled by scipy

And that's just the modules mentioned in this article. There are tons of other modules that are outdated, unused, don't fit into standard library: getopt, curses, urllib (everyone uses requests), xml*, html, tkinter.

What Python should be doing is deprecating those modules and/or moving them outside of the standard library. Not adding more of them.
And if you want to play Showdown, you don't even need to pay for cartridges either. Plus there's no grinding for EVs, IVs, moves, and items.
I do it all the time - I don't know another way if you want to touch type. It creates a symmetry - depending if the letter key with which you need to combine is on the left or the right hand, I will use the opposite hand to press the Shift or Ctrl keys. And the AltGr is an absolute must for me as I need to write accents for several western European languages and the English International with AltGr Dead keys is the best solution I found so far (and I do not understand why it is not shipped with Windows).
CtCI has been first published in 2008, meaning that such interviews had already been widespread for a few years by then. Since then, websites like Leetcode have apparently become viable as businesses. As a career choice, I find it unwise to bet on this practice disappearing anytime soon.
I guess they wanted to raise an exception if the graph has cycles, while at the same time still be able to use the object partially. Then the constructor can not raise.

Also, you don't have to call is_active(), the object itself is convertible to bool. Not sure if that is an improvement.

graphlib is definitely underwhelming at the moment. A standard Python vocabulary for graphs would be nice.
The Arduino portenta boards are pretty powerful. I just don't see where you would want to use one instead of a full OS
Planting trees may help with CO2 in like 10 years when they are big enough, but it will never recreate the cultural diversity of a real forest.

Unfortunately Germany has less than 10% true forest left, most ist just foreign trees maximizing for wood revenue. They can’t withstand a storm or a hot summer (really good with the extreme climate events which are coming up).

Any forest is not a forest.
Just enable ktls and you can sniff all tls-encrypted data directly from the process
Pricing risk is something I assume Pokémon doesn’t have.

But I’m not going to encourage my kids to play poker. I will teach them the game if they want. But without the risk of actual material loss, the game loses a lot. Money is highly emotional. It’s gain or loss, the emotions that triggers, manipulating those emotions in others, predicting their behaviour based on their state, and even simulating “tilt” and presenting an emotional state are all things that is the makes poker what it. Without that it’s a below average game.

And I’m not going to allow children to gamble with money.
Not necessarily every type, but just those that obviously look false: False, 0, null. Empty string iff it's a very high level language. Empty list iff it's a lisp.

But better yet, `if` should only accept a boolean expression. Passing a string to `if` should be a type error.
US $20 for 8 strawberries?[1]. Huh? Strawberries are $4/lb at Safeway. Less if I go to a fruit stand. Of course, I'm in California.

[1] https://www.oishii.com/new-farm
I'm normally a 'fan' of mass produced stuff or at least the benefits of economies of scale, see home growing as an awful (to me) hobby and yet have to admit that homegrown vegetables taste much better to me even though my prior was that it should be the opposite.

Not optimizing for looks, transit and spending more resources per unit of produce are the main factors I suspect for the difference but I'm curious if there are others.
what does "only call at a single port" mean? could they not call at a another port instead of LA? why is that not happening?

and do you mean to spread out load by dropping half the load in one port, and another half in another port? other than not overloading the port with containers, that doesn't really reduce congestion with number of ships trying to get into the port. so it doesn't seem like much of a benefit.

but i also don't see how the jones act would prevent that, they would not be picking up cargo from one US port to deliver to another US port.

or is the act written so badly that you can't even touch two ports even if you are only picking up or only delivering? (i suspect that is the case, but the first question remains. why not use another port instead of LA?)
Human footprints were recently found in New Mexico that were definitively dated to 23,000 years ago so humans have probably been here for much longer than that.
This wouldn't work in the UK where Zebra crossings like this need to be accompanied by yellow "lollypop" lights.
And yet, not competitive. So, there is something missing in your model. It is for you to figure out what is wrong.
Can you use it as an embedded scripting language? Couldn't find anything on the web site.
What's your favourite operator feature?
binary search is standard imo.
I'll add my own data point into the mix. I'm 49, have been married for 22 years, with kids who are either grown up, or well on their way. Throughout my life though, I have been an absolute loner in spirit. I grew up quite isolated, in the UK countryside, and learned to amuse myself early on. My first love was computers, which luckily has served me fairly well, career-wise. I haven't had many girlfriends, and felt very aware of this lack. When I met my wife, I married her more rapidly than I should have, if I'm honest. I had no confidence in myself regarding my ability to form intimate attachments to women, and thought something like "well if I'm married, then that's that problem sorted!". Not so much.

Still, we've persevered, and made it work for 22 years. But I will soon be 50, and have chosen to view this round number as significant. I would like to start living life as I would like it, both career and relationship wise, and am currently trying to plan out what shape that might take. The stories and information in the comments here, are truly fascinating to me, the breadth of ideas being mentioned are a real breath of fresh air, and a great example of what makes Hacker News great (in my view), so thank you everyone.
Yes, they have closed their Russian office and relocated a lot of people.
And that opinion would probably turn grey on HN. At best, it's a not-so-funny joke.
1 GB would require some serious optimization if you want to do some work. But I have a 2 GB machine running Xubuntu without modifications and it is quite usable for some development work (It was bought as a school laptop years ago. You could not use it in school anymore because their stuff requires 4 GB nowadays, but I sometimes still use it just for fun.) I don't think switching from Xfce to sway saves you a whole GB.

Of course there were numerous ways to make a 2 GB machine starve if you wanted to or just don't think what is feasible or not and run several crazy Electron apps or worse. Some lightweight containers are not a problem, I have run those.
Maybe in some dream world. Hospital visits are usually covered, but going to a GP often involves paying in cash and only getting reimbursed later at home.
How Startups Can Survive the Creator Economy Winter
You just go on telling yourself that. The rest of the world will do what it does.
I know you said this, but I want to emphasize that relationship failures do not invalidate the value of that ideal. I struggle to think of anyone who wouldn't benefit from pursuing some kind of family, and I believe sacrificing that pursuit entirely is always a tragic mistake.

Forming loving families is hard. You might not find the right people immediately, and some people are incredibly destructive towards each other. Everyone is not compatible with everyone else. And it is often less painful to live alone than to live with a destructive family.

That means some families need to be dissolved and reconstituted, others need time to heal. For some people there is not enough time, understanding or strength to grow and form new bonds with others.

That does not mean people should give up and live alone. Anyone who believes they will be happier alone is deluding themselves and/or too scared of the pain of rejection and heartbreak. It's worth it.

https://youtu.be/bl5TUw7sUBs?t=60
Can you further define? Sounds like you're looking for an incubator.
Here’s an article from one of the namesakes (the origin story is somewhere on the site):
https://www.texairfilters.com/testing-the-efficiency-of-merv...
This is pretty important right now, since there's tons of micros you literally cannot buy, some venerable 8-bitter lines are being cut off entirely and there's a whole new RISC-V panoply coming down the tracks.

With C, you just need to rewrite the device drivers (because your business logic is portable and unit tested, right?!). In assembly, it's time to throw it all away and start again.

For a trivial programme like read the ADC and do something like alert on a UART, that's not so bad. But some products are a lot more complex than that.
this goes much older than that.
Neither China nor the USA want an independent investigation. So it won't happen.
glob is part of pathlib in Python 3. Pathlib is great.
"anti-abuse fee" sounds fitting. Not a direct translation obviously.
https://en.m.wikipedia.org/wiki/Cross-polarization

proton-enhanced nuclear induction spectroscopy
Nah, teach your kids chess, so that they can exercise their deductive/calculating muscles during that golden phase of childhood in which our brains are malleable enough to easily learn new languages: realize that artificial languages (i.e. deductive systems) are all functionally equivalent, and use chess as just another avenue into building deductive fluency; use multiple such avenues (e.g. music, Euclid).

Call this educational stage "deductive naivety": the child will become good at applying logic to their experiences. They will, shockingly quickly, outgrow this phase, and realize that the world does not lend itself to deduction in all cases. Now we can introduce nuance, distinguish between deductive/inductive/abductive reasoning, and start to introduce the child to the multivariate dimensions of the world.

In this way, the child becomes a curious and rigorous thinker. If you choose poker instead, you'll just breed a gambler.
I liked the SIO system. Device independent I/O was nicely done.

K: Keyboard
C: Cassette (slooooow)
Dn: Disk drive
P: Printer

Today, we have a device called FujiNET. It is basically a serial to Internet bridge.

N: For Network

And most programs just work across the Internet despite being 30 years old. Once the N: handler was done, Atari computers basically are networked.

Programming with the Internet works like serial does, and there have been a couple multi player games written in BASIC that perform nicely.

I plan on getting one for my 800XL one day in the near future.

The FujiNET is being made to worn with other machines too. They all vary in how this kind of thing can be made to happen. The Atari will end up a benchmark, or reference.

SIO today is seen as a very early USB type implementation that offered capability for up to 30 devices to coexist on the serial bus.

Pretty damn spiffy, and I feel it is one of the better features. Each 8 bitter has at least one stand out thing. On the Atari, this is one stand out often underappreciated.

The Apple had slots and an assembler monitor.

C64 had great sound, sprites, nice user port.
Also it is really ridiculous because it goes straight through a rather central part of the city, removing old construction and very close to where a lot of people live in an attractive part of the city.

Instead they could build it a couple kilometers further out to still connect the ring, the distance in drive time would probably be less than 5 minutes.

But they stick to stupid plans they made 10 years ago like they always do in this city.
> Cultures that decouple sex from procreative relationships are in decline.

Ok, so now we're in 1890 or so. Really, this is beyond absurd.

> The literal commoditization of it through legalized prostitution is a merely a specific manifestation of a more general cultural attitude.

No, it means that you recognize that realistically prostitution is going to happen anyway, regardless of what you think or feel about it, so you try to make it as safe for the sex workers as you can and legalization is a very important step in that.

I give up.
I dont understand what the issue is with what I said. The only cost for obtaining digital content is a few clicks of a mouse. I dont mean that the seller thinks the value is 0, I mean that the consumer does. Add piracy to the mix (a few extra clicks) and everything digital can be free. I am not defending this state of affairs, just stating it.

Why does everyone block ads? Why does everyone look for archive links to overcome paywalls? Because they feel that paying more than 0 is a rip-off
0 shouldn't be false. 0 compared to something can be false. Null isn't false. Null compared to something can be false.

The entire concept of "falsey" makes my teeth ache.

Non-boolean expressions in a boolean context is asking for a runtime error.
really fascinated by this take!

is your issue with this project..
being public?
not accurate enough?
shouldn't be pursued at all because it'd never work?

what is the goal of regulation?
1. Download the repo as zip and unpack.

2. Go to `chrome://extensions`, toggle `Developer Mode` in the upper right corner and click on `Load unpacked`.

3. Pick the folder from step one and you're good to go.

On any site, you can then click the extension button and text gets "converted", i.e. the first half of a word is bolded (="bionic reading"). The "algorithm" in this extension is:

const length = word.length;
const midPoint = Math.round(length / 2);
const firstHalf = word.slice(0, midPoint);
const secondHalf = word.slice(midPoint);
const htmlWord = `<b>${firstHalf}</b>${secondHalf}`;
return htmlWord;

Further discussion from a couple of weeks ago:
https://news.ycombinator.com/item?id=30787290
I personally love the (extra)-batteries included approach to the standard library.

Having them included by default is much more convenient; I may want to do some very simple stats without needing all of scipy, etc.
Hopefully not. Because then it were not available internationally.
> The drones zip down curved corridors, mapping them in real time using spinning lasers (LIDAR). At the time, that was science fiction.

I think it was the drone part that was science fiction there, though - the real-time mapping using spinning lasers seems to have been well underway by 2012 (e.g. cf https://ieeexplore.ieee.org/abstract/document/6385501 from 2012 or https://www.ncbi.nlm.nih.gov/pmc/articles/PMC3478806/ which mentions ROAMER from 2007.)
This is what modern (arc/orc) Nim versions do as well.
> Python is the language that gave dynamic typing its bad name.

I don't think this is true at all. There have been people against dynamic typing since it was first introduced, and their justifications haven't changed due to Python. There's nothing about Python's approach to dynamic types that is particularly egregious, in my opinion. In fact, since type annotations were added to the syntax in 3.6 (I think), there is now support for external tools to do some static type-checking (though these are not enforced by the language proper). If I were to point to an in-use dynamically typed language with dynamic type problems, I'd be pointing at JavaScript. The extend of implicit conversions is truly heinous (again, just my opinion).

> I'm not sure dynamic typing is the fault by itself, I guess it's from a lack of compilation phase

I'm not sure I understand this. For a language to be "dynamically typed", it must necessarily not check types during compilation no matter what, otherwise it would be "statically typed". So I don't see how adding a distinct compilation phase to Python's evaluation model would affect anything.

Also, Python does have a compilation phase; it just isn't distinct from the interpretation phase. There are no longer interpreters separate from compilers, as far as mainstream languages are concerned.

> Why is Python so against map, reduce and ergonomic lambdas?

The actual answer to this is that Guido van Rossum didn't want to make them first-class. That's the whole justification.

> Python is much harder to understand and debug in hairier codebases when you add metaclasses, weird backward compatible behaviours, monkey patching, typing woes and an often substandard stdlib.

Most of these sound like problems with dynamic types, honestly.
How much does that matter? Like, if you had to choose between being old and lonely or being old with a digital friend and some megacorp having more of your data... Which would you choose?

I notice a lot of people who use the phrase "selling your data" seem to think that you can't actually sell your data. As in, it's not a good choice to say "I want this service and am willing to share my data to get it."
Link didn't work, would love to get that book.
I disagree, humans don’t need another equivalent intelligence in order to feel love and friendship towards it. My favourite tongue-in-cheek example: humans will feel love and kinship toward cats who can’t talk and to all appearances often couldn’t care less about them.
Just use read with a heredoc. read is a Bash builtin so no process needs to be forked.

https://github.com/helpermethod/up/blob/master/src/.bash_fun...
Exactly, for a short while weird Al alloys were all the rage and manufacturers were advertising new wonder materials or taunting the benefit of Al 7005 over 7020 etc.. Realistically compared to welding, design, etc. the alloy gives questionable benefit for an increase in price and more difficult manufacturing. We see something similar with the advertising of different carbon toray numbers.

The cycling industry is quite interesting. Their advertising is trying to give the impression of a high tech industry with plenty of R&D and every year you read about the most recent "breakthrough" (aero/weight/compliance). However even the largest bike manufacturers have maximum a a few tens of engineers who develop the bikes and components across the whole range. That already tells you how much R&D they can do realistically.
!?!? Lulz. Okay.
They accept Apple Pay, that might help.
To clarify: systemd uses seccomp to filter system calls. Seccomp employs the older BPF, but not eBPF. There was some work done to make seccomp use eBPF, but so far nothing is merged.

eBPF is used in systemd's firewall code though, which allows filtering the IP addresses a service can contact. If this feature is not needed, eBPF can probably be disabled without impacting the other sandboxing features of systemd.
I kind of agree with you. I'd summarize it "lack of knowledge in mathematics" instead of "the code".

But I disagree about the rate of progress in the field. This work is very impressive, I do agree. But I remain skeptical because they only used synthetic data for the robot demo. And that golden necklace can already be reconstructed in similar quality with other tools that use explicit algorithms. For example, the block matching and voxel volume tracing inside Agisoft Photoscan works wonders for reflective mostly smooth objects with high frequency surface detail. And the idea of using known geometry + pictures to estimate a lighting envmap and PBR material maps was already published 10+ years ago. The only difference between then and now is the growth in compute power. We already showed that this works on toy examples years ago, and now we have the compute power to use it in practice.

But despite all that research, give any of these algorithms (including the instant-NGP NeRF, that this appears to be based on) a few pictures of a tree, and it'll fail. What all of these approaches still lack is a way to use pre-acquired knowledge of the real world. And that's crucial to resolve ambiguities, like differentiating between lots of similar-looking similar-colored leaves.
An acre is ~4000m². For tomatoes and peppers 200W/m² is possible.

Still 800kW, but a lot less than you are saying.
Did you take them? Did you get any gold?
Strange selection you got there.

This is what will be (eventually) removed: https://docs.python.org/3/library/superseded.html

> urllib (everyone uses requests)

iirc requests is actually a wrapper for urllib. And there are certainly many scripts using urllib directly to avoid having an out-of-stdlib dependency. The API is not that bad.
Why bother with a big mechanical contraption like this when you can simply stick the leads of a thermocouple in two cups of water?
In socialism, the best way to cut costs is to kill away those who cost the most to keep around. Isn't killing the poor who are the most expensive to keep around best for everyone else? Isn't that the argument for abortion?

If you don't like the outcome, feel free to adopt a different ideology.
Is it like minimalist version of Netdata[1]? Netdata doesn't require fiddling for the most part too, Unless we need to customize alarms, logging etc. It's discovery of services and visualizations for monitoring are excellent.

My only complaint on Netdata is that its resource heavy(especially the Go plugins) and so they're not fit for resource-constrained systems like Raspberry Pi; I wonder whether Cockpit is a good replacement there.

[1] https://github.com/netdata/netdata
...

I'm literally arguing in favor of increasing the asset limit so people don't have to jump through hoops to avoid losing their benefits. I'm arguing against those controls. How are you twisting this around?
What I found more interesting is the French role in both US and India in inciting rebellion against the British

- https://thediplomat.com/2018/04/the-last-time-the-us-and-ind...

- https://aeon.co/essays/why-american-revolutionaries-admired-...
Visual explanations of core machine learning concepts
> t's pretty clear that the grandparent comment means wikipedia doesn't support diverse views on things

It is? Not any way that I read the grandparent comment. Regardless, I would dispute that, unless you're saying the people with 'diverse views' are somehow prevented from contributing to Wikipedia?[0]

> Outside of the hard sciences, and even there with caveats, there are not objective truths, and the point is that wikipedia is not a place where all interpretations get the same consideration.

I'd also dispute this. There are literally thousands of academic disciplines alone, which are incorporated into Wikipedia[1]. As long as there are citations to credible information sources[2], there's no reason not to consider them as much 'objective truths' as the citation sources themselves are are.

[0] Assuming they have requisite levels of credible evidence to back their contributions.

[1] https://en.wikipedia.org/wiki/Outline_of_academic_discipline...

[2] https://en.wikipedia.org/wiki/Wikipedia:Reliable_sources/Per...
I agree with some of these, and some could be consolidated, but the features of `glob` and `shlex` are useful for writing scripts, which I think is a common use for Python. Seems to me that leaving them in is reasonable.

I also think having basic statistic computations is useful. There are people who may want to calculate simple statistics without adding a whole dependency.
Sounds like your brain associates programming to be like a "chore".

Bad associations usually need time to unwind, stepping away may be the right choice. Good luck! :)
Can you really call it a roundabout if they left the stop signs?
Chicago Cops Can Use Fake Social Media Profiles to Spy on You, with the FBI