skysight-inc/HackerNews huggingface dataset:
> there's no hidden information that comes out later

Sure there is: How well a cable handles being bent, and whether or not it catches fire... Cables and especially chargers are some of the products I'm most cautious about buying from sellers I'm not confident about exactly for that reason.

(not that origin is sufficient - the one charger I have had that got closest to setting the house on fire was a genuine Apple charger [many many years ago, they had a design flaw with a too-short sleeve on the cable on the early Macbook chargers; it'd bend and short and melt])
Because that's extra work done by the DB for no reason if you don't intend on using the Friends field (say, you're only getting user data to render the "Welcome, {{username}}" text).
So the functionality is equivalent, but ruby's syntax is slightly longer. Is there something other than ruby's slightly longer syntax that you find lacking?

Ruby's Method class matches the design "everything is an object" (strings, numbers, modules & classes themselves...). Are regular expressions first class in ruby? There is top-level syntactic sugar for REs (/.../) but REs are just instances of `Regexp`. It's just syntax. I don't think you can argue Python REs are first class: I have to drag in `re` and then `re.compile()` a string (and my editor won't know to syntax highlight metachars or interpolation). I use REs more often than method references in either language...

But I'm not trying to "whataboutwhataboutwhatabout" here. I'm trying to say there's a difference of philosophy. Ruby Methods are just more objects (Method<Object). They aren't some sort of blessed type, just like everything else. Everything descends from Object. Kernel is just a module. Method is just a class. And so on. In that context, what does it mean to be "first class"? Objects are first class and methods are objects. QED. No?

(FWIW I agree on ruby's optional parens, too much inconsistency for a few less lit pixels on the screen).
I think you’re missing their point. They’re not necessarily saying types are not useful, they’re saying types encourages a form of thinking which tends towards class-based overcomplications.

Now this is also a very yagni view, and maybe TFAA uses the structure they build for inspection before the final consumption, but their point that the posted script could be half the size and work the same without loss of readability… is compelling.
You make good points, but on Amazon I just have to assume that all the reviews are fake. I've seen how easy it is to buy fake reviews, the lengths sellers go to get people to leave only 5-star reviews, and Amazon's inability or unwillingness to do anything about it.

Why do you think any of the reviews on Amazon are real? I think any random review you pull up is more likely than not to be fake. Of course, we can't know for sure, but Amazon has simply lost my trust.

I no longer believe any of the reviews on Amazon are real, and Amazon will have to prove to me they are before I ever trust a review on that site.
As soon as they implement that feature they'll be swamped with reports on every product regardless of whether it's fake or not. Rival sellers will use it to try to monopolise a product, annoyed customers will use it to take revenge on genuine sellers, and occasionally people will report an actual fake. Unless it's much better than a simple report function it won't work.
Show HN: Open-source isolated browser and secure doc viewer
Programming notes on OpenType features: Randomness vs Cleverness
https://www.multitran.com — a great Russian-to-many dictionary with examples of use across many professional domains. Also has English UI option.
>But a cable is such a simple item to find out if it's broken, it takes 5 seconds

This is so incredible false, cable quality varies greatly:

- wires, gauge and material. Copper is expensive and some cheat using aluminum or Al plated copper. Gold plated terminals, tinned copper, etc.

- wire material and single/multi strand determines resistance and current rating, along with loses in the cable.

- insulation and sleeves can be made from different materials with a lot of properties, incl. max temperature, flame retardant and so on: pvc - cheap, rubber - expensive, nylon/polyamid - expensive, silicon - very expensive.

And that just touches the basics...
Secure doc viewer: https://github.com/dosyago/p2..git
But a cable is such a simple item to find out if it's broken

5 seconds?!

Poor assumption. You're presuming this is "only the types of cables you buy". Many times I buy cables to do things with devices, for which I have no working cable already.

Examples:

* My device stops syncing with my cable. Is it the device, or the cable? I buy a replacement cable, just in case.

Replacement cable doesn't work. Now I think it's probably the device.

I spent time here, checking to see what's changed, maybe an update, maybe a config setting, maybe something else. Or, is the device just broken? Do I send it away for repair?

* I want a cable to use with something I've had for years. Lots and lots and lots of examples here, all sorts of devices, like serial cables to debug with routers/switches, test cables, even just an ethernet cable, if you may not have had one before.

Now you test, and you can't tell. Is the port on the device bad? The settings you are using to connect? The device firmware? A problem with the port on the computer you're using to connect to the device?

Hours and hours wasted.

Worse, you advocate buying two. Great. This means that no matter what, I'm returning that spare cable. Now it's not '5 seconds' to determine it is bad, it's 'no matter what, I'm spending 20 minutes returning something I never wanted to begin with".

Frankly, I'd rather spend $10 extra on some types/classes of $20 cable, to have it pre-tested even.
Silent Running: The sci-fi that predicted modern crises
What I have seen attempted by the Erasmatron that I haven't seen in "real" games yet, is the ability to create a dramatic setting, with scenes and actors, where the actors are driven by "decorated" simulations.

Decorated simulation meaning that the actor has a data representation of their personality, behavior and motivation, which causes all their actions and interactions with other actors. "Decorated" meaning the story author can define or guide how these interactions - if they happen - will be described.

Rimworld is an example that feels very close. People love and hate each other, get into fights, parties, and go on depressed drug binges. The biggest difference from Erasmatron is that the setting is random (or "procedural" as the kids call it these days) and affected by random events. The interactions run as they may, and are not guided by a world author's desire for a specific setting or dramatic arc.

If Erasmatron it was fully applied as imagined, it would allow you to stage Romeo and Juliet, but explore what happens if Romeo leaves Juliet alone for a week until things calm down, and work on the family relationships. It's quite lofty, but I believe we can still get closer to it.
Thanks, perfect for what I need (offline, single user, simple to use).
Predictors of Conspiracy Theory Belief
It doesn't need to be. Vienna has quite a few of higher-density council housing buildings that are architecturally pleasing, one example is Alt-Erlaa [0].

[0] https://de.wikipedia.org/wiki/Wohnpark_Alterlaa
Study, cited in article, Predictors of belief in conspiracy theory: The role of individual differences in schizotypal traits, paranormal beliefs, social dominance orientation, right wing authoritarianism and conspiracy mentality

https://www.sciencedirect.com/science/article/pii/S019188692...
Okay, hold on for a second. I am the OP. This title is misleading. We didn't say "most". I wasn't able to clearly reproduce this, the people on Twitter are reporting wildly different numbers, some of which are reasonable, and certain usage patterns with heavy swapping have to wear down the SSD. And this also affects Intel macs to some extent.

What we know so far is that some people are reporting completely unreasonable, dangerous levels of SSD write volume, which on some configurations would be expected to prematurely wear down SSDs (which are not replaceable) well before the expected lifetime of the device. We don't know yet what triggers this; it looks like some kind of bug or software combination, but it's too early to have good leads.

The worst example so far is David's, which, if scaled proportionally (by Flash cell wear) from his 2TB SSD to a base 256GB model, would be reaching 100% lifetime usage within less than a year. This calculation is based on an assumption of equal (proportional) overprovisioning for those two models, and an assumption that whatever triggers this behavior doesn't care about total SSD size; these are sensible assumptions to make at this stage but not verified.

https://twitter.com/marcan42/status/1361160838854316032

This is clearly a software problem, and fixable with an update. It's not a hardware defect, it's the kernel (we think it's a VM* issue) hammering the SSD way too much.

There is reason to be concerned, and to make sure Apple fixes this if it is a real bug. There is no reason to be alarmed and panic about these machines. If this is a real issue they have to fix it; they aren't stupid, Apple knows full well that the SSDs in some M1 macs dropping like flies within a year would be a PR disaster for them. What we need to do know is gather data and try to find a way to reproduce this.

* VM means Virtual Memory, not Virtual Machine, in this context, for all you non-kernel folks.
Who knows, perhaps if the minds behind Paperclip had been a little more data-minded:

* today, Z3 might be considered "first real"

and

* today, we might be stuck writing code in a fossilized language lovingly called Plankalkül 58 by its inventors that had so much inertia back then that it stifled all further development in the 1960ies, with the result that all of our 2021 computing would be about as fresh as the 2021 B52.
> Funny thing is Apple internally use Anker cables as they're much more resistent than their own.

Source? Sound interesting!
The Auto Industry Bets Its Future on Batteries
At the very least we could get strict versions of data types, or some sort of key word used in the ddl to specify strict typing.
That still means you are the proper cause of your actions. The preceding history exists too, but isn't very relevant to the process of choice.
Great use of simple reliable tools, ignore the complainers.
Thankfully things in our sector is fairly static in that regard, so this is seldom an issue. That sounds quite horrible indeed.

And yes, a fatter middle layer would be nice. Our next generation software will probably have more of that, this code base is over 20 years old at this point...
I am sorry for missing that. Thank you for correcting.

About friend - I know why he is busy. He is not of the type that makes lame excuses. He will say it on my face if he does not want to do it.

I understand your point though and agree with your judgement. Reason I asked was that I can imagine myself doing the same for someone else. But maybe I am too naive.
I wouldn't really go that far though, as you'll end up with a codebase that the linter likes (and appears clean) but is still an utter nightmare to read because of all the forced indirection. I'm talking about things like: restricting method length to 10 lines, restricting class length to 100 lines, and similar ones that prevent you writing code in a certain way because the preferred approach to writing code is 'out of sight, out of mind'.

Default Rubocop is why you have codebases where code is still complicated, it's just hidden away inside single use modules (concerns) or inside single-use private methods. As far as I'm concerned you just can't defer the architecture of your codebase to a tool like that and I'm sure it teaches more bad habits than good ones.

Instead, decide these things for yourself and keep it in check during code review or the stage before that. Maybe even design rubocops of your own to help. The linter can still do a good job without telling you how to handle complexity.
“Get Rich Sabotaging Nuclear Weapons Facilities”: FinEng and Security Nightmares
No, you can't return it, but at least in EU you are 100% allowed to take that licence and sell it on, no matter what the EULA says.
@scruffyherder: "I had friends do the mail in but, I didn’t care as I used windows under OS/2.. I tried really hard to go full Linux before but compiling all the dependencies of everything got so old quick. Sadly nothing has changed there."

:] you're a really funny guy :]
But, the sentence says “what is now Venice”. It’s Venice now, ant it was Venice then. It’s been Venice for the past 1000 years. I guess that it wasn’t “Venice, Italy”, but “Venice, The Venetian Republic” then, but I ascribe this oddity to there being “Paris, Texas” for the USA audience while the rest of the world knows that when you say Paris, you mean the capital of France and not “Paris, the nail salon down the road”. Likewise, 500 years ago, it wasn’t “Venice, the Venetian Republic” since anyone who would understand what Venice or The Venetian Republic is, would not need any qualifying of Venezia, or whatever local name they used for that city.

Anyway, the OP referred to the weirdest place in the sentence for that qualification because nothing else was qualified (was Alaska even Alaska back then? ;)
I realize this response turned out a lot more harsh than I intended. I was in a slight rush so didn't formulate myself well, didn't mean to be abrasive.
There was (is?) Prometheus, YC W19 start-up with similar mission. https://news.ycombinator.com/item?id=19842240
> The biggest thing that doesn't run properly on here is Emacs.

Time to switch to a real text editor such as Vim then :)

/s
Truebill (YC W16) Is Hiring a Lead Security Engineer
HTML Forms to Google Sheets, Email, Slack or Telegram – For Free
There’s no point in more than two or possible three different scores:

Don’t recommend - Do recommend

or

Don’t recommend - Neutral - Do recommend

It’s rather silly when you rate an app with four out of five stars only to get a “Why didn’t you like our app?” question. And, as an app maker, anything other than a five star review feels like a punch in the face.
> the natural progress is either Python to Java

Python to java is not progression, it’s criminal malfeasance.
I was thinking about building something like this based on Jitsi. But I got 20% CPU utilisation on a 2GB/1Core Hetzner Cloud Instance with only three Test Audio Connections. Wonder what's going on. I already tried to switch off logging but it didn't help much. Do you have Data how much resources you need to host this?
Another trick if you have multiple process (users) accessing the DB and you don't want to lock the DB for a long time, is to insert into a temp table (possibly with a transaction, although the time savings is not as dramatic with temp tables). Then copy the temp table to the main one (insert into ... from ...). The advantage is lets say you are reading in a bunch of items from something else, that will take a chunk of time more than just the DB time. So by going to a temp table you aren't locking the target table for anyone else while gathering the data. Then combine this with flushing the temp table every X rows or X seconds, and you have a number of efficient updates to the table without long lock times.

Also have WAL mode on to get multi-user access going.
I spent some time helping someone get this set up for their music group, and it's really really nice just as a voice chat program. It's amazing how much of the unpleasantness of something like a Skype call goes away with really low latency
AI in the Supply Chain
We both learned something new today. Looks like this is what you want in combination with using an in memory database.

I've been doing a handrolled in memory cache layer to speed data access, but with this, I can just call the db directly and then periodically sync to disk, redis rdb style. Sqlite is a staggeringly good piece of technology!

https://www.sqlite.org/backup.html
Even here in Europe, Amazon still has the monster competitive advantage of Prime. If not for that, I would probably be buying all my gear from Saturn, Mediamarkt, etc.

It's also worth nothing that European Amazon has waaaay less stuff available in general than US Amazon.
Facts and numbers from 10 years as a small software company
I don't want my terminal tools rely on a Python pip library. This Rich really looks cool and is nice, but nothing for (my) server use.

(Thanks to @joseluis who posted about notcurses here)
I've created a room here if anyone is up for it https://jam.systems/hn-9p1r
You may be correct in the larger sense, but there will be multiple teams working on Windows, with non-interchangeable staff. Assuming anybody found this bug before, somebody on the Explorer team almost certainly will have rationally prioritized it.
CoreData is such a awfully engineered piece of software with bunch of pitfalls that you are much better just using SQLite directly.
@srazzaque: "For those situations where someone emails me an Excel or Word file that they would like my edits in, and I'm simply not in the position to extoll the virtues of open formats or coach them in Markdown or LaTeX, I have a Windows VM and office."

Why not get them to install LibreOffice and sent you the spreadsheet in the native format?

https://www.libreoffice.org/
"buried it in the conclusion"

The article has 4 short sentences in the 'conclusion' section which can be found, as expected, at the end of the article.

it really isn't "buried"
I don't know, I just keep using Java and .NET, alongside their top of the line JIT/AOT compilers and GC implementations.
Anyone else find Amazon's comingling of stock to be insanity? It must save them a fortune in operational costs to be worth the amount of counterfeit junk they end up shipping.
DSPods: Podcasts about Machine Learning and Data Science
Hi All,
I recently created an open source website[1] having a collection of podcasts about Machine Learning, Data Science, and ML Engineering. The podcast details are updated daily using GitHub actions. The source is available at the GitHub Repo[2]. Adding a new podcast is easy: just add a simple text file with YAML front matter. I want the website to become a go-to place where people find the next Data Science podcast they want to listen to. I have plans to make podcast pages more informative. My objectives of sharing the website are three-fold:

1. Share this resource with people here who might be interested in podcasts.
2. Feedback and suggestions about what more information can be added to make the discovery and selection process for users easier.
3. If people have any additions to the current list, I am happy to add them.

Hope this helps the community. People on Reddit r/machinelearning[3] liked it.

---

[1]: http://dspods.netlify.app/
[2]: https://github.com/TrigonaMinima/dspods
[3]: https://www.reddit.com/r/MachineLearning/comments/liz35x/d_p...
How is this {better,different} from dogehouse.tv ?
To be fair, never buy 1st Gen of Anything.
With this sort of perspective, why use a database at all? You can store literally any digital object as some sequence of bytes, and that's what file systems are for.

At some point, you actually like for the software you use to actually have meaningful features.
Guide will get you to the next level in your product management career
Any advice for someone looking to do the same as yourself? Looking to do a similar move to the US from UK but not sure how to even start.

I wonder if FAANG type companies are the only viable options for the move over to get a VISA.

As for taxes I think California is one of the special cases where taxes are similar to UK levels but of course having a massive salary boost ceiling helps offset that.
Yesterday, we launched a job board to help Haitian folks get remote jobs
Good that people sometimes remember that a more modern base for physics would be nice.

Doing electrodynamics without using alternating products and differential forms feels so wrong...
The ethical dilemma bit of this is nothing to do with technology, it's about our ability to study ourselves without our findings being controlled by our stupid reactionary politics and lack of trust in our institutions. We don't believe that knowing things helps us any more. The truth or truthes that are out there to discover will stay hidden because we don't believe their findings will ever be more than propoganda tools for a certain political agenda.
> If you can't do the due diligence of even reading the one word that declares from whom you're buying

I'm buying from Amazon. From my point of view the other company is not more than a supplier.

If I am the one at fault is not really the point. I will learn my lesson and shop elsewhere, in the end it is Amazon that suffers: if I shop from a big brand's website I expect them to be the ones to do the job of filtering out the crap, not me.

(And this is not even taking into account the issues of amazon commingling the inventory and not fighting properly the fake reviews)
I've been designing a programming language where nothing is a side-effect – including calling conventions, processor caches, branch predictors, locks, graphics modes, etc.. “Runtime has to be independent of the value of the input” would be how that language expresses "constant time" – and it would take into account every part of the compiler's model of the target architecture (which, by the way, is also described in the code) so for a sufficiently-simple, sufficiently-well-modelled architecture, the generated code could be provably Spectre-proof – given sufficient assumptions (Eis's take on Rust's `unsafe`).

It's very early days, but I hope to get something usable by 2025.
unfortunately the data still has to be in a full 32BPP framebuffer (in order for 2D or 3D Window Managers to write to it).

all the graphics software will write at that full 32BPP rate: it is unfortunately not reasonable to expect all Graphics Software to perform data compression.

yes there will be a few opportunities for compressed streaming, and funnily enough we were just thinking "what if the GPU were to do the same trick as the Amiga used to do, 40 years ago, by following the scan-lines?"

in the case of video playback you might reasonably expect that an area of the screen is "reserved" (not written to) but that when the Video-Output HDL gets to that pixel instead reads directly from a completely different device: one that is formatted already in HDR/SDR or YUV.

effectively this is a modern "sprite" engine.

... but, again, we have significantly diverged from the original "Just Make It Real Simple Why Don't You Just", yeh? :)
Comma.ai, self-driving cars and indefinite optimism
> We can't use `@dataclass` and are forced to write an `__init__` method for each class. But this is good, right? "Explicit is better than implicit"?

I don't think that applies. @dataclass is an explicit wrapper with specific result and can be inspected and interacted with.

Implicit would be something like "when a class has more than one attribute and doesn't define init or repr, add those methods assuming they're wanted/needed".

> The `AstNode` abstract base class becomes completely unnecessary and can be deleted.

You're mixing type annotations with class usage. You can have either one without the other.

For example without AstNode you could still have an `Expr|MethodCall|Lambda` type hint on relevant variables. Or even alias that expression to AstNode without having the class and inheritance.

Finally, classes help describe/construct the structure present in "stmt". Sure, you could replace those with functions, but that means your data is either reduced to untyped / string-tagged lists/dicts, or you're running the exact function immediately inline. It doesn't matter for this toy example, but it would in any practical use of this code.
I mean, the mundane explanation would be that there are simply a huge number of Chinese businessmen, and that by proxy there are a large number of successful ones (and an even larger number of unsuccessful ones).