skysight-inc/HackerNews huggingface dataset:
PoC of running Doom on top of GraalVM
Is this what you are referring to?:

FLP-II-15–5 The vector potential and quantum mechanics
https://www.feynmanlectures.caltech.edu/II_15.html#Ch15-S5

"
Precisely this experiment has recently been done. It is a very, very difficult experiment. Because the wavelength of the electrons is so small, the apparatus must be on a tiny scale to observe the interference. The slits must be very close together, and that means that one needs an exceedingly small solenoid. It turns out that in certain circumstances, iron crystals will grow in the form of very long, microscopically thin filaments called whiskers. When these iron whiskers are magnetized they are like a tiny solenoid, and there is no field outside except near the ends. The electron interference experiment was done with such a whisker between two slits, and the predicted displacement in the pattern of electrons was observed.

In our sense then, the A-field is “real.” You may say: “But there was a magnetic field.” There was, but remember our original idea—that a field is “real” if it is what must be specified at the position of the particle in order to get the motion. The B-field in the whisker acts at a distance. If we want to describe its influence not as action-at-a-distance, we must use the vector potential.
"
Totally agree but now I wish the author would get some kind of small reward for his effort so that he's incentivized to keep writing this kind of content.
let me teach you 4 years of physics and now you can build a rocket that goes to the moon. compiler books feel exactly like this, parsing something seems obvious but most compiler books devote 90% of their content to parsing, but how do you convert something from a class to binary code or how do you represent loops and modules, you don't even know where to begin. I figured out parsing pretty quickly and was able to build a working parser in a week, it took me a good few months to grasp converting that to x86 instructions.
Ask HN: How is your company training you to become a better developer/engineer?
I’m interested in how companies create 10x engineers. To deepen the discussion, you can cover for example:
- What skills
- Training frequency
- How is your next set of skills decided? Is it personalized? Are you involved in the discussion?
- What are the biggest obstacles to your training?
Also, here is an example of 'looks simple' but 'raises many question'

1/ Should it be a discount on future invoices, or a refund (an angry customer will ask for a real refund: aka $$ on their bank account)?

2/ Do you want to keep track of how much has been discounted/refunded to which customer (so that you can identify deeper trends: if a segment is being discounted many times: maybe you can adjust things, or maybe it's fraud?)?
In that case, just erasing a line doesn't help

3/ If you refund, how do you deal with taxes that have been paid already?

Btw, we've written a quick primer on Refunds, Coupons, and Credit Notes: to lay out the pros/cons

https://github.com/getlago/lago/wiki/A-Primer-on-Refunds,-Co...
I think they have split it into far too many small pages, the whole CLI section should be one page, if not the whole lot.

Slight aside though, they have used the Material theme for MKDocs, which is much more than a theme, it's a whole extension package of bells a whistles for MKDocs. I'm not actually too keen on "Material for MKDocs" [0], I like all the clever plugins, but the theme itself I find distracting and too "loud". The theme jumps out more than the content itself.

In the Python ecosystem Material for MKDocs seems to be the leading default at the moment, however I much prefer Furo for Sphinx, it's much cleaner, it's about putting the content front and centre. It does also have a similar set of plugins for Sphinx adding those bells and whistles.

0: https://squidfunk.github.io/mkdocs-material/

1: https://pradyunsg.me/furo/
Check this one, AI generated techno made using the channel HÖR Berlin as the training set:
https://youtu.be/UPs5L-1Amo8
I live in Virginia which the article mistakenly claims to have legalized jaywalking. Jaywalking is still a crime in Virginia but is now only chargeable as a secondary offense.

Virginia doesn't have partial liability in most civil cases. If you are partially at fault to any degree, you will not receive any damages. I know someone that was hit by a drunk speeding driver on a motorcycle but received no civil damages because they were jaywalking and therefore deemed partially responsible.
So crypto is more similar to stocks? Saying they're all scams just because of that seems harsh.
> The C++ compiler and the C++ standard library exist as separate components

this is not really true. Aside from the fact that the standard library need not be a library at all and could just be built-in, in practice the standard library provided by a compiler is intimately tied with that (specific version of the) compiler. libstdc++ uses plenty of GCC specific non-standard extensions and relies on implementation specific and often undocumented behaviour.

Clang tries to implement all the same extensions and GCC developers try not to break clang support too often (sometimes even providing clang specific workarounds or gating out non-implemented features), but as you have experienced, breakage does happen form time to time.
I'm a compulsive project hoarder and they all build on top of each other.
My first project was an open source full stack real-time framework I built about 10 years ago. I worked on it for about a year but it didn't get any traction so I pulled out some of the core logic and turned it into a stand-alone real-time remote event library; then within a few years, it got some traction. Then as WebSockets was becoming mainstream, I migrated my framework from HTTP long-polling to WebSockets but realized that it didn't add much value anymore, so I added pub/sub and RPC functionality to it (I also built some additional components so that it would run as a self-sharding cluster on Kubernetes).

Then I was working in the blockchain space and so I decided to build a lightweight quantum-resistant blockchain using my pub/sub library for peer-to-peer messaging... Then after I finished the blockchain, I decided that it would be fun to build a decentralized exchange on top of it and so I did. It's been running for a few years without issues though it's low volume but the community around it is dedicated.

Now I'm looking for new things which I could build on top of the blockchain and DEX. I'm thinking to use it as a payment system which accepts multiple cryptocurrencies interchangeably. I have a few ideas but I'm more focused on earning money nowadays so I'm hesitant to start anything new. Lol. After all that work, I only earn about $1000 per month in passive income. I'm a brute-force entrepreneur.

It's pretty easy to maintain all this. Like the author says; tests help, but even more important is to keep the number of third-party dependencies to a minimum and to avoid using overly niche programming features or features which are unlikely to be forward-compatible.
Men? Women? So 2019...
That's right, I think. If you replace the "fflush()" (which should have an argument by the way) with "f()" and declare "void f(void);" then the test and the call appear in the binary. But if you declare "__attribute__((pure)) void f(void);" then the test and the call disappear.
Oh, you, IBM.

I'm more of an

$ apt remove --purge nano > /dev/null

man myself.
The compiler didn't find UB. What it saw was a pointer dereference, followed by some code later on that checked if the pointer was null.

Various optimisation phases in compilers try to establish the possible values (or ranges) of variables, and later phases can then use this to improve calculations and comparisons. It's very generic, and useful in many circumstances. For example, if the compiler can see that an integer variable 'i' can only take the values 0-5, it could optimise away a later check of 'i<10'.

In this specific case, the compiler reasoned that the pointer variable could not be zero, and so checks for it being zero were pointless.
I've done 4 on 4 off for the last 8 years and I can't go back.
Great for holidays as you get 6 full weeks off(24 12 hour days) , take 4 off and you get 12 days in a row away from work.

technically 3.5 days worked per calendar week saves on petrol too.
Companies simply don't. If you want to become a "10x engineer" you have to have the ability and the drive yourself.
It looks like a language equivalent to Hare can be obtained by adding restrictions to C++.

Considering the lack of key C++ features (e.g. generics) in Hare and the lack of adoption, and most importantly the fact that you should use a memory-safe language like Rust instead of any memory-unsafe language like Hare or C++, there doesn't seem to be any practical use for the Hare language.
I had really bad "find ." performance until setting up l2arc. Used a Samsung 980 1 TB NVMe for the purpose.
Hey community,

So excited to inform you that Sessions 2.0 is almost here. Your online meetings are about to become legen…wait for it…dary!
Subscribe here to find out more about the updates & the launch:
https://www.producthunt.com/upcoming/sessions-2-0

Something major is about to happen. Stay tuned!
I honestly think that's the truth for the majority of cases like this, or at worst a kind of willful blindness. Of course there are the scammers, but I think they generally produce such terrible work that very few people use it on an ongoing basis. I'm sure there are examples between those two, but I reckon they're few and far between.
I can think of some specific things that clicked over the years , but getting acclimated to programming in general was a gradual process, rather than a "click".
> Another thing is to accept any answer that would explain the bronze/silver/gold.

Then all you would ever need is one guess.
Could I recommend a table of contents?

It looks great, bookmarked.
> Another option is to lay the PCB on a flatbed scanner.

That's detailed in the article.
+1 on the abolishment!

What would you suggest to outsource VAT calculations? We've yet to find a tool / platform we really like, that we could partner with.
AWS Lambda Now Has Support for Node.js 18 Runtime
Why not add .net to the list?

https://github.com/SteveSandersonMS/dotnet-wasi-sdk
OK, yes, they are technically corporations - as am I, a sole director limited company. However, a banking app and an affiliate marketing network are not what I think of when people are talking about 'corporations'.
FORD, GM, Microsoft, etc, etc. No need for the anger, it's just an opinion.
Ah someone else spotted it. The author's code is wrong whether signed overflow is well defined or not.
And sanitizers that throw warnings on undefined behavior do indeed exist.
The other big one is that More is now Less ;)
The ingenious trick at the end: using a lightbox, take two pictutee: one with cirre lighting, and another heavily underexposed. The latter shows everything black but the background, and serves as a perfect mask for the former for background removal.

It's sort of anti-HDR. The author automates processing using imagemagick.
Climate change is coming. And humanity is stupid. We react to most problems when it's too late.
Privacy Predictions 2023
source code ?
Only correct answer in this thread.
But again, the compiler did not find UB through static analysis. The compiler inferred that the pointer could not be null and removed a redundant check.

For example you would you not expect a compiler to remove a redundant bound check if it can infer that an index can't be out of range?
It works well on a mac. Only arm64 is a challenge.
A Stupidity‐Based Theory of Organizations
Summary and Review: https://eight2late.wordpress.com/2013/05/07/a-stupidity-base...
Many are under the mistaken impression that DOS got forward slash as an option character from CP/M or from IBM. CP/M denoted options using square brackets, and IBM mainframe operating systems generally indicate options using parenthesises. (The usage of square brackets appears to be a modification of IBM's approach; I'm not sure why Gary Kildall made that change – before creating CP/M, he'd used IBM CP/CMS at the Naval Postgraduate School, which likely influenced both this option style, and also drive letters.)

My own reconstruction of what I think happened (this was all before I was born, I'm just making some inferences based on what I know about the topic) – Microsoft was heavily influenced by DEC operating systems (Bill Gates and Paul Allen wrote the first version of Microsoft Basic on a PDP-10). Microsoft didn't like CP/M's native option syntax, so for their development tools for CP/M, they adopted a DEC-style option syntax instead. Since many ISVs used Microsoft's development tools, a lot of third party software on CP/M ended up using the same option syntax too. Tim Paterson at Seattle Computer Products was influenced a lot by Microsoft (even before he worked for them), so QDOS/86-DOS/PC-DOS/MS-DOS ended up with the DEC/Microsoft-style forward slash as an option character. When DOS 2.0 came around, Microsoft wanted to switch it to dash/minus, for better Unix/Xenix compatibility. In support of this, they added a CONFIG.SYS setting SWITCHCHAR= to let you choose between forward slash and dash/minus, and an API (INT 21,37) to get/set that config setting at runtime. However, it was decided that the backward compatibility cost of that change was too great, so they pulled the feature from the documentation (although it still existed in the code; in later DOS versions, they disabled the ability to change it to anything other than forward slash, but the undocumented API to get the setting was never removed.)
That can be desirable if the filesystem path to Photos includes a directory named something like "storage". Of course it should still prioritize apps that actually have "stor" in the name, but maybe you didn't have any?
> There's little reason to develop compilers or programming languages when so many already exist.

Ah, so it was probably not necessary in hindsight for Apple to develop LLVM and Swift and for Google to develop Go and Jax? At the time those projects were created, there were already many compilers and programming languages.

> When it comes to ML there really are very many publications by Chinese authors, and many are very good. I'd even say that some of their work is underappreciated.

Why are the publications good?

> I think Chinese industry is very different from that in Europe, the US or Russia--

Why would that be, apart from the one anecdotal example that you give?
They are longer to type than `+`.

It is easy to write unsafe code and difficult to write safe code. As a result, while most mathematical operations must be safe, developers use unsafe operations because they are easier to type and more readable.

Operators like `+` should be equivalent to checked_add().unwrap(), not to unchecked_add(). Why choose unsafe and rarely used operation as a default? It is a mistake. Swift uses sane defaults.

UPD: for example, let's say we need to allocate memory for N elements of size S and a header of size H. Here is the unsafe code:

u32 s = N * S + H

And here is safe code:

u32 s = checked_add(checked_mul(N, S).unwrap(), H).unwrap()

And here is safe code in Swift:

let s: Uint32 = N * S + H

And unsafe code in Swift:

let s = N &* S &+ H
GP is explaining that the City of London is the traditional (aka old) centre of London. In fact, until 1889, "London" referred to the City.

> Fun fact: Officially, there is no such place as "London". ;)

London, Ontario officially exists.
Yes agreed. Had everything dialed in except a card that I only knew to be a spade and no helpful information from the ranks. Just had to exhaust my guesses numerically.
For me, the exposure adjusted is the sweet spot, the color balance step is too yellow and loses atmospheric depth, at least on my 14" macbook pro, and then the hdr makes it completely flat. I love the intent, but the results don't look great on my setup. Since it's missing a fill light on the subject, maybe should've selectively edited the shadows only on the kid but left the shadows in the canyon for contrast. All the other examples are excellent.
The physical act of comparing two objects or testing one object against another would typically involve some physical contact or proximity, so even in the case of testing some code on something, it is natural in English to by analogy use the word "against." But I think you are right in this case that "against" has significant adversarial meaning in the act of testing something: often, one introduces stress scenarios or edge cases that could cause some software to fail. Tests are in large part adversarial to the object under test.
OP here, totally agree!

Feature-based billing is super hard too, and people underestimate the complexity even more.

We were genuinely surprised that some companies wanted to use Lago even if they ""only"" had a "feature-based/subscription-based" pricing, that someone new would consider as "trivial".
It was already the dumping phase:

https://coinmarketcap.com/currencies/elon-goat/
>> I think we're getting close to strong AI there though, so I don't see it happening any time soon.

It's unclear which clause is meant to be negative or positive here. If we're close to strong AI, systems which ask clarifying questions would be close as well, no?
Oh, this is close to how Android/Material buttons work. When I had that phone, I wondered at least once a day why a button is visually reacting (material “wave” effect) when I tap it but does nothing.

It may even be the same thing you described, if they somehow managed to attach a sound to an animation instead of a handler.
The Internet was created with openness and interoperability in mind, so although I may not agree with some of his most extreme opinions on other subjects, he's spot on when he criticizes the app-only approach. A lot of services can be accessed only by phone apps, the reason being that mobile platforms aren't "plagued" by open protocols, so they're easier to monetize because there's no open competition.
From the perspective of ESL speakers this is really bad. Most people become fluent in English by watching TV. If you need subtitles then your listening comprehension will suffer greatly. I grew up on Friends, Star Trek and Simpsons etc, all with very clear speech.

Maybe we need some software to enhance speech and make it more legible. Not just increase its relative volume but also reduce mumbling. We shouldn't have to, but maybe with an automatic solution streaming services could more easily add the option...
We used to have these things called Phone Books, that literally, contained everyone's phone numbers.

We didn't call those leaks.
All the deals on AI products this week
Writing tests? For personal projects? More like "Coping strategies for the project hoarding masochist" amirite.

I suppose it depends on what you're trying to do, but the thing about personal projects is that you don't have to maintain them :P
A Security Tools Crash Is Coming
Hi all,

I created a website to list all the deals I could find relating to AI products for Black Friday/Cyber Monday.

I noticed plenty for indie deals etc, but not focused on AI.

Will happily add any I've missed out!
Section #6 seems to have a paragraph or image missing.

The first paragraph ends with „your tax decision tree should look like this:“ and the second paragraph starts with „Now, imagine that you sell different types of goods/services to.“
Your argument leaves aside the fact that Germany lost the second world war and was absolutely devastated by it, and that a lot of their military power in that war came about at the expense of their citizens. It's also way too narrow: the resources the UK devoted to controlling its empire, couldn't be devoted to holding Germany down. The UK was never the sort of monopolar superpower that the US was 1989-2008 (the US very much learnt from the UK's more primitive form of partial dominance).

Moreover, even if any of your claims are true, it still doesn't show that they collapsed due to domestic politics. If they didn't have a goal of maintaining their global empire - and you seem to argue that they didn't - then it's not domestic politics but rather public opinion that led to the end of the empire. That is to say, it offers no real lessons for a country that wants to remain dominant. Maybe the US wants to leave its empire behind it, but if so you can only learn that if a country wants to leave its empire behind it, then it might succeed. So what? The British example in your presentation doesn't say anything about a country that wants to remain dominant. And it is completely one-sided, failing to account for domestic politics in China, which is in a far far worse situation than the US in terms of being able to gain/retain the (international) support needed for a dominant position.

> Politically, it is “gave up an empire to gain a continent… hang on, why isn’t the continent doing what we say? That must mean they are dictating to us!”

This is chronologically wrong. The British had already lost almost every bit of their empire, and certainly their imperial standing, before they tried to join the EEC. It cannot be maintained by anyone with even a milligram of dedication to the truth that they "gave up an empire to gain a continent". It's true that the price they had to join the EEC was to end the imperial preference, but they were poor, the sick man of Europe, and their ability to conduct internal imperial trade was dependent on the United States. Even their very best colonies in Australia and New Zealand, although still dependent on imperial trade, had turned and saw their future as key allies of the US - not dominions of the British Empire.

So while it might be the case that more lately, some British politicians have sought to build domestic support by lying to their constituents and claiming they "gave up an empire to gain a continent" only to be surprised that it was a partnership, they didn't lose their empire to join the EU/EEC. Your false-quote has resonance in the context of the Brexit debate, but it has no meaning in the original circumstance.
First off, I appreciate your related comments. Two questions Im curious about:

You mention usage and one time charges as being distinct. Ive generally seen them treated as the same thing; “instant”, “action”, or “usage.” Effectively atomic units of metered usage that are aggregated later, and the corollary to recurring usage. Is there some reason to not model “one time charges” as just a another (infrequent) variant of usage. Eg a “service connection” usage with value = 1?

I didnt see you discuss pricing in your list. Do you normally treat pricing as part of usage? Ive always see it as a separate value thats joined with usage per customer-billing period.
A ToC is there as an On This Page block just under the first image near the top .. the section title lines following are links to deeper in the page document.
In an industrial setting, it is common for PCB/component inspection to take images using a telecentric lens, to eliminate all perspective on any tall components around the sides (and also allow precision measurement using optical processing only). That, coupled with good lighting and sometimes polarization can result in pictures of components so perfect that they look like they were renderings.
Interesting, I have two Macs backing up via Time Machine to a Synology (over ethernet) and both have regularly suffered corruptions where they have to restart the backup from scratch again. It's infuriating.

Were there any specific tweaks you made to your setup to make this reliable?

I also wonder if the amount of backup data makes a difference. I have tended to use Time Machine to backup pretty much my whole drive. I wonder if it's more reliable when backing up smaller amounts of data perhaps...
Think you might have a editorial content left under the headline "Installing FFmpeg Check". There are instructions for installing FFmpeg (first I thought it was maybe some tool called "FFmpeg Check" to "check" the output of an FFmpeg command line, like in the above screenshot, but this turned out not to be the case :)