skysight-inc/HackerNews huggingface dataset:
It's more like, "I don't see why a tastier dinner has to be more expensive". It's a tradeoff situation, and while I might be willing to buy a great $50+ meal from time to time instead of just a $20 one, I don't have any inclination to pay $1000 even if the meal is a tiny little bit better than the just-great one.

It's a matter of tradeoffs. Library design is a balancing act.

> We need generics because users have types that they need libraries to work with.

This is right where I become sceptical. Most libraries shouldn't care for the user's types at all. They should expose their own types so you can work the library - not the other way around.

Please provide an actual use case where the library has to "know" about the user's types (and please don't mention std::sort. It's as common an example as is "Dog :: Animal" examples to argue for class inheritance, and is just as irrelevant).

> Your own example, of an intrusively-linked list, illustrates this: without generics, you could not write a linked-list library component that would be usable for that.

As I mentioned, linked list can tangentially benefit from a very very thing generics layer on top of a fixed data structure implementation. The layer does nothing more than "instanciate" the types, but there is no code generated. But then again, the added convenience / safety is minimal, I once wrote a C++ implementation that I was quite happy with, and never used it.

> This is why C programs are crammed with so many custom one-off hash tables

There are probably not huge issues with a design like "HashTable ht = { .hash = &foo_key_hash, .equals = &foo_key_equals }" (if quick results are what you're after), but yes it is nice to have a few lines of type-safe wrap generated over some generic container interface.

An alternative reason why you'll find a good amount of custom hashtables in C code bases is, I suppose, that there are a lot of different ways to implement hash tables. Also writing a little code here might not be so bad. I've had 1 use case for a "hash" table in 2021 (glyph hash table for a new iteration of my font rendering code) and I've gotten away without even implementing it - the for-loop I've written has never shown up in any performance profile.

Considering that container data structures are probably the highest profile application for generics, I'm still not convinced that generics are needed in a systems programming language...
Ask HN: How can I make my smartphone more secure?
I am become increasingly concerned about my privacy. I would like to make my smartphone more secure, less prone to attacks, become less reliant on big apps run by companies with questionable morals and send less data to Google and/or the manufacturer. Any tips would be of great help. Thank you.
I agree, but at the same time "Sequence-to-sequence model utilizing self-attention" doesn't roll off the tongue as well and would otherwise make the thing more difficult to talk about.
Oh sorry, English is not my native language and I had to rephrase a few times, totally missed that.

>You'll see webrips all the time with 1080p because someone can just record their screen and call it a day.

I've checked my tracker and practically all TV shows from Netflix that are in 4K can be downloaded in 4K. And I am 99% sure they are not screen caps, for example the entire second season of The Witcher was released 17 December at 09:01, and my tracker had it ready to download at 12:26 at 4K with 3 audio tracks and 2 subtitle tracks. The runtime of this season on imdb is about 8 hours, so it would be impossible to screencap, which means they had a bypass for the DRM ready ahead of time.

Of course these are just examples that I made up and I would never enter or use such filthy and illegal websites.

And for the mobile and smart TV experience there is Plex. It even has features which aren't possible with the legitimate services, such as "Watch Together" which allows you to watch stuff with friends over the internet.
I second this, it's a very capable wifi AP and router that supports openWRT that flashes and installs without any issues (last I tried it about a year ago).
Completely Truthful Answers to Lady Engineer Questions (2015)
Seems offering nothing better than Pocket. Pocket is multiplatform and integrated in Firefox.
> In 20 years when the coalition of bigots

I was willing to listen to your argument up to this point. Throwing the "everyone who I disagree with is a bigot" around is very old hat at this point.
People read the comment that you wrote, in which you, in typical "real programmer" fashion redefined the question so that it matched your preferred answer, by mentioning a flag that does not in fact, check for overflow and then clarifying that you've decided to check for undefined behaviour not for overflow.

[ saagarjha has since explained that in fact the UBSan does sanitize unsigned integer overflow (and several other things that aren't Undefined Behaviour) so this was wrong, left here for posterity ]

Machines are fine with the behaviour being whatever it is. But humans aren't and so the distant ancestor post says they liked the fact Zig has overflow checks in debug builds. So does Rust.

If you'd prefer to reject overflow entirely, it's prohibited in WUFFS. WUFFS doesn't need any runtime checks, since it is making all these decisions at compile time, but unlike Zig or indeed C it is not a general purpose language.
Yes, absolutely! I'm constantly frustrated by the trend of selling meditation as some sort of productivity hack. It's at best misguided and at worst dangerous.
Dymaxion Chronofile
> I am not sure what Javascript buys you

https://en.wikipedia.org/wiki/Wikipedia:Chesterton%27s_fence
In England they have a nettle-eating contest https://en.wikipedia.org/wiki/The_Bottle_Inn
There's an open issue to add some kind of function annotation+errors for functions which require you to call a cleanup function.

The discussion has had a lot of back and forth and they haven't really settled on a desirable solution yet, but it's something they're hoping to add.

https://github.com/ziglang/zig/issues/782

I work in games with C++ and we already do so much manual management and initialization+teardown functions that lack of RAII isn't a deal-breaker. Though I'd definitely prefer it if there was something either well-enforced or automatic.
Anecdotal, but I had a strong and immediate "wow" feeling when I first looked at Zig which I didn't have with most of the other "better C" languages before. Also, not having a big company behind is a good thing, not a disadvantage (because it means that bad design decisions can't be forced on users just because of the "it's made by Google or Apple, so it must be good" effect - as a real world example for this problem, see WebAudio).

PS: Dart being the next big thing, or the next big flop? Because from my bubble, Dart and Flutter don't look all that popular.
They may contemplate as they wish but their minds can only take them so far.

They will remain closed to the possibility of true spirituality because ultimately they believe only in material things and they take themselves to be the real thing, and the Spirit to be more or less a dream.

Sure they may have some interesting experiences but often they turn away from these experiences and dismiss them as no more real than dreams.

If the belief in the heart is absent so to will It be absent. It is a game of hide and seek but you must have the belief in that which is being sought. Otherwise the whole thing falls apart.

Intellect alone is not enough.
Felix Biederman interviews former Gov. of Illinois and convicted felon Rod Blagojevich on Chapo Trap House:
https://otter.ai/u/B_VZ8fzEK4S-c0jVmRQ2_wYHCCA
https://soundcloud.com/chapo-trap-house/561-teaser-blago-hat...
Warning, I'm not a specialist in this. My only qualifications is that Christianity has made me happy and I have read and listened a lot.

> I've never understood what part of the crucifixion was a sacrifice. Jesus is literally a god. He knew he would end up on the cross before he even took on human form.

All the more agony. (See also below.)

> He could have left at any time.

Yep, but as far as I understand then it wouldn't have been valid. As far as I understand it seems he knew he had one chance.

My best explanation is he went to create a way for us and it wouldn't have been much worth if he did it in "cheat mode"?

> He can return any time he wants.

See above.

> And how can his death on the cross be actually considered a death?

True God and true human. According to the sources we have he suffered badly.

> If he was dead, are we to understand that for those few days there was no god overlooking all of creation?

According to the common translations Jesus prayed to God and speaks of himself as something else than God.

I'm not very knowledgeable in theoretical theology but this isn't controversial at all to most people who consider themselves Christian I think.

Also death is just the death of the body.
A little off topic, but it's mesmerizing to me to see hordes of intelligent people, completely renouncing to reason and talking to imaginary entities.
What, really??

This is too crazy of a coincidence to be a coincidence.

This is exactly what's happening to me, and same IP prefix.

What does it mean?

---

How old of account was this? Can you contact me by email (email in my profile)?

---

Two theories:

- there is a problem with LastPass

- you and I both had the same Chrome extension installed that was actually compromised, and that extension was listening to/sending passwords typed into lastpass.com

I last used this account/master password back in 2017. Is that similar-ish to when you used your account?
The demographic decline of the Japanese countryside is a stark reality most vistors don't get to witness, but it really is transforming the country. For a great, poetic examination from a few years back, the (now dormant) blog Spike Japan is an essential resource.

https://spikejapan.wordpress.com/
Hey, this _just_ happened to me too....my password would be near impossible to guess and is not used elsewhere...

Just deleted my last pass account!

here's the info that came with the email

Time Monday, December 27, 2021 at 1:41 PM EST
Location São Paulo, SP 01323, BRAZIL
IP address 160.116.88.235
I notice you didn’t mention any diety. Who or what are you praying to?
I like doing things like this because so often the alternative is throwing the item away and buying a new one.

I enjoy the times when I can avoid participating in throw-away society.
I haven’t run a full study, but I have found the opposite amongst people I know: a large overlap between the people who moan about their freedoms being taken away by vaccine mandates and those who moan about the ideological purity of Free Software.

If you see things only in black and white and everything is a crusade, then you don’t care much about facts. I would guess that this is the result of the same mechanisms that prime a conspiracy theorist to see conspiracies everywhere.
They have been my gateway to spirituality, whatever than means. I approach them the same way a Christian would approach Easter or Christmas or any other ritual. They are indeed a ritual which "happened to happen" to me. They are sacred under the only definition of sacred that I'm 100% comfortable with: that which keeps on giving regardless of how many times you have interfaced with it.
A practical problem DRM will always have is that the full DRM chain that tries to include everything in the path down to the cables, that involves too many actors not to break. Keys will inevitably leak left and right, and you'll always be able to find some sort of cable and capture card setup that ignores DRM.

About the watermark scheme, if it was standardized for inclusion in any video-recording equipment, then the standard would leak and people would learn how to neuter it. Or people would flash their camera's firmware to patch out the detection code.

There's simply too many places where the scheme cannot be secure, by design. It's hard to stop finding weak points in the DRM scheme.
1. You manager is managing you to the benefit of himself and the company. Not yours... You are being played. The larger the corporation the harder you are being played.

2. You won't make any friends at work and after you leave it nobody will care.

3. When there's packages on the table take yours and get the hell out of the quagmire you work. You will find another job. (See 1 again).

4. Take deep breaths when you start feeling angry.

5. Don't work with teams where no-one ever reads any book.

6. Don't work with teams where they're holding one or more books as Gospels.

7. Do not work for arseholes. Unfortunately you'll usually know they're such after you spent some time working for them.

8. Do not kill yourself working so that somebody else can cash out big. Do not even sweat for such a cause.

9. Do not buy in mission-statements and culture. There's only one mission. To make profit. Prefer to work for someone that admits it.
> If you got HIV from unprotected sex, should we shame you?

If you vehemently oppose the use of condoms, physically and verbally assault people who try to distribute condoms in areas at high risk for HIV, retweet conspiracy theories about how HIV is not real and condoms were made by evil people for evil purposes, attack the doctors who are trying to treat HIV, etc., then yes: shame on you.
How do you carry it around?

The torrenting experience IMO is still fairly limited compared to either the BluRay experience for "max quality" viewing at home (but with easy portability of the disc too) or the "play it anywhere you're logged in without being tied to a particular device or hard drive" experience of streaming. When it comes to movies, you can often get both of those with a single purchase, too!
The documentation is the worst I've ever seen. There is no API reference! Just a bunch of incohesive tutorials that hopefully overlap with what you're trying to achieve.
Actually the speeds of objects orbiting the center of galaxies first increase then quickly flatten out the further you get from the center: https://en.wikipedia.org/wiki/Galaxy_rotation_curve

This is one piece of evidence for the existence of dark matter.
Sell them some easily defeatable “solution”. Use lots of buzz words. They’ll buy it!

They’ve been buying dreams long enough, may as well be the one that sells it to them.
It’s been known about for at least 25 years, but there was some debate about the specifics. Thus they “described this layer in detail for the first time.”
Heh, I reached out to that same email literally earlier today to complain about their abysmal Android support, and I'm already a paying customer. I'm not happy with their non-response automated email and will be looking for a good alternative.
Yeah, that's the thought - reduce the friction for converting Python to Crystal. I wouldn't expect many non-trivial programs to work out of the box, but if this tool reduces the time needed to port something, it's served its purpose.
Even better, make their direct supervisor take the same test. If they outscore them, they get their job and the supervisor then is demoted to the job being hired for.
Depending on your perspective, it's not trivial. It's significantly more expensive than assigning a value to an integer. Zeroing a [4096]u64 would require several thousand times more operations than zeroing a u64. In the areas that zig targets, this can be quite important.
> Do binaries even need a license?

If people need to exercise any of the exclusive rights under copyright, including making copies (which most software does to work) some license is needed, though the license may be implied by the manner in which the software is made available rather than by explicit text.

Whether a license is necessary, and whether if so the effect you want requires an explicit license, is a legal question that you probably want to go to a lawyer for. But, generally, if you want to release it publicly and have it both clear and enforceable that it is allowed to be used in certain contexts but not others, you probably are going to want an explicit license, because otherwise it is almost certain that either want you want to allow won’t be clearly allowed or what you want to be prohibited won’t be clearly and enforceably prohibited.
I suspect that it was a random phishing attempt.

> Login attempt blocked

> Hello,
Someone just used your master password to try to log in to your account from a device or location we didn't recognize. LastPass blocked this attempt, but you should take a closer look.

Looks fairly classic. Might want to look at the email headers, to see if it really came from LastPass.

I get about ten of these a day. Some are scarily well-done.

Most are for banks that I don't use, but I also get a lot of attempts to grab my AppleID. My Apple (mac.com) address is an OG address, and has been making the spammer circuit for over a decade. I suspect that I actually get hundreds of spams a day, but Apple is good at nuking most of them, before they reach my inbox.
Depending on the jurisdiction you can sue later if they don’t comply. Then they would be in contempt, which involves much more severe sentences than a €100/day fine.
I have been getting it 10+ times a year since my early 20s. Whenever it happens it's as terrifying as the very first time.
Nope, it's a perfectly normal listing of 6502 code in Assembler.

The BRK instruction, if I recall correctly from my 6502 days, forces an interrupt for reasons I can't precisely remember.

EDIT : https://www.c64-wiki.com/wiki/BRK
Does lastpass have a login history? first thing would be to check if the mail is genuine
It requires no substantiation, it is in the common definition of social utility that each persons contribution to it should have a priori equal weight.
Cool app. I like the idea of generalizing around a common interface.
There was no 1Password to LastPass importer at the time I wrote that (believe me, I looked because I have better things to do than write apps to benefit a commercial entity like agilebits otherwise), and of course the code is published on GitHub and released under the MIT license. It's very short and simple and rather easy to review. It's also a .NET executable, which is ridiculously easy to reverse-compile back to C# (not just assembly) so you can even check that I'm distributing an exe that does the same thing as the code I published.

EDIT

I just revisited that link I shared, and I have to say, it takes some real chutzpah to turn around and accusing me of advising insecure practice when the link I shared literally talks about just that:

Due to the nature of this application, 𝘄𝗲 𝘀𝘁𝗿𝗼𝗻𝗴𝗹𝘆 𝘂𝗿𝗴𝗲 𝗲𝘃𝗲𝗿𝘆𝗼𝗻𝗲 𝘁𝗼 𝗱𝗼𝘄𝗻𝗹𝗼𝗮𝗱 𝘁𝗵𝗲 𝘀𝗼𝘂𝗿𝗰𝗲 𝗰𝗼𝗱𝗲, review it quickly, and compile it yourself to use this tool. However, we do recognize that this may be beyond the means of all security-minded folk out there looking to make the switch, so we are providing signed binaries available for download. If you do opt to use the binary download, make sure to validate the authenticode signature like so: ...
Opinion: China is testing the West. We shouldn’t back down
If you write tests in zig you will probably find this using the testing allocator. Yes, I get that some people really don't like writing tests.
Sixt are trying. Their goal seems to be to offer a one-stop service whether you need a car for five minutes or five years.

Like, round the corner from me right now is a VW Golf. I can jump in it and drive it away immediately for €0.30 a minute (pricing is demand-based, it can be cheaper than that). No additional costs whatsoever, the only condition is I have to park it somewhere within their operating area when I'm done with it.

If I want to keep it for a few hours, or a few days, all I have to do is choose the appropriate tariff. A certain amount of kilometres is included, and I can buy more if needs be. Doesn't cost me anything to park it in the city while I have it. Sure, it gets a bit pricey, but that's the cost of convenience.

Traditional rental is a bit more complicated, but not hugely - book through the app, collect, return. Anything longer-term than that is available through a monthly subscription, which is certainly more expensive than a conventional lease, but everything's taken care of and you can hand it back any time.

It's all pretty painless.
This is the meat puppet definition of humanity. We are not the meat puppet.

The experience happens outside of the meat puppet.

It is your belief in the reality of your body and your mind that prevents you from realizing the full potential of those “spiritual” experiences.

Those experiences will have little impact if the belief in them is lacking.

It is not that those experiences are more real, it is that they are no less real than what you call reality.
It's always astonishing to find that the envelope of cutting edge knowledge is sometimes far closer than you think.

IE, jaw muscles hadn't been figured out yet.
For Android phones, I hear GrapheneOS and CalyxOS are great custom ROMs that can significantly improve privacy.

For any phone, the only VPN I really trust lately is Mullvad. Pay with mailed cash, crypto, or (if you really have to) a credit card or PayPal. With harder-to-trace payment methods, and the fact that they only give you a random account number (no email, phone number, address, name, etc. attached to your account) makes it the best at its job of any that I've seen. A VPN only improves your privacy if the VPN provider itself is trustworthy and proven.

Oh, and don't use the built-in browser if you're on Android. iOS as well, but to a lesser extent. Apple is pretty good about privacy when it comes to not leaking your stuff to other companies, but that doesn't mean Apple isn't spying on you. I've been running a hardened Firefox mobile for some time, but that's a deeper topic on its own.

You can find great privacy-respecting, free and open source apps on the F-Droid repository for Android too. Take a peak around there and see if you find some software that can replace your daily drivers.
God created Time and does not experience it as we do. There is a school of thought that says that, for God, all times are _now_ -- there is no difference between past, present or future. All are equally "present" to Him.

In this frame, the Crucifixion is happening _now_. Jesus, as a man, is suffering and dying at this very moment. As humans experience time, He always will be.

It seems to me that, for any entity, this eternal experience is a very significant sacrifice.
do you have it installed on your smartphone? have you ever entered your master password on your smartphone? what sort of smartphone do you have, does it get security updates regularly, is the manufacturer competent?

same with your desktop. is everything up to date?
By "problems" I guess you meant usefulness: "Most of the usefulness that C++ added on top of C is a product of RAII." Because usefulness is why C++ is used so much.

And, "too rigid" meaning maximally flexible, likewise.
That's so retro. Useful if repairing boat-anchor equipment from the 1950s.

Here's a more modern video on winding toroids by hand.[1]

[1] https://youtu.be/sDIWNHOoNh8
Check out Atomic Blonde as well (for good fight scenes). There is a certain style of exhaustion about the fights in that film that I really love. I don't skip fight scenes regularly but I do also find most of them boring as hell and hard to watch (primarily because of excessive cutting).
I love how often hackaday and hackaday.io make it to the front page.
That's probably my favorite part about Balaji, is his thinking is so multi-faceted and original that you're naturally going to come across things you agree with him and disagree.
Ask HN: How do you produce product/feature demo videos?
Sometimes I want to create a short 10 second video showcasing a feature to share social media and in the product (e.g. in-app release notes).

What is everyone using in 2021? :)