skysight-inc/HackerNews huggingface dataset:
Israel is a "free trade country".

If you were a rich nation, it was eminently possibly to get early delivery dates written into your contracts. Canada decided not to for some reason (cost?) and in actual fact deeply regretted it.
I have never had problems with sleep because of blue light from my monitors, nor can I say wether or not it's "dangerous," but in my experience it definitely does cause temporary eye strain. In a dark room, using a blue light filter makes a world's difference when it comes to how "dry" my eyes feel, how much I need to squint, and the eventually developing head ache. Granted my methods for testing this aren't very scientific, but it does help me, even if it doesn't make a difference in the long run.
Is it Casual Hitler Sunday again?
They say one thing and do the other. For example: In many feminist countries being a prostitute is legal but soliciting a prostitute isn't. Its meant to protect prostitutes which I 100% understand, but it is a double standard that stigmatizes the use of prostitution while also putting those who utilize it in real danger. I am not arguing for legalized prostitution, and I do not think anybody has the right to sex, however I think that it is wrong to shame and humiliate somebody for a lack of sexual success.
Yeah, not slow in placing orders; the problem was that they didn't prioritize guaranteed delivery dates in contracts like the EU and US and Israel
I don't know why but there is this myth that ORMs remove the need to understand what a database is. I've used an ORM that supports both RDBMS and Mongodb and the biggest difference is that the RDBMS lets you write joins in your ORM queries. You still need to understand that the data you are interacting with is in a difference process or even on a different server that you are connected over a network.

ORM is a nice acronym to throw around but people got the impression that it does more than that. Not having to learn SQL... What is that even supposed to mean? You still need to know how to write queries in an ORM. Most ORMs come with very nice query builders for that reason. I personally enjoy writing dynamic queries for extended search functionality. Supporting 3 dozen different fields to filter is much easier when you don't have to concatenate SQL or use boolean flags to toggle individual clauses of a huge static SQL query.

Yeah they do suck at reporting, performance and supporting old organically grown schemas that weren't designed with the limitations of your ORM in mind. Whenever I need to insert thousands of rows, it's much faster without the ORM. I've never thought, oh the last 10% can't be done with the ORM, throw the entire thing away. Just be pragmatic and do what is most effective. I personally am tired of writing raw insert/update/delete queries that only touch a single row. For me there is nothing to be gained by not using an ORM when you can.

My biggest pet peeve with JVM ORMs is that they don't work with GraalVMs native image feature. They create proxies and use reflection. I want a good out of the box experience so I don't use native image very often. It's a shame.
Show HN: OpenDeck – Platform for building MIDI controllers
MOBA Mobile Sensation 2021 Is Pokemon Unite
I see this page has built in chat functionality, such an annoying and useless feature.
Excuse my ignorance here but why are you using its actual IP instead of just localhost or 127.0.0.1? When starting up a local server inside of WSL I’ve never needed to do that (unless it needs to be accessed somewhere else in the network)

I know the blog post says localhost redirection “often fails” but that’s just never been the case for me, and the citation it uses is just a link to the WSL issues page rather than a specific issue.
OK, but let's be serious, I don't think anyone's asking you to design AI-powered
weapons ("hey, this guy has trained GPT-2, he must have the skillz to design
smart cluster munitions!").

So let's see something more realistic. Have you ever, I don't know, stolen your
buddy's new bike because if you don't, somebody else will? Or taken an upskirt
picture because people do that kind of thing? Or thrown a burger wrapper out a
car window because everybody does it? Are there things you simply find
disagreeable or repulsive and you won't do them because you simply don't want to?

Or do you really go around in life trying to maximise your asshole potential,
just because you assume everyone else will, too? I am genuinely curious because
I certainly don't, I try to minimise my asshole potential, first of all
because I don't want to be an asshole. I don't care if other people are
assholes. The world is full of assholes. But I am me, not them. YMMV.
They can easily crack content using 1024-bit Diffie-Hellman key exchanges with hardcoded parameters, which used to be common in VPN software and some servers. There was a big collective facepalm in the crypto community when this was revealed. Basically, they found a way to spend a lot of compute power once to crack a parameter set, then they can use it basically for free for any sessions using those parameters.

Other than that and backdoored software (e.g. stuff using RSA Bsafe with Dual-EC-DRBG, which has an NSA backdoor, or those Juniper VPNs which used the same), I don't think they can do much about modern TLS besides exploit obvious flaws in the implementations.
GraphSCAD – A User Friendly Nodal Editor for OpenSCAD (2018)
I am happy that Boeing finally seems to put vehicle and crew safety into mind. Although I'm still stunned that they got down to 1h into the launch countdown, when I compare that to e.g. SpaceX then I can't really blame them: You can only fix problems that you know of, and noticing them can be difficult. SpaceX notably blew up one of their test capsules due to a sticky valve; Boeing noticed their valve problem without the vehicle blowing up.

Yes, this is an apples-to-oranges comparison, but it shows that at least they now take vehicle quality very seriously, to the point of delaying the launch (as compared to them previously launching a vehicle with code that wasn't integration tested)
>> global bacon shortage was "unavoidable". Thankfully history proved the author was completely wrong

I'm sensing you said that partly in jest, because who doesn't absolutely love bacon? Me, I eat it at least once a week. It does make me wonder, though, what if we lived in a world were there wasn't an abundance of bacon? What would that world look like? Would it be a better world? Better for whom? Our children?
GitHub repo: https://github.com/graphscad/graphscad

Dimitri Kolovitz's profile on Thingiverse: https://www.thingiverse.com/kolovitz/designs
Observations on the limits of knowledge,

1. Predicting long-run evolution of chaotic systems require more measurement precision in the initial conditions than quantum mechanics allows

2. With sufficient density, a discrete system cannot be simulated with less energy than the original system possess

3. With sufficient complexity, (as above)

4. The mass required for measurement, and energy required for computing, the structure of ordinary objects (eg., chairs) from their parts eclipses anything we could build

5. Randomness isnt computable

6. Real numbers aren computable

7...

Any more?
It’s really really good. Thanks for this buddy
One of the top three worst things to happen in 2020.
> Saying community is in constant decline is such an internet thing. A certain other website with a blue background and trumpets has been full of messages like this for the last 20 years, yet it's still a fun place to lurk.

But repeatedly saying that something is in decline doesn't mean that there is no decline. Also something can be in decline and still remain a fun place for a long time. Both can be true at the same time.
The real reason is that almost all FAANG category companies and a big number of VC backed startups are HQed in USA and most new projects/development happens there so they have to attract top talent. The next question is why US attracts almost all VC funding and the reason is that it has the most people or other companies that are willing to pay good money for B2C or B2B software.

The other question is almost all FAANGs if any start/continue in US. Many starts outside but once they grow bigger they legally move to US. I think the reason is the US First Amendment, favourable copyright, patent, tax laws etc. Facebook and other social media would have faced a tough time (probably shut down) even in many western countries even as they lack an equivalent of First Amendment.

Now it is the networking effect, US FAANGs earn so much profit that $0.5m developer salaries are a dot in their balance sheet. They are setting the benchmark and it is almost impossible for a company in rest on the world to match it in their home countries.
Regardless of side-effects (no idea what to believe anymore)... I've found that using the automatic colour temperature adjustment programs to make using computer screens in the evening feel less out of place. Even ignoring natural light, we tend to use warm lighting indoors, and when the day is done 6500k just looks blue in this context due my eyes adjusting to the environment.

I set and forgot redshift in my xinitrc a few years ago and now it always looks right.
It's not that nil itself is a problem, the real issue is that every invalid table key access doesn't trigger an exception (like Python), but instead returns nil. And everything in Lua is built with tables (including whole class systems), so this makes debugging a serious pain in the ass.

In fact, even global variable accesses are designed to work as table accesses to _G (the global table), so if you make a typo then the interpreter doesn't say that you've mispelled a variable but instead silently gives you nil. This leads to all sorts of weird bugs that are very hard to track down. Probably the number one reason why I ditched the language for something else.
> She points out that our disregard for spiders is partly a Western peculiarity, since some cultures and religions – such as Buddhism – have held the view that all living things are precious for millennia.

This is something I’ve thought about a fair bit. I don’t mind spiders and will generally try not to kill them where possible. If they’re small enough I leave them where they are and large ones like daddy long legs I’ll capture and release.

I don’t do the same for flies and moths though. They get swatted. I have a mild phobia of them (not strong enough to call a phobia really). But I do often question myself on the morality of causal (intentional) killing of creatures like this.
I had hoped the risk for malicious actors would be a bit more serious than ostracisation. Like, criminal persecution?
Sooo... And hear me out here... Censorship?
> The built-in array type works fine.

It does not seem to be a Container and doesn't remember its own size. It's a sad relic of C and for whatever reason C++ can't or won't fix it.

> Nobody implements "freestanding", or would use it

So, you've gone from everybody wants to add things to free-standing, to now, in C++ nobody implements it and it's unused? No wonder offering something better would be popular.

It is true that I'd forgotten if you have C++ 20 you can now make a view out of two iterators by adding yet another non-freestanding dependency for ranges instead of needing Boost.

> (NGL, you read a bit desperate. Things OK?)

I'm not "NGL" whoever you think that is. My legal name is a matter of public record and so it's always striking to me that people so often think guessing who I am is somehow a revelation that will make up for the weakness of their argument.

> It is a mark of weakness, in a language, to need to implement in its core what, with better core features, could as well have been in the library instead.

Rust's core library is, as its name would suggest, a library, just one which unlike std is free from tricky environmental dependencies.

But sure, it is a weakness that in C++ "volatile" gets to be a language level type qualifier whose semantics are poorly defined, whereas in Rust the things you actually wanted (a way to read or write MMIO that doesn't tear or get messed about by the compiler) are provided by an intrinsic in the core library. This weakness is apparently something people are trying to repair in C++ 23, decades after the mistake was made. Better late than never?

A bunch of things in core couldn't have been handrolled because they are "magic". For example the Drop and Copy traits do define functions so they aren't pure markers, but the compiler cares that it can see how to copy something which claims to implement Copy, and won't allow Drop if the type is also Copy since that's nonsense -- so you couldn't be allowed to define these traits yourself in the natural way. You also aren't (yet) allowed to go around implementing the Fn* traits yourself either because there is considerable wizardry involved.

However, core also contains numerous things that you could roll yourself, but shouldn't, up to and including iterators. For example, core::mem::drop() isn't magic, it really is just an empty function. You could write that yourself. It would do the same thing, but, core::mem::drop() exists so that everybody understands what you're doing when you call it. Likewise core re-exports all the primitive types so that you can definitely say core::primitive::bool to refer to the primitive type bool, even in code where you've gone completely crazy and re-defined the type name bool.
well, GNU's Not Unix, and thus GNU/Linux is not Unix either
Surely you don’t equate installing Insider Builds to having it built into the OS itself by default?

That’s like saying my crappy economy car can win races because I could install a new engine. Sure it’s available to me already but that doesn’t mean I always want to go through the effort to get there.
I've done that before, but copying from web pages that have randomly used smart quotes (or whatever they are actually called) in command line samples.

Very annoying!
Newsweek is maybe a better comparison?
The experience of working with C through LuaJIT is a joy in comparison, IMO. It's much easier to extend C in Lua than it is to extend Lua in C.

And of course you could always just write functions in Lua and call them from C.
True. I am currently stuck with a Mac due to some proprietary apps. However, by using an older macOS, not using iCloud and with an application firewall blocking Apple softwares from the net, my personal data is relatively safe from Apple for now.
Headline is incorrect regarding danger to sleep.

The study cited[1] regarding sleep only compares regular iPhone usage and iPhone usage with night mode, and found no benefit from the night mode.

This is a weak result, since even with night light modes screens still emit a fair amount of blue and green light.

[1]: https://www.sciencedirect.com/science/article/abs/pii/S23527...
It's unlikely that "they" can break TLS protected traffic at scale, however, it's likely that they don't need to.

Usually, TLS is terminated on a load balancer and then the data in the data-centre flows in clear text. I is good practice to encrypt internal traffic but few companies do it because of the overhead. So "they" could sniff unencrypted traffic there, if they pay the data-centre providers.

Also, NSA is known to have modified network gear [1], so if they do that on a load balancer (or hack a software one) they can just sniff the encrypted traffic downstream and extract the session keys from the equipment. Then they can just decrypt the traffic without having to actually break RSA/ECC.

Other governments have had less subtle approaches by doing MITM attacks with compromised certificate roots, which is now somewhat mitigated with certificate pinning in modern browsers.

And of course there is the topic of secure protocols but compromised by design apps, such as WhatsApp. Even admitting that the Signal protocol is implemented correctly in WhatsApp, because the app is closed-source, they can read the unencrypted traffic from the app itself, and if they get caught doing it, they can say it's for moderation purposes [2].

If all of the above fails, you can always rely on Pegasus or similar. Once you have a rootkit on the device, you have access to everything in clear-text.

[1] https://arstechnica.com/tech-policy/2014/05/photos-of-an-nsa...
[2] https://gizmodo.com/whatsapp-moderators-can-read-your-messag...
I wouldn't place too much weight on C. Even under the new Bennett-Lapid government, the country has been willing to go all out on booster shots.

There's just a lot of willingness to go for "good enough" solutions in emergency situations, and forget the rules for the duration.

Civil defense culture also helps, in that it's trained people to reason about countermeasures that are not 100% ("hermetic" in the local lingo) - you still get in the stairwell to protect from shrapnel, even if a direct hit will kill you anyway. People don't have the gut reaction of betrayal when a 90% countermeasure fails sometimes.
At my previous work, we had that centralized bastion for the engineers (we were 5, and it might be harder with a bigger team). Only ssh with rsa, and the rsa key was generated with yubico tools, putting the private key inside our yubikey, and protecting access to said key with a password.

Then basic RBAC with sudoer file according rights depending on your role. The only root account was accessible through two locked up yubikeys, and the passwords of those were in a password manager owned by the architect and manager.

When i left, we were starting a V2 on this with internal LDAP for server/proxy access, first for us then for our clients.
I bought some blue light filtering glasses five or so years ago (GUNNARS, back when I was more into gaming and they were popular) and if I don't use them for a day, or even part of a day, my eyes are noticeably more fatigued and drier that evening. I highly recommend getting a pair.
I felt the opposite about Gates. He had a few dinners with a guy that turned out to be a sexual predator. I don't see at all how that is "bad". It was simply a media fuelled witch hunt as far as I can see it.
So where do the 18 year old hackers chat these days?
Chris Packham: Fire attack on New Forest home 'will not sway me'
I wouldn't go any cheaper than stm32f0. Specifically there's STM32F070 for USB.
He opposes a vaccine mandate. Although legally there is no mandate, he argues that in practice there is.

I find it a valid position and I am glad he is speaking out, because without contrarian positions there would be no debate.
A lot has changed even in the past few years. The small bits of windows software which I was bound to is now covered by things like lutris
My main issue with the notion of 10x programmers is this:

- A 1 meter stick is 10x longer than 10 cm stick.

- A 10 years old car is 10x older than a 1 year old car.

- A $5000 laptop is 10x as expensive as a $500 one.

These are all clear and measurable quantities, representing well-defined properties.

How do we measure the difference between a 1x and a 10x programmer? All measurements that were tried in the past are either unrepresentative and easy to game (lines of code, number of commits...), or too vague or depending on interpretation to be useful for any objective measurement (productivity? languages learned? years of experience? development velocity?...)

Until we can find (eve we ever can) a clear, representative and objectively measurable value that we can use to rank programmers, any idea of 10x will not mean anything - or, to be precise, will mean what each of us wants it to mean.
Why should I give two bits about who is famous?
im just using their naming - bring on the downvotes
There were stories about it a few days ago. It's US only thing, for now.
I would consider Lisp 1.5 manual as the minimal set.
Even better? Immune system learns of two (slightly) different ones, making immunity more robust.
Interesting. I could have sworn that Strange Parts already did this months ago, but I was apparently thinking of a video where he discussed the project and basically said he didn't feel like doing it[1]. Anyway, congrats on successfully going through "three months of agony"!

[1]: https://www.youtube.com/watch?v=FZZIKbidMI0
When a language becomes stable, it also begins to lose popularity. (This is widely discussed).

Javascript is the only language that has continued to grow forever without becoming an "old" language in dev mindset.

One reason is the constant churn of tooling, another is the immaturity of everything, so every generation of devs have a place to add something.

Overall JS gains more than it loses.

This is similar to the concept that the first buggy language to capture mindshare will eventually fix its bugs and leave the initially more perfect competitors behind.
This is only tangentially related to tech but the environmental aspect will likely be of interest to HN’ers too.

This UK environmentalist has been subject to constant abuse online, including having his address posted on Facebook, resulting in various dead animals being left on his property, death threats [0] and now arson.

Perhaps in a weird way these absolute morons are doing him a favour as the side effect is that his causes get a little bump of publicity every time an article is written about the latest abhorrent abuse he’s had to endure.

[0] https://www.bbc.co.uk/news/science-environment-48105287
Discord ime
You are not criticizing right wing media. You are criticizing left wing organizations pushing facebook to place warnings on right-wing facebook posts. It's very convenient how you don't address the main point of the post though.

Your point seems to be that a cable company purchasing shows from content creator companies, is the same as facebook having random users post whatever they want. One of those is a broadcaster purposefully running content they want to run. The other is a platform to let anyone say whatever they want. When you give a platform to someone to say whatever they want, you are free to put limits on that platform, and warnings on that platform. When you are purchasing content, you are showing what you want to show. Things aren't "carried on cable or over the air." Things are bought by the broadcaster, then broadcast by the broadcaster.

I do believe you're being purposely dense here, so this conversation has now come to a conclusion. I won't read your reply.
Wow, this will make Apple’s argument against EU, asking to do this since a few years ago, much harder to sustain :)
Amazing work!
Perhaps this goes against most commenters here, but I find HN to be an appropriate mix of both that has not changed much with time. Reading that link of Hacker News from 15 years ago feels little different from what it is today. This contrasts dramatically with the Reddit of 10-15 years ago vs what it is like today.

Discussion here is also still very high quality. I find it remarkable.
I have written Lua modules in C, and I learned from and was impressed by how they designed it to be embeddable. I know the stark difference to Python now. However, my bread and butter is currently mostly in Python.

If you need C modules for Python, use Cython for the binding, don't write them "from scratch".
It definitely looks 3d printed, although the layer resolution is quite fine and the print quality is very good, and it hasn't been obviously damaged after 3 years in the sea, so I expect this is not printed in PLA on a home 3d printer.

Searching for "lidgard underwater camera", I found this blog post, which has more pictures but no explanation of how it was made: https://lidgardphotography.com/tag/sable-island/ - I still think it looks clearly 3d printed.

The domain name on the side is https://www.cats.is/

They have other cameras that are also clearly 3d printed, e.g. https://www.cats.is/wp-content/uploads/2015/07/Croc-CATS-Cam... but they still don't mention how they're made, the page about their cameras is at https://www.cats.is/products/cats-cam/
People were dying in hospitals. Old people. Stop with the "durr, people are dying like flies" bs. Enough lives were ruined by that. The young will be paying for this crap for the foreseeable future.