skysight-inc/HackerNews huggingface dataset:
> I'm actually really curious what you all do in C/C++ to prevent bad operations from ever being performed in the first place.

1. Go as far as you can with static memory. Don't call the allocator: its slow, sometimes requires inter-thread communications.

2. Dynamic uses often can use the stack: almost always in L1 of your local core. Stack allocations are self-cleaning, just don't pass those pointers to anyone else.

3. unique_ptr<blah> covers most of the true dynamic issues.

4. shared_ptr<blah> covers the rest of them.

---------

The above advice is just general-purpose / low-performance code.

If you're entering high performance coding (aka: you're actually worried about fragmentation, memory sizes, and such), then things get more complicated. Embedded is often RAM-restricted, so you end up in this complicated place where you need to think of highly-efficient techniques.

That's almost always a complexity / resource tradeoff. Efficient techniques are just innately more complex than general purpose techniques. Try not to reach for efficient coding unless you know its something you need to do
Yeah, I think this is one of those things that keeps being recommended for writer's block or proofreading to shake you up and give you a fresh perspective.
This is seriously fucked up. Like just ban or restrict people. Why waste their time?
Marc Andreessen on client-side rendering (1993)
Some years ago I looked at developing a MacOS app and distributing it through the App Store. I came away from that experience with two showstoppers:

- Apple does not disclose to you who bought your app.

- There is no mechanism to make paid updates possible. If you want to release a big update and get paid you need to release a new app. There is no way to contact current users and offer them an inexpensive update.

Are these two issues still true of the MacOS App Store?
I was about to say it's missing Kerberos/Negotiate too, but that was more of a joke. Certs are "proper" missing on the list.

(Both are very much a corporate thing, but to my knowledge certs are used significantly more widely than krb5)
Pion WebRTC is a Go implementation of WebRTC. If you haven't used it before check out awesome-pion[0] or example-webrtc-applications[1] for what people are doing. We maintain a feature list and other helpful resources in our README.md[2]

I am so excited to finally post this! This release was a lot harder then I anticipated, but it is finally here.

There is a lot of really great things, but the things that got me the most excited were.

* pion/interceptor[3] so users can bring their own algorithms and learn.

* SRTP AEAD_AES_128_GCM seeing a 400% performance increase was amazing.

* Track's as interfaces. Gets us an API that feels exactly like the browser with getUserMedia.

If people have any questions/thoughts would love to talk about Pion and answer anything people are curious about!

[0] https://github.com/pion/awesome-pion

[1] https://github.com/pion/example-webrtc-applications

[2] https://github.com/pion/webrtc/blob/master/README.md

[3] https://github.com/pion/interceptor
It's syntactic sugar that makes code a lot easier to reason about.
> I don't understand why identifying that loperamide causes cell death via ATF4 is even worth publishing.

I feel that there should be a special name for this kind of publications they are so common: https://www.ncbi.nlm.nih.gov/pmc/?term=cancer+cells+in+vitro
Because they would put an insane unreasonable burden on everyone who has a computer. and basically make everyone but multi-billion companies have to assume their systems are at fault.
I rely heavily on alt+tab. I haven't noticed this. Can you explain a bit more?
It seems to be related to low blood sugar, here's some quick web search blurbs that probably explain it:

"Scientists were already aware that low blood sugar might speed up heart rate by sympathoadrenal stimulation. In other words, low blood sugar may spark an epinephrine or adrenaline response in the body as part of our biological emergency alert system, that which induces “fight or flight” or in the case of diabetes, a strong urge to signal the body to “consume sugar now!” Coupled with low blood potassium, this response may lead to an irregular heart rate."

"Blood sugar levels affect the heart when the levels are at extremes, either very high or very low. A higher level of blood sugar raises the blood pressure and heart rate. This leads to heart diseases. If you have low blood sugar levels you will experience a rapid heart rate and a drowsy, irritable weak feeling."

That latter description far better explains how I was feeling. Anyways, I neither understood why I was feeling that way, nor it having any relation to my heart rate. Having my Fitbit on both gave me information that could help me identify what was going on, but also a way to know if it's happening again, so I can eat something quickly.
That parenthood out of wedlock is a tragedy is true, but how can you or said articles authors be sure the link between teens today not having them being because of sex ed in school? I’m not saying it’s unlikely, but I’m wondering if there is any evidence showing the correlation, or if the effect is due to any other reason?
The Satisfaction of Mathematically Efficient Christmas Cookies
> If you decide to not sample further (that is find other chapters in the book of which you are an expert) then the conclusion that the book is trash is the only rational one.

That's exactly the wrong kind of extrapolation I'm pointing out.
If you found a flaw in one chapter, the book can be trash, and the chance of it being trash is definitely higher than without any other data, but whether the absolute chance of it being trash is sufficiently high enough can only be determined based on the nature of the flaw, and even then, the confidence for that conclusion can't be really that high.
Correct me if I'm wrong, but it seems like there would a substantial amount of luck involved in getting schedules and offers to line up just right like this.
I had a similar Jazz experience. Thanks to Spotify, I ended up going to Bad Plus, Brad Mehldau, Avishai Cohen and similar concerts and started to appreciate free Jazz and the local scene more, too. I found this incredibly enriching, and it has made me try to play the piano again.
In a sense, the async API allows you to create green threads. Comparing with the normal threads, which rely on OS schedule and introduce context switches, green threads allow tasks actively yielding the control. This for example can be used to run multiple IO tasks concurrently all in one single OS thread.

See https://en.wikipedia.org/wiki/Green_threads
Clickbait, Sandy is saying Elon under promises about Tesla capabilities and timeline because he has learned the hard way about over promising.

Sandy is awesome btw. His YT channel is great and has sage advice
You probably have seen it but for anyone who hasn't, this SNL skit on Papyrus is brilliant: https://m.youtube.com/watch?v=jVhlJNJopOQ
Obligatory to this discussion: https://laughingsquid.com/comic-papyrus/

Update: The designer actually had to change the name for... sigh... legal reasons, so now it's this: https://creativemarket.com/benharman/229510-Comic-Parchment-...
> XFCE GTK engine is much faster than Adwaita

Not to rain on anyone's parade but the XFCE GTK engines haven't worked in a heck of a long time because theme engines were removed ("deprecated", quoth the GTK team, as in they left the interface in but removed the actual functionality, so they didn't do anything anymore) many years ago. The default XFCE theme (Greybird, I think?) uses CSS, just like Adwaita, and there's basically no difference between the two.

Everything else is true as far as I know :-).
Async/await matters in Rust specifically because the borrow checker makes writing code without it difficult, inefficient, and unergonomic: http://aturon.github.io/tech/2018/04/24/async-borrowing/ (note that some of the details have changed here, but the thrust of it is very much the same.)

That said, if you can get your job done without this stuff, that's fine too, but the reasons it was pursued specifically involve the above.
Some people value that they can get stuff done for themselves. I've grown up helping with various renovations around our home (floor tiling, wallpapers, building kitchen furniture etc), and they are fond memories and it makes a difference to how you feel living in a place. I know today mobility and renting is everything, but there is quite a distinct feel of living in actually your own place that you've worked on over the years with family or friends helping out. Now, we were poorer than most people around here for sure. Still, it's not the same when you just pay others to do it.

What's life about? What do you buy that time for? To have more time to "consume content"? Or to go on a vacation and sit at the beach being served cocktails? For many people, these quests for finding good deals, fixing stuff, etc. is like a "side project" or a side quest that contributes to their self-image and life satisfaction long-term.

If you eliminate all hassle, you could just as much pay people to live instead of you.

Now if you really loath some ways of spending time, sure try to make others do those. But not every "hassle" is wasted time. You can even learn new interesting things, interact with different types of people, while getting advice for laying your floor tiles or whatever.

I don't think this super productivity focused view is healthy long term, that all time must be spent either on brushing up on new job-related skills to chase more money, or on actual work time to fight for higher job positions, to make your hourly time even more expensive, so you do even less worldly stuff...

I wonder if there will come a new celebrity-backed fad (following mindfulness, minimalism, normcore etc.) where people do these mundane tasks themselves and give it some cute snappy buzzwordy name and there will be scientific studies that it increases one's well being.
I don't think your straw man of my argument is particularly in good faith.

>Here's the issue, either you're advocating for something useless, or for the suppression of speech.

Incorrect. I'm pointing out your flawed argument where you somehow believe that "free speech" exists if there are social consequences for speaking. I provide a counter example where severe social consequences, effectively suppress speech.

As pointed out by another commenter on your post, freedom of speech is much more than the letter of the law. It is a much wider concept for exchanging ideas. Your claim that "not free from consequences" by the letter of the law while legally correct, is ironically, the polar opposite of what freedom of speech actually is.
> Thanks for sharing!

You're welcome.

> Why did you use GBDTs instead of NNs?

I mostly wanted to build an implementation to see how it worked; I was more familiar with GBDTs than NNs, so I figured I'd start with that. At its heart, AlphaZero is the marriage of two great ideas: using a Monte Carlo Tree Search (MCTS) to efficiently look ahead and find good moves and using a powerful ML model (like a ResNet) as a bot's intuition about which positions are good to be in (value network) and which moves are good when you're in which positions (policy network). So if a GBDT is powerful enough for your use case, the "ML Model" component in the MCTS+ML Model AlphaZero setup should be able to be swapped out with it if you want.

But I was also curious if GBDTs would do almost as well as a NN, because GBDTs can be much more efficient w.r.t. cost/energy. At the time when AlphaZero came out, I think it cost >$10M to train a superhuman Go algo. Nowadays KatoGo [1] can do it for <$50K. The most expensive part of training is the self play. You basically have bots play millions of games against each other and learn from the results of those games. Getting value/policy predictions each move from the ML models is a majority of the computation during self play, so if you make that more efficient, you should be able to train a bot faster/cheaper.

Check out this HN thread if you're interested in more AlphaX shenanigans: https://news.ycombinator.com/item?id=23599278

[1] https://github.com/lightvector/KataGo
Lmao. Might as well solely accept bitcoin to protect the user’s privacy. That would be a fantastic user experience.
What the North Pole Looks Like
I've done tons of interviews over the past 10 years. It was surprising to me the number of times the experience on a resume didn't line up with what the interviewee showed through conversation and small whiteboard exercises.

I get that it's not very real-world representative, and that's why homework is used instead by some companies.

Maybe the answer is to give the applicant a choice? Either be prepared to convince me you know what you claim, or demonstrate it with a take-home problem.

Personally, I'd prefer a day of in-person-pair programming as part of the interview. I'd get a better feel for the team and their workflows. If it's a total horror show, it's good to know up front :)
This is mentioned downthread, but yes, the intention is still for that to happen. There's more work to be done here.
If you want to match the font of the IBM PC technical documentation, it's ITC Garamond, not Times. Very characteristic of the era, Apple also adopted it (in it condensed variant).
I'm told by people trying to do just that that that doesn't work.

Did they change it recently? Have you tried it? I don't have a developer subscription so I can't test it.
No I think you're mistaken. You can rewrite pretty much every part of the system. You can write your own synchronization, you can write your own scheduling, you can write custom awaiter implementations. Its very pluggable.

You might be able to argue that its even more pluggable than Tokio because the system has the concept of current context and attaching a task to it. Library code can use your custom scheduler.

You can even throw away the Task type and create your own future type that works with the async/await syntax but of course no library would be able to pick that up.
Comparison is to threads, not to event callbacks. Threads are (at least in Rust) even easier to read than async.
I love Notion, but the editing issues hit home for me. Specifically the pgup/dn, ctrl+a navigation things. Ctrl+a works in every text editing context ever, that it suddenly means 'this paragraph only' gets me every time.

I'd love for these to be fixed and the performance to be improved, but Notion is a great tool. We ran our whole startup on it, and I recommend it to everyone.
Apple's New Privacy-Focused Tracking Prompt Begins Appearing in iOS 14.4 Beta
Google has investors though. Telegram is wholly owned by Durov.

I've also seen him run monetization at VK. Basically: there was one developer responsible for ads, and he sat in another office together with financial staff because of the different values.
I'm sorry to hear that!

And I'm actually coming from the other direction: I'm arguing we shouldn't put anyone too much on a pedestal.

While he definitely made some awesome contributions; in the end even Einstein was a mortal man who will have struggled with life, and he likely had his own setbacks and made his own share of mistakes just as much as anyone else.
Yep. Sometimes I see these type of comments online (mostly on libertarian leaning subs in Reddit for example) and the commentators fail to grasp the error behind their reasoning - not everything in this world is a zero sum game.
No no, but in the UI you can see what your friends are listening to (if you're added as friends). Example I found online (the right bar is the friends feed):

https://miro.medium.com/max/3836/1*C_ImLXQdMOGljMRhLcV-Yw.jp...
Ha-ha-ha :-) - too late! Every generation will make their own "Worse is better" mistake. Have faith (and patience), what works and is good, will (eventually) be re-discovered.
Usage of it, on its own, does not tie you to a specific runtime.

Using runtime-specific features and APIs ties you to a specific runtime.
Yes, but why would you want that? Using OS threads is better in most cases.
Looks like nvUtra is being co-written by Brett Terpstra, who co-wrote nvALT, along with Fletcher Penny, the author of MultiMarkdown. Star-studded!
Note: This is a fictional article, obviously. My apologies to NYT. Nonetheless, I consider something like this to be an inevitability.

I would not be surprised if it were already occurring somewhere. Perhaps the title should have informed people this is fiction, but I think that ruins some of the effect

I hope I am not breaking any rules. And if I am, well, you know what to do now, don't you?
Google is an ad company. They will use this to measure how you respond to ads. It’s disgusting.
This kinda happened in the UNIX world:

https://en.wikipedia.org/wiki/C_shell
The "Compassion" section is especially powerful. I will try to keep all those in mind.
Actual trolls should be able to spot this fairly quick as they often have multiple accounts and interact with their alternate personas. I would expect this to mostly silence wrong-think. e.g. anything not aligned with the group/tribe narrative. Another variation of this is echo-chamber [1]. The difference is creating a self contained echo chamber and the person leaving a comment will never see comments from real people.

[1] - https://github.com/tessalt/echo-chamber-js
I've used the WD19. I haven't experimented with Linux, but it's a pretty screwy device. A firmware update meant that it stopped playing "which device is going to work today" lucky dip, but it is always a festival of that Windows "hey, something interesting happened at a hardware level" noise as it takes 10 seconds and 3-4 redraws of the whole screen to finally figure out where all the displays are.

It's workable on PC and Mac, but I don't love it.
Do developers get around the "no updates" problem with "In App Purchases"?

Or do "In App Purchases" not really allow for deploying new code and features?
Of course it does just because C# comes with all the bells and whistles doesn't mean you can't write your own in it. https://docs.microsoft.com/en-us/dotnet/api/system.threading...
> I'm guessing some overzelouse 20 year old at cellebrite "hacked" signal and wrote a silly blog post that no one at the company reviewed

More likely the opposite: Some engineer was tasked with adding Signal database handling, marketing got wind of it, and they went to town on blog posts and PR pieces about it.

Really though, they don't care that it's technically wrong. The target audience for this stuff isn't other engineers or technical people. It's their potential customers, who don't know the difference.
Elon Musk Floats Idea of One Company to Hold Tesla, SpaceX, Boring, Neuralink
It takes me a few minutes from getting an favicons from an SVG using Inkscape and Imagemagick, rasterizing it with:

inkscape -o icon-48x48.png -w 48 -h 48 icon.svg

...plus the other dimensions required and generating an ico with

convert icon-48x48.png favicon.ico
And nodejs or web eventloop is to JavaScript. They provide the executor and the timeout/IO primitives.
As an introvert, so level of becoming an extrovert has helped me. E.g. dating and the getting married, learning to dance and weight lifting, which helped with the dating and getting married. Also, Toastmasters got me comfortable speaking my mind.

I also try to achieve my goals in the easiest, most direct way. E.g. ask for a raise instead of wait to be given one, find the fastest way to finish the degree, use online dating, become Catholic to end the despair etc. Also, ignore the haters, of which there will be many if you follow my advice. But, there will also be more people that respect you for being direct and decisive. That being said, don't be a jerk, and use what you gain to benefit others, especially look out for those that get sidelined by society and give them a chance.
Right, Apple is asking you to opt-in for facebook tracking you, but opt-out of Google tracking you. Why aren't both opt-in if user-privacy is the true motive? One company pays 8 Billion for that, the other doesn't?
Yes and no. No institution (maybe 1920s Gottingen?) ever matched Bell Labs in their glory days.
You're correct, the title would more accurately say: "CEPR says Google/Fitbit will monetize health data and harm consumers".
You can see this right now on the front page with Googles ai reaserchers
> No, macOS is fine without SIP! SIP just defines a set of actions that Apple thinks no user, including root, should ever be able to perform.

I agree with Apple here.

> Consequently, disabling SIP empowers root users to do whatever they want, without Apple having a say in the matter—but you're still protected by the standard UNIX permission system.

It also empowers malware. The Creative Cloud, for example, installs as root and installs admin-permissioned services. The standard POSIX permissions system is crap, and SIP is a huge improvement and valuable tool against malware.
> when you have a huge number of very small tasks running concurrently because that's generally where OS-driven parallelism tends to suffer but is it such a common scenario

Web servers are all about I/O and handling small tasks (requests), and are a perfect use case for asynchronous programming.

> That sounds like premature optimization in many situations IMO

Maybe in some cases... but then just don't use futures. Rust does not have a runtime, so it gives you the choice. std is all blocking, so you can spawn threads and do event-driven programming, which might be just fine for a lot of people.

async is more ergonomic for Rust specific reasons, makes sense for a lot of use cases, and was a highly requested language feature, so it was added to the language. OS threads can work just fine for many people. If that includes you, you don't have to use async.
Cody's Lab had a video about refining metal ores removed, as one example.
There are some pretty bad usability problems with most async APIs too.

One is they make your functions colored; async functions world best with other async functions while normal blocking functions work best with other blocking functions.

They also introduce a lot of noise; putting async/await everywhere doesn't tell you anything interesting.

Considering a normal-sized Linux server can handle a million threads without much trouble, it really seems like misplaced effort.
Different strokes, of course. Find the balance : ) I think it’s healthy to realize that even things/chores you want to do and would enjoy doing you may be able to pay to have done both sooner and more professionally, allowing you to partake in activities you enjoy even more. I just moved and had new locks keyed and deadbolts installed for $200. I could have done it, and have before, but I got to work instead and take off early to go hike with the dogs. I think a lot of capable people feel guilty paying for stuff like that because they like to accomplish everything themselves, which can be exhausting in and of itself. That’s the pitfall to avoid, I think.
Don't? For the sake of the future, don't use app stores that are monopolies.

Do both, at the very least.
Ohio legislature passes bill allowing home delivery of liquor
> If that was the case, it would be possible to opt out of notifications from group chats and still receive notifications for private chats, but it's not.

Uh, it's possible, and has always been? In the Android client at least, there's a group of big honking toggles under "notifications and sounds" that do just that.
i agree and i love the font. it looks like a proportional font but sure behaves like a mono. kudos!