skysight-inc/HackerNews huggingface dataset:
This is the strongest argument against claiming "using" or Python's context managers are RAII.

RAII naturally composes because a container has to clean up its memory, and it has a well defined lifetime.

Python has a very straightforward model for its context managers, two magic methods:

def __enter__(self):
...

def __exit__(self, etype, eval, tb):
...

To handle many resources being released, the stdlib prefers a more direct approach using a special class:

with ExitStack() as stack:
files = [stack.enter_context(open(fname)) for fname in filenames]

And it makes sense. You probably don't want regular containers to have yet another magic method defined on them, and there is no clear single behavior the a container's __enter__ and __exit__ method could have.

And it doesn't compose in other ways. In async code, for instance, there's a completely separate mechanism with `async with` that calls __aenter__ and __aexit__.

It really comes down to the fact that when objects have an ambiguous lifetime, which is a consequence of garbage collection, you can't have RAII.
You could argue that site rules are optimized for advertisers friendly content. (I don't actually know Reddit's rules)
Is there no GUI?

GUI is very important when you get past the IFTTT and into more IFTTTIFTTTIFTTIFTT workflows. The GUI makes the workflow understandable. And huginn has indicators that enable you to measure progress or identify errors on a diagram.
I started just quoting them back prices when they send me random emails like that. What'd you think, they disappear quickly!
Hmmm I see. Reading up on it it seems to enable generic code deduce info or assume info about stuff (as in assert). Rust uses proper traits for that instead, basically having lifted traits to a first-class language feature. But there is only a barebones set of traits available in the standard library, mostly the ones needed for language or std features. Any traits only needed for generic libraries are left to crates to implement.
Given the timing this is an indirect response to https://blog.domenic.me/hacktoberfest/

HN: https://news.ycombinator.com/item?id=24643894
Reddit: https://www.reddit.com/r/programming/comments/j2ux69/digital...
It takes hackers 1 minute to find and abuse credentials exposed on GitHub
Doing anything illegal with transactions on a public ledger strikes me as foolhardy.
That is certainly interesting, though the fact that we have heavily conflicting data concerns me.

I'd look at the source, except it's hidden in Statista, behind a premium subscription. Wow, that's kind of dangerous.
The only thing I worry about there (i worry a lot...), maybe this dispise in the child can trigger to find out what really goes on. (Cannot explain well, its like you need to ban swearwords otherwise they wouldnt have any emotional power)
1 - Just like manual memory management isn't good in all aspects and before the FOSS wave there were companies whose only business was selling specialized versions of malloc()/free().

2 - Really? Here is one to start with, https://github.com/ixy-languages/ixy-languages. Enjoy the RC high performance from Swift. Additional SIGPLAN and ACM papers can be provided. The fact is that when RC gets fine tuned for performance, it is a tracing GC in disguise, with its background threads for deferred releases, like C++/WinRT is currently doing with COM/UWP.

3 - It takes some time to catch up with 25 years of libraries, OS and IDE support
On low pixel density screens, pixel perfect bitmap fonts are great. On high pixel density screens, it works the opposite way: antialiasing looks fine, and scaled up bitmaps look bad.
I'll never understand how Reddit remains so broken in so many ways.

I've been using Reddit Ads recently, and the UI for it barely seems to work. The dashboard updates days later with incorrect information. Crazy for their main revenue source to be so flakey.
Tours of Duty: The New Employer-Employee Compact
Just get pihole and put it on your network. Roku and Amazon Fire Stick are constantly calling home. Even every interaction with the remote is logged and sent back.

You can see it happening and block it. Roku also shuts down and stops you from using many apps if it can't call home for a long time.
Although as an afterthought I wouldnt know what this would be for a faang company? Black turtleneck? Hoodie? :-)
This is getting ridiculous. Goyal isn't the terrible person you make him out to be, not by a long shot. Somehow recently HN commenters have had a lot of fun cherry-picking every single instance of him not communicating perfectly sharply, in his impressive multi-decade-long career as an open source maintainer and giver of free things. Stop doing this please, you're making the world just a little bit worse.
What number of people actually get cut at google? Have there been enough people hired by them for long enough for us to have statistically significant evidence to support this. One assumes there aren't lots of redundancies at Google in the way there would be at an iBank or similar.
>> Bread made without salt also doesn’t work. You get a brick.

A relative of mine has kidney disease so I've been baking them wholemeal breads without any salt at all for the last few months. They come out fluffy and springy, like orindarily salted bread.

I have heard what you say before, many times. I've looked around at bread-making forums to find bread recipes and there's often discussions about "can you make bread without salt"? Curiously, most of those threads are full of comments that state categorically that bread can't be made without salt (because it will turn out bland, it will over-ferment, it won't have the right texture and so on) but I very, very rarely have seen any comments saying that someone tried to actually make bread without salt and somehow failed. Pretty much the only case I could find was of a lady who ended up with very sticky dough and then realised she hadn't used any salt.

Bottom line, "you can't make bread without salt" is some kind of traditional wisdom that people repeat often but attempt to test very rarely. I've tested it thorougly for several months and it's false.

Edit: Oh, actually now that I think of it- you don't have to take my word for it. Traditional Tuscan bread has been made for generations without salt:

https://www.thegrandwinetour.com/en/popular-foods-of-italy/w...
> You can become productive in Rust in less time than they will be able to ship Valhalla.

Yeah, but they'll ship Valhalla before you rewrite your existing 4M LOC Java application.
Seeing many people surprised or like "finally someone said it", I thought this was very common knowledge? I might have been in some specific communities at the critical point 2-3 years ago, where bootcamps and other educators would advice new devs not to go to StackOverflow but instead go to Github. It didn't occur to me back then that the consequences would be so bad.
Pre-existing T cell responses in 81% of unexposed individuals
You couldn't make that argument with the amount of porn that Reddit has.
I do wonder how long Boris is going to last as PM before he's thrown to the dogs by the 1922 committee. I assume once the steaming pile of shit that is Brexit is somehow "completed" by the end of the year he will step down rather than be replaced. If there's anything the conservatives have been good at over the past 10 years it's recognising when a leader has had their time so they can pivot to someone new.
Why is your startup not gaining traction and things you can do about it
A corporate knowledge database. I don’t think it is trying to replace google right now.
I think it depends on the target audience. If it's math grad students that have had a first course of DG and probability and statistics, then it's elementary. I think the statement that it's self contained is practically incorrect, it's hard to believe that someone that doesn't already understand manifolds and connections can get a good enough intro to tackle IG from the overview in those notes.

Addendum: What I mean is that you can get much more abstract and take many more things for granted than it's done here. It's like reading an elementary introduction to the geometry of schemes, even if it's elementary there is a bunch of stuff that has to be assumed as known, even if the explanation of schemes per se is elementary
YouTubers are upscaling the past to 4K, but historians want them to stop
Yes. This is called secular stagnation.

https://en.wikipedia.org/wiki/Secular_stagnation

http://larrysummers.com/wp-content/uploads/2014/06/NABE-spee...
Please point to where I suggested that it's not possible to want or have both. The operative word in my comment is "to focus on".
True.

I don’t think experts honestly thinks you can hammer the virus to zero though based on our knowledge of human behavior.

Case in point, HIV has killed around 50 million over the past few decades, and we know exactly how it spreads, and it is quite easy to stop. If we can’t stop HIV, without a vaccine there is no way we can stop something airborne (which we now know SARS-CoV2 is).
Don't know about the OP, but there are some rarer cases, like dynamodb, where more indexes means more $, you can avoid creating a timestamp column & new index by having a sortable id column.

But even without the need to sort by id, one of the advantage is that sequential ids makes it easier for databases to fetch data, as data stored ends up being more sequential in disk as well.

More reading on that:

- https://eager.io/blog/how-long-does-an-id-need-to-be/#locali...

- https://www.percona.com/blog/2019/11/22/uuids-are-popular-bu...
2020: Stellar Explosion for president!
> he said that it's the most advanced language today when it comes to optimisation. Don't know if that still applies.

I wrote quite a lot of HPC-like code lately. Can confirm.

The reasons include first-party support for hardware intrinsics on all platforms (SIMD is the most important, but also scalar stuff like popcnt, pdep/pext, etc.), full control over RAM layout which allows to optimize data structures for cache friendliness, and the ecosystem of high-quality third party libraries.
Where Are the Deepfakes in This Presidential Election?
That may be the intention, but what's happening is basically vandalism: https://github.com/search?o=desc&q=is%3Apr+%22improve+docs%2...

~1000 single line/word pull requests in the last 3 hours, almost all worthless rubbish. The scale of the problem is pretty severe.

To pick a single example: https://github.com/Geng-WD/websiteTest

A little personal Java project, unchanged in 3 years, where a new "contributor" has submitted a pull request where they add a comment with their own name in one commit, and then remove it and replace it with "Awesome coding website" in a second commit. 19 hours earlier another new "contributor" submitted a pull request to add a completely irrelevant mock gym web page (and they've done the same thing to a bunch of other randomly chosen repos).

If these people had to demonstrate valuable contributions over a longer span of time, I don't think any of this nonsense would be happening. There's no reason new CS students can't be respectful and put a little effort into doing something worthwhile, and they'll learn a lot more than from this mindless spamming.
> Delivery speed depends on which courier you choose. I’m in London and often get boards within a week via DHL, or 2 weeks with the cheaper shipping option.

So, even further from "dirt cheap". And it's still not even in the same ballpark as going down to the store.

> If you just want to play around with simple circuits then sure, use a breadboard.

And what do you think beginners are going to do? Of course there will usually come a time where you need a PCB for something, but the longer that can be delayed, the more likely that they'll actually get past the hurdle.

> There’s nothing “special” about a hot air station.

It's another thing to buy, another thing to need to store somewhere, and another skill to learn.

I'm not saying it isn't valuable, but there is also value in a gradual learning curve.

> It's easy to learn how to solder SMD components. Beginners will screw it up, but that's the whole point of being a beginner, right?

See above.

> It doesn't only apply to your first order. I've ordered at the $2 price many times.

That hasn't been my experience.
and done well. Over the kind of coffee that matters. Nice job.
My co-founder and I have built https://peerwyse.com to help with these conversations by letting you think about who your peers are. We are intending to pump out blog posts with some of the great advice we've collected from our user interviews over the coming months.

If you'd be willing to let me interview you for our startup my email is on my HN profile.
Isnt this a ToS Violation?

> Actions should not be used for:

>...

> any other activity unrelated to the production, testing, deployment, or publication of the software project associated with the repository where GitHub Actions are used.
I’m also speaking from the hobbyist point of view. There’s obviously nothing wrong with using protoboard if it works for you. Here’s why I don’t.

First, virtually none of the components I want to use are available in DIP packages. E.g., there are many great, very cheap, ARM Cortex microcontrollers that just don’t come in DIP packages.

Second, I have fewer problems with mistakes when I use PCBs. The EDA software checks that my board matches my schematic, so I only have to worry about errors in my schematic. And it’s not that difficult to make small corrections to a PCB with bodge wires if one or two connections are wrong. I’ve certainly made PCBs with errors, but I’ve never made one with so many errors that it was entirely unusable.

Third, the end result is a nice, neat, durable PCB, rather than an ugly tangle of wires. And other people can easily make one using your gerbers.

Fourth, you can use switching regulators and other layout-sensitive components.

For these reasons, I’d encourage any hobbyist to take advantage of the incredible service provided by Chinese PCB fabs. You can do so much more with a custom PCB than you can with protoboard.
57 deaths isn't a lot (in statistical terms) but this figure reminds me of the missing bullet holes:

https://medium.com/@penguinpress/an-excerpt-from-how-not-to-...

How many injuries (some likely to be very serious) are prevented or otherwise mitigated by car seats?

I also seem to recall some old story about the introduction of helmets to combat and the "surprising" result of injury increasing (but can't find it now). As in of course injuries increase when the previous result would have been death.
We learn faster when we aren’t told what choices to make
Thank you, great feedback
Interestingly, the site rules happen to create communities that are almost entirely advertiser-friendly. What a complete and total coincidence!
Has anyone considered IFTTT may be using the reddit accounts for comment vote manipulation? It obtains full scope oauth permissions that last indefinitely.
Then remove the classes, static inheritance via template arguments, method dispatch via type parameters (very CLOS like), class member functions, iostreams, .....

Plenty of SIGPLAN papers to one educate themselves about what OOP is all about.

OOP is not MFC alone, apparently those that learn languages on the trenches without referring to them, never get to appreciate the wealth of information we have available.

Not surprising, given how many misunderstand "whatever my compiler does" for what ISO actually says.
There are several seats you can buy that will fit 3 across even in a very small car

https://www.thecarcrashdetective.com/3-across-installations-...
I haven't used Buffer, I searched Buffer at Github Actions, but there is no actions yet, but it seems that it's easy to support Buffer, I'll add it to todolist.
This is so specialized, I really can't think of a use for this other than for the one who wrote it.

Thanks for sharing though, it's always interesting to me to get to know the workflows of other people!
You’re right, but the odds of that happening are likely very low for the typical entheogenic plant enthusiast in Ann Arbor.

From the article:

ANN ARBOR, Mich. (AP) — The city of Ann Arbor has decriminalized psychedelic plants and fungi, including magic mushrooms, and police officers will no longer make them an enforcement focus.

City Council voted unanimously Sept. 21 in favor of a resolution declaring it the city’s lowest law enforcement priority, MLive.com reported. It means that authorities won't investigate and arrest anyone for planting, cultivating, buying, transporting, distributing, engaging in practices with or possessing “entheogenic plants” or plant compounds.

The resolution defines entheogenic plants as plants and fungi that contain indole amines, tryptamines and phenethylamines “that can benefit psychological and physical wellness, support and enhance religious and spiritual practices, and can reestablish human’s inalienable and direct relationship to nature.”

The move applies to ayahuasca, ibogaine, mescaline, peyote, psilocybin mushrooms and other substances with hallucinogenic properties considered illegal under state and federal law.

Additionally, the city council called upon the Washtenaw County prosecutor’s office to halt prosecution of people involved in the use of such plants and plant compounds.
Parquet files and data sets on a remote file system with Python's pyarrow
> So what?

Because after that it’s technically not a bread, it’s a brioche. As much as applesauce starts to be an Apple jelly.

Yes it’s your stomach and you pick what you want to eat but it is deceiving. The Irish court is not saying to stop to eat at Subway but to give the right info to me as a customer about what I am going to eat.
It would make having a third child more costly, not alter people’s preferences. (If chocolate bars double in price, that doesn’t influence your wish for chocolate. It just makes it more expensive to satisfy.)
Publishers worry as ebooks fly off libraries' virtual shelves
ANS Forth is the standardised Forth dialect. Gforth and JonesForth are solid Free Software implementations.
For how long though?

"While we're in alpha we are free to use. In the future, we will charge for hosting."

https://supabase.io/docs/pricing
I noticed the guardian now wants you to register for free so as to enable personalized advertising - I guess they are no longer bound by GDPR.

on edit: as people don't seem to understand why I would think the Guardian is no longer GDPR compliant, relevant section

https://gdpr-info.eu/art-7-gdpr/

When assessing whether consent is freely given, utmost account shall be taken of whether, inter alia, the performance of a contract, including the provision of a service, is conditional on consent to the processing of personal data that is not necessary for the performance of that contract.

it is obviously not necessary to get my personal details to show me the article, but they make me giving the personal details (which they will use to provided targeted ads, so sharing the data, conditional on giving access to the article)
They've only had 3 leaders in the last ten years - Cameron went after losing the Brexit referendum and Theresa May's departure was pretty slow and painful for everyone.
We use the [fast] flag in comments when we want to skip all tests and CI checks and deploy quickly in case of emergency bug fixes: https://koj.co/en-ch/blog/fast-github-actions-deployments-fo...
Collection of Music and Noises for Working from Home
I absolutely agree - I call this field-not-yet-factory. In a factory those sort of differences will be autoamted away In the "field" they are left to the skill, discretion, whatever of individual workforce.

Frankly this costs the construction industry a fortune - work done substandard has to then be corrected later at great expense, so the driving goal will be towards a "robot construction worker" - but getting there you can imagine is problematic.

Pre-fab buildings have existed for a century by now, and they do work. However, they have a negative market reaction in most locales, and the cost saving again is not huge. so here we are.
Yup, yup. The real efficiencies in insurance come from data, not models. This is mostly true because the models which can be used are massively regulated, and must be explained to regulators (which sounds like a fun job).
> When the brightness of the star Betelgeuse dropped dramatically a few months ago, some observers suspected an impending supernova—a stellar explosion that could also cause damage on Earth.

Why do people keep fretting about Betelgeuse?? No, it's extremely unlikely it will harm earth when it goes nova: https://arxiv.org/pdf/1406.3143v2.pdf
Nice to see Reddit as a good place. For all the darkness, online, there can also be light.
Mi Band. $25, weeks of battery life and data can be extracted locally.

They've tried to make usage of 3rd party apps harder with the latest version though (color display). It can still be done though; the old versions are excellent (Mi Band 3)
What’s frustrating is that it’s not part of the $21/month. I have that and have been trying to get pricing info for a few weeks. I’ve gotten mixed messages that it costs nothing extra and just uses Action minutes on their price schedule or that it costs some unknown price that is extra.

My impression is that they haven’t picked pricing yet.

It frustrates me when the price answer is “contact sales and let’s talk about it.”

These marginal services really depend on the price, I think.
+1 for [skip ci] convention
FYI: You can still create an account without an email. Just leave the field empty at signup
Especially interesting since Google now owns smart sheet.
Occam's razor suggests that any social media site that reaches a certain size becomes hostile. That's why no "new reddits" could gain traction without becoming just as bad or worse.
It goes into the repo in the .guthub folder as an action.
Does the vdivps instruction set the division-by-zero flag? If so, I don't think compiling code that doesn't divide by zero into code that does is correct.
The $2 offers are time-limited. They have nothing to do with how many orders you've already made. I've made lots of orders with JLC and I can still sign into my account and get the $2 rate. You've also made orders with them, it seems. Are you saying that you don't get the $2 rate if you sign in?

I think where we disagree is that you think that beginners should delay using PCBs, where as I think that the sooner they move to using PCBs the better. I certainly regret that I delayed doing this myself.
Haskell typeclasses are quite close to Rust traits, does Haskell count as OOP then?
What would be the attack vector in this case? Assuming that it's a vulnerability rather than an actually malicious package, how would an attacker exploit something running on your CI server? The only way I see is if they already have the ability to modify your source code, at which point it's of course already game over.
Is it perhaps due to wealth aggregation? If the ultra-wealthy are hoarding money and not spending it with the same per capita velocity as the average person, then there’s less money “flowing” even though there’s more money around.
Well, to be honest, when I moved to the UK from Greece I was shocked at the awful quality of supermarket bread like Hovis and the almost complete absence of an alternative from a proper baker's (where I lived, in any case).
Beware. Information-diluted long form.