skysight-inc/HackerNews huggingface dataset:
C++ can be used safely without memory safety issues. But it requires expertise with the language, which is a very steep barrier for most programmers, even ones on the Chrome team to pass successfully. In a project as large as Chrome the vast majority of programmers will not have the necessary expertise. And sadly, in this case, what you don't know will hurt you. Is that a reason for not using C++: maybe. But you would be hard pressed to find a more performant language that is mature and stable.
Sure, that's how quality software is built. And performance is a key part of quality software.
> Neither of these things have occurred

How do you know unintentional confusion did not occur?
Has there been any work on how to leverage Rust's strengths for a GC language implementation? For example, Rust assumes unique ownership for mutable values; how do you express that the value is also reachable by the GC?
What's the easiest (and cheapest, price and disk space wise) way to do the opposite: install Windows/Linux on macOS for software testing purposes?

Might have to build Electron apps on it, I assume on Windows that excludes Home editions…
I love CS! I have made tons of best friends, both male and female from around the world. I hosted a lot (max of upto 20 ppl one night in Mysore India!) and surfed a bit on my travels and best is when you get hosted by your ex surfers!!
Monetizing couch surfing and providing the option of Joining via Facebook screwed up couch surfing according to me- the philosophy was lost. Earlier it was about travel, culture/ lifestyle experiencing platform, and had a word-of-mouth/kind of exclusive feel to it - you'd meet genuine people who took the effort to research online and find this forum. It was more genuine and with no expectations. I was very private about couch surfing, never posted stuff about it on my normal social media sites and never wanted to be famous for it. Soon after the Facebook link and those paid for profiles (green tick mark!! Ughh) all sorts of people ended up joining CS. In many countries, ppl are not aware of sensibilities and especially in a country like India, where women are stared at (even by my own friends! ) I had to keep a low profile. It was so so so hard to patiently educate friends, neighbours and family about basic concepts of travel, backpacking, alternative lifestyles.... Once Facebook got included, people found out and it became like a platform for users to brag about the girl they hosted and show off!! Yuck... BTW, I am an Indian guy telling you about hosting all the chillest open minded ppl in a small indian town! So trust me, it got BAD once non genuine ppl found out about CS! It's become commercial, about getting laid, and mostly all the cool vibe ppl are harder to filter through among the zillions of morons. It's become harder to connect now.
I hope couch surfing survives, maybe make some whole sale changes.

Stay safe everyone. Have a good time! ~*~
Depends on the reason for switching. If I'm asked to switch because the new stack is going to have measurable improvements plus the language is going to stay and grow (just as examples may be Go or Rust right now), then sure. On the other hand, if the reason is because the company fucked up by relying on one idiot with an elitist mindset about programming languages, then that request going to have to come wrapped with very good incentives. If I'm a great java developer with tons of jobs to choose from, you are going to have to give me a very good reason to narrow my opportunities down for you. Otherwise, I'd say no and move on and you can go hunting for devs for a niche language and pray to Gods that the hiring situation will improve for you.

Your example of Java to Python doesn't represent the gravity of switching from Java to say Erlang or Haskell. You assume someone says no because they are unwilling or unable. We are unwilling, sometimes, because of the opportunity cost we have to pay for your fuck up.
I’d like to believe you’re right about the end of the year, personally I don’t think things will be “normal” for a bit longer. But yeah, the “rest of time” is a very long time, and these theories forget how quickly we adapted to this in the first place. It’s reversible.
Yeah, that is really why one uses a desktop environment, more reasons to have to deal with the CLI. /s

Sometimes I question myself how could I have been so much into Linux 20 years ago.
I find it strange that they'd tarnish their reputation to try and compete with LinkedIn, but they seem to be a LinkedIn data partner? (not sure exactly what that entails).

Open your console on their site and paste this in:

window._linkedin_data_partner_id

Is there something else at play here?
We have it now, just not at most dispensaries. There's tons of well grown low THC hemp flowers out there with all kinds of blends of various different cannabinoids and terpenes. There's a stigma from some people about this stuff being "o'douls weed". But really these are really good strains. People can be fools. That's one of our basic modes of being I guess. These strains don't have the same effects as THC, but they definitely have a variety of interesting, palpable, soothing effects.
In addition to the isocpp guidelines, using the Address/Undefined Behavior Sanitizer goes a long way.
That is a very good point, thank you!
"But it's not in agreement with everybody else's charts, and it's early days when it comes to the epidemiology."

I haven't seen any other IFR estimate that included a breakdown by age group from a government or another authoritative source. Do you have anything particular in mind?

Is it a certain thing the risk for people under 70 is close to zero? Strictly speaking, no, it isn't.

It's unlikely we're going to see precise IFR numbers any time soon. But countries around the world are lifting lockdowns. Where I am, they're lifting it too. So I'll have to evaluate my personal risks without full information.

Why do I tend to rely on Spanish numbers?

- They are one of the hardest hit countries. If they had relatively few fatalities in the age group under 70, it must be reasonable to assume other countries aren't going to have significantly more.

- Don't have a link handy, but numbers published by Italian government had similar numbers of fatalities per each age group. (They didn't try to estimate IFR, though.)

- I don't think Spanish govt manipulates their numbers. But -- if anything -- they have an incentive to overestimate the IFR to justify one of the strictest lockdowns and a high number of dead.

I'm privileged enough, to be working from home. And staying as safe possible. I just think bad economy can ultimately take lives (not only livelihoods) of more people than COVID-19.
Yes. Reduced motion in accessibility still leaves you with a slow cross fade. With a jailbreak you can disable the animations entirely and apps will open instantly.
Product Marketing for Engineers
That seems like a strange thing to pine for. Why wish for additional lung damage if you can get the same effect off one or two puffs and move on with your life?
That could enable optimization. The compiler could remove many NULL-pointer checks.

On many platforms, all that is required is a change to the compiler. It could emit a ".quad 0" or equivalent, in a common data section at absolute address zero. Some platforms would require linker changes or even kernel changes.
Because you've set up the comparison in an illogical fashion it inevitably leads to nonsense.

> Well the same reason you don't share your email with the FBI and agree to be monitored at all times.

So if G=government requires me to do thing X, and X=I do thing X

G→¬X
G
-----
¬X

and then:

> I wear a mask, and I choose to wear a mask. I also wore a mask before it was "supported" by the CDC. If tomorrow it was legally required, I would stop wearing a mask.

assuming that again G=government requires me to do thing X, and X=I do thing X, you're saying that

G→¬X
G
-----
¬X

and also (because you have been wearing a mask):

¬G→X
¬G
-----
X

So then the "for the same reason" doesn't make sense. It invites the idea that the two cases are parallel, and the only logical way I see of forcing them to be parallel is if:

¬G→X
¬G
-----
X

is also true in the case of the FBI and emails.

How is it "for the same reason" otherwise?
The team behind the site appears to be making a concerted effort to accommodate long-time users. In addition to the default Modern search interface, they also offer a Classic alternative.
> I mean, would Lihoinfman be a bad name?

Yes, unless you say it like Professor Frink.
Generic data structures work great if they use a void* since malloc returns a void*. Just malloc your structs, and suddenly a single set of 10 or so functions can work with all data types to build queues, lists, hash maps, etc
Right! How can you share anything about your desire to find a new job without recruiters seeing it? And then, how do you make sure that the platform somehow excludes your current employer's recruiters? As with Ashley Madison, where you might find your spouse looking for you. So the privacy concern is a bit overdone, but nonetheless, the company's behavior is a bit shocking. If the CEO thought the users' profiles were as good as public, why not communicate that well to the users to begin with and later float the idea of making profiles truly public?
Redesigns should never, ever happen unless absolutely necessary. They're basically never worth it and almost always worse than before.
This is poor. Really, really poor.
https://blog.cloudflare.com/on-the-dangers-of-intels-frequen...

It turns out AVX512 doesn't give you the kind of performance speedouts you think. On those benchmarks, AVX512 is only around 8% faster than AVX2.

The reality is that AMD is killing Intel at every price point. My 3950x scores 12444 (no OC) and only costs around $400. Looking up on Newegg, your 10980XE costs... wait for it.. $3000.

Even with your crazy overclocking, that intel cpu is only 35% faster and 650% more expensive. How can you seriously claim that Intel is at all competitive with AMD?

And speaking of ML, it's rare to find a ML workload that is expensive that doesn't involve neural networks. And for neural networks, you should be running on a GPU anyways so I'm not sure how useful this DL Boost tech is.
Hi, I am working on a reminders centric product. And I think I might have a solution. Might be a naive and effective one or can be a totally useless.
Can we connect and discuss? Couldn't find your email on your profile.
The virus survives in water droplets or aerosol which fall down faster than smoke.

You can easily smell cigar smoke at 10 meters but you are ver unlikely to get infected at the same distance, current estimates put it to 4 meters in hospital settings.

Also,the amount of virus you receive matters, and distance decreases it.
Nice! I saw it was made with threejs which I hadnt really seen before. Gallery looks awesome. https://threejs.org/ eg https://bruno-simon.com/
There are idioms that you can use to help. Bounds checking solves the classic indexing past arrays problem and you can use tools to prove that you never use e.g. the basic operator[]s on types for which it is not safe.

Some of these idioms are not zero-cost though. My understanding is that to prevent use-after-free you basically can't use bare pointers or references, at all, ever. You need shared ownership everywhere (std::shared_ptr, not 0 cost), a garbage collector (In c++ that's probably another smart pointer type, not 0 cost), or additional metadata like the lifetimes fed into Rust's borrow checker.

Based on my reading here on HN, I think Chrome has a reputation of using modern C++ features extensively to try to improve its memory safety, but it's really hard to do in C++.

Edit: I realized this answer sounds like "yes idiom will fix it". To directly answer the question of "can you use idioms to fix this", no you can't. Evidence shows we screw it up. It's broken and you can't bolt on fixes to make it work.
Is smoke water droplets?
Unsure if DuckDB implements this in its column store, but another common feature is compression.

A page of field values is a much better structure to compress than a page of tuple values. This is especially true of the sort of denormalized data that is typical in analytical workloads. E.g. dates may only be considered in a period of a few years - this will take much less space to encode than the full allocation for a date data type. Similarly we may have categorical fields with only a few values. Imagine a product category with only 8 values. This can take a set of numbers which may be otherwise stored as an integer, and encode it to 3 bits, plus some space for a dictionary.

Another easy bit of compression to apply to columns is run length encoding. Dates, again, serve as a good example. If the data is sorted by date, you can choose to store a data structure that captures (start index, date value, end index). If you had 1,000 records on the same date, you could encode this with only three likely-integer-sized values, rather than 1,000 repetitions of a single likely-integer-sized value.

Such compression offers several benefits. First, it can reduce data volumes, and allow more query workload to come from RAM, either through DB or filesystem caching, or by an in-memory architecture. Additionally, the smaller the data size is, the faster a scan can be completed. Analytic workloads tend toward queries that require a full table scan (though with a columnstore, it's more a full column scan). If the data size is smaller, then you can stream the entire thing through whatever your query is faster.
Can you elaborate? I've seen benchmarks and from their website what I understood is that it can handle really massive reads and writes, tens (maybe hundreds) thousands of ops per second, but personally never tested to this extent.
At this point it's ancient history, but at the point I first came into contact with various electronic bulletin boards (FidoNet, Usenet) in the mid-90s FAQs were a ubiquitous thing. For many topics, just reading the official FAQ for that subject gave you a very good overview of whatever you were dealing with extremely efficiently. I've honestly never quite figured out why we moved away from that as the internet grew in popularity, but it's nice to see at least one relic still exists.
> Doctors were using free software that used dark patterns to get them to prescribe more painkillers

This sounds interesting and I don't see a reference on google, have any links about it?
>publicly demonizing these groups, we give them all the free publicity they need to recruit

This used to be true, say, of protesting Klan rallies decades ago. Now, however, platforms like FB are used to radicalize (sometimes surreptitiously) and can thrive in dark corners, as long as they reach their intended audience. Further, a frequent target is young white males, a generation of whom are growing up online. One mother has written a book about her experience, warning parents of the subtle ways they shift the dialogue and normalize racism via social media and online games. [0]

Once these ideas fester, it's very difficult to walk them back. This is dangerous stuff, no different from radicalizing terrorists online.

Deplatforming them works. FB should be doing exactly that, consistently.

[0] https://www.nytimes.com/2019/10/12/opinion/sunday/white-supr...
Some 19th century accounts by Westerners of encounters with Ainu are at [1], [2], and [3]. More can be found in books listed in the bibliography at [4].

[1] https://archive.org/details/in.ernet.dli.2015.237533/page/n8...

[2] https://archive.org/stream/in.ernet.dli.2015.31614/2015.3161...

[3] https://archive.org/stream/cu31924013977727#page/n209/mode/2...

[4] http://gally.net/jatsi/about/sources.html
In what way is making an unauthorized copy of software not copyright violation?
Show HN: When Not to Use JavaScript Arrow Functions
Even the best software engineers make memory safety mistakes.
So... you post a profile on triplebyte hoping to get recruiter interest, and maybe a new job, but prefer that your current employer not find out. How would that work, exactly? After all, your current employer may have recruiters who look at triplebyte and who aren't stupid.

The privacy issue is overdone: your profiles must be as good as public already. That said, the company should have educated its users first, so they understand this.
Show HN: An app that gives you information and feedback on food items
Yeah, a 3900x on Newegg is going for exactly $431.
Any ideas for how the system might work differently? Could peer review learn anything from the open source community?
Eye Beam
"sort of" is the key. If the language doesn't prevent you from shooting yourself in the foot, on any large project bad things will happen.

Safer languages are better tools because they make obvious when you're stepping out of the safe zone, which is not the case with C++, even modern releases.
70% of all failed jokes on HN were best efforts. But not this one.
Not right now, but if I find it becoming pricy I might ask users to verify their account by phone beyond a certain usage threshold, to prevent spammers from using it.

If it keeps getting bigger I'll try other database solutions (MongoDB, DynamoDb, ...)
I’m not sure I follow. Are you suggesting the addition of multiple mutable ownership of values to Rust, managed by a garbage collector?
Passing raw (non-owning) pointers is fine, even if references would be better. Heap allocating with new instead of a smart pointer is the problem.
Well, seems to me the difference between rowstores and columnstores might be a little more profound than just row and column major orders in C and FORTRAN. (Which I remember from back in the day)

In columnstores, it’s not just the ordering that’s advantageous for analytics. It’s also the possibility of scanning only the columns required (to the exclusion of others), and the possibility of column compression using RLE compression, which speeds up search when there are many repeated elements (also compression makes searches cache efficient). This means if you workload only involves a few columns, and your primary operations are filter and aggregate — analytics workloads — then the performance gains are tremendous.

On the other hand, if you want to optimize for row by row writes (OLTP), and if your workloads involve operations on many columns, then a rowstore is advantageous.

Row and column major layouts are more about exploiting sequentiality, but in practice both C and FORTRAN can provide good linear algebra performance.

But for analytics workloads on row vs columnstores, the difference in performance can be in the orders of magnitude. The fastest analytics databases in the world (Kdb, Vertica, Exasol, some of the newer GPU based databases) are almost all columnar.
See https://chromium-review.googlesource.com/q/project:experimen... for some work to integrate Rust in chromium
Can confirm: stuck on MongoDB. Paying them for hosting is one less pain.
> It's possible to do the same banking things using the bank's website both from general purpose PCs and browsers...

In my experience, this is not always the case. Some banks treat their mobile devices as more secure than website. For example, some actions would prompt an SMS MFA (I know, I know) if initiated from the website, but go right through if initiated from the app. It makes some sense, as on the app, they have access to things like location which they can use to make a better assessment on whether a request is fraudulent.
At some point, the idea that a tool is fine, it's just that everyone is using it wrong starts to become a reason to look for alternatives to the tool. Chromium is a large cpp project, with lots of resources behind it, but people still fail to write safe code for it. There are small bore efforts that can be done to tangibly improve things, but in the end it seems like the real solution is to start writing components in a language that offers better memory safety and maintains high performance. That is a huge, risky effort as well, of course.
I was compiling the new and experimental Emacs native package and was warned that the compilation time took over 7 hours on a "fast computer." I was pleasantly surprised that it finished in under 20 minutes on my 3900x. That thing is insane!
My guess is that the commenter is trying to say that security issues safe languages are probably a result of calling into unsafe code or a bugs in a runtime written in an unsafe language.
Basically anything that is protocol-oriented like WhatsApp. A lot of people will say fault tolerant, low latency, highly available and massively concurrent systems, and they’ll be right, but I think that’s only half the story. You also get a battle-tested blueprint for building these kinds of distributed systems. You will find a pattern here and there in other languages and VMs, but the cohesiveness of the package (language + BEAM + OTP + observability + patterns) is something really unique. Compare this to the Java ecosystem, where there are dozens of concurrency primitives and an even greater number of distributed systems libraries and frameworks like Akka, Mesos, Zookeeper, Storm, Flink, Samza, Heron, Helix...
I get the feeling it's because it's impossible to get away without using c for low level high performance stuff
Maybe they're just doing better on all fronts?
Which is funny because one of the things hosted Mongo will do is constantly send you automated emails suggesting that you should create indexes (for tables that MySQL or Postgres would laugh at)
>facebook to play judge jury and executioner on what and what is not acceptable speech is really unsettling to me

Who should police their platform? Or are you saying there should be no limits?
I gave up C++ 10 years ago and switched to more modern languages. I figured the language would die off, so am a bit shocked its still so prevalent. I really dont think there is any reason to use C or C++ any more, except perhaps some low level layer that interacts with the hardware.
>> and is killing an unprecedented number of people.

Black death.

Bubonic plague.

Smallpox.

Malaria.

Measles.

Polio.

There have been many more virulent and many more destructive diseases than this one. Malaria in particular has been so destructive over thousands of years that it has modified human populations, forcing observable natural selection for traits such as sickle-cell anemia. https://en.wikipedia.org/wiki/History_of_malaria
I believe Chrome makes heavy use of both. The issue is that they are not precise and they are inherently coverage-guided, so you may still never hit certain issues.
But AMD CPUs are so much cheaper and have so much better performance you could buy an old-gen graphics card and it still would still have better price/performance than Intel.
Yes. THC is anxiogenic and pro-psychotic in high enough doses. This is not controversial. And CBD is anti-psychotic and anxiolytic in high enough doses. Those doses vary by individual. But these are basic, general facts studied and acknowledged by cannabis researchers and advocates alike. This isn't some drug war propaganda. It's the result of research that was enabled by the legalization effort.

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2801827/

I've seen two peoples' [predisposition to?] schizophrenia catch up with them during times when they were smoking a lot of weed. I've also personally experienced high THC weed exacerbate my own mental health.

And I'd actually blame prohibition for producing all this high potency space weed coupled with an foolish assumption that "high potency is better because it's more bang for your buck." (If you can handle your space weed I'm not mad at you!) I'm extremely grateful to the people who worked so hard to make cannabis legal, because now we have people growing a variety of strains that work for everyone.
Containers and smart pointers will pretty much do the trick. There's really no need for manual memory management anymore, can't remember the last time I used new/delete. Only problem is most large C++ apps, Chromium included, are older than a lot of the language features that have made C++ much safer these days.