skysight-inc/HackerNews huggingface dataset:
I will write absolutely clear code this way. I use that style anyway, quite often.

Optimization can work backwards in this regard.

For instance, let's consider CSE (common subexpression elimination). That allows some repetitive code to produce the same results as code that adheres to DRY.

E.g. stupid way to insert into a circular list:

node->prev = prev;
node->next = prev->next;
prev->next->prev = node;
prev->next = node;

The compiler has no idea whether node and prev are aliased or not. The assignment to node->next might be the same as prev->next, and so prev->next has to be reloaded even though it was just loaded in the previous line.

smart way: get a local variable for prev->next!

node *next = prev->next;

node->prev = prev;
node->next = next;
next->prev = node;
prev->next = node;

Bonus: much more readable, lining up in neat columns. Just one arrow in each line. If this doesn't generate at most one load and four stores, the compiler is garbage.

Also note that we can reorder these four assignments in any of the 4! permutations and they produce the same result (unless there is aliasing, which would be unintentional and wrong regardless of the order).

Not the case in the original. For instance, it's important that prev->next is stored in node->next before the assignment to prev->next.

You can shoot yourself in the foot with local variables though. Caching is susceptible to staleness. You have to know when it is legitimate to keep using the cached value and when it must be reloaded or disused.

After our assignment prev->next = node, the next variable no longer represents the value of prev->next. In this case, since we are done, we don't care. If more code followed which still assumed that next is the original successor of prev (now the successor of node), that would be wrong.
OmniFocus 3 for iOS released
"2. Creates an incentive for companies to pay accountants and lawyers a large amount of money to find ways to engage in #1. All of this money is, in economic terms, deadweight loss."

I would argue that is not an issue because that happens anyway. There is not, nor will there ever be a tax point where these huge companies don't attempt to get out of paying taxes.
Or you have a barbeque on the beach and spend $200 on meat, with BYOB.
I think this might also be supported by looking at some of the better funded / successfully exited health tech startups.

I’m thinking of things like Flatiron Health, BenevolentAI, Quartet and Spreemo, and surely many more.

At heart these companies seem to shy away from being “really about” medicine, and try to be a more watered down data company, looking at health records, social media, and other data to provide recommendation, service matching, comorbidity analysis, hospitalist tools, cost tools, assistance program allocation tools.

I’ve been very interested in ML applications in health, but a lot of the businesses that seem capable of getting funding seem like they are super light / elementary on the statistical modeling side, and the value add is just a claim to modernize crappy claims data or unify a bunch of previously disparate health data sources.

Maybe more advanced use of modeling will come later, though I am skeptical just given the way that once big enterprise customers dig hooks into essentially consulting services for health records, they won’t let go.

Another thing that creeps me out is when you see e.g. an ex Palantir board member joining health record data companies. It’s not hard to understand why a big insurance company, or at worst even government agencies, want decision tools on top of huge stores of health record data. Do we really benefit from some super new / unproven startup building up that data set & tooling?
I imagine it would be similar to Mastodon, but instead of people being on a node, you'd have communities on a node.

One server might focus on the southeast, eg. /r/atlanta, /r/georgia, /r/falcons, etc. Another might focus on gaming, hosting subtopics such as /r/nintendo, /r/minecraft, /r/ps4, etc.

If you're on one machine, you can have it pull in discussions from other nodes. Or your client software might do that automatically for you.

Nodes might agree on a common short form namespace to refer to different communities, and we might even be able to bolt this on to existing systems, eg. /r/me_irl is Reddit, whereas /hn/show is "Show Hacker News". It doesn't necessarily have to be backwards-compatible with non-fedarated systems, but it could be.

I imagine single sign on, and good APIs for ingesting another community's or user's content. Ranking metadata can also be supplied by the host community, but local communities or individuals can apply their own transformative equations on top of them.
That's a different kind of signalling, for a different demographic with different values.
> Harbours are the hardest part for ships

I know almost nothing about it, but don't ships have to hire local pilots to navigate harbors, due to the local knowledge and complexity?
A few years ago my boss (in his mid-40s) said he had no idea what Reddit was, and my explanation to him was that it was the 2nd-10th best place to look for information on things, but it was the 2nd-10th best place to look for information on a whole lot of things. If you already have domain knowledge about a particular subject, then you might know of a better forum for that subject, but just going to /r/[whatever] would at least get you started.

These days it seems like it's more the 1st-10th, especially for new topics. I feel like a lot of middle sized gaming communities have settled on Reddit as the default forum. Larger ones can support multiple external sites, and smaller ones may never have their heavy supporters reach Reddit, but there seems to be a sweet spot where there's enough different contributors that want to congregate somewhere, and unless one of the early ones also has the skills to set up their own forum elsewhere and gets people to adopt it early, Reddit will end up being that place.
rust doesn't use dynamic linking, which contributes a lot to that size.
Thanks for noting this, as I am not a reddit or facebook user, the headline and alexa page said nothing of actual usage trends.
Looking at C2X list, I bet you aren't getting any of those wishes.

http://www.open-std.org/jtc1/sc22/wg14/www/docs/PreBrno2018....

I am with you on strict boundary checking and array base types.
With those you can normally distinguish what is paid advertising and what is the publication itself. This sounds like it violates that.
I tried Rider may be 2-3 months ago and it was much much slower than Visual Studio 2017. I also had problems with font rendering (I use DPI > 100%) and all dialogs like open file are non-native, but from Java. Looks completely different than standard dialogs from Windows. So I will continue to use VS2017.
> you're using maps, so why not offering the timeline of places you visited on maps

That functionality is tied in with Google Assistant as well, so if you have it enabled it tracks your Android phone all the time, not just when you're using Google Maps.
All life on Earth in one chart
Worth recognising that each subreddit is its own community, and like individual forums, will likely vary wildly by subject. My experience of subreddits for my interests and hobbies is the opposite to yours; information is correct and discussion useful.
Swedish Transport Administration replaces roof at train station with glass walls
The UB is the result of operations which assume invariants, when they are not met. Invariants are useless if you can't assume them. Having no UB in C would require having no way to break those assumptions but C is memory/type-unsafe so that's outright impossible.

Recently I've been trying to imagine what Rust's safe abstractions that use `unsafe` code internally would look like on top of some advanced mix of dependent type theory and proofs about state-manipulating imperative programs.

At that point, the optimizer would have proofs of the invariants it can rely on and it could even potentially emit proofs that every single transformation it performed preserves the (safe) semantics of the code being optimized.

But we're not there yet. Today, we need at least a small subset of the libraries of a systems language to prevent UB "by hand". And in C (or C++, although not necessarily for the same reasons), that's even harder, as there is no notion of a "safe abstraction" (one which you cannot misuse to produce UB).
Ought to be good, site was designed by the creator of Flask :)
It's an interesting talk, but, just for example: architecture dependent behavior is not something anyone really wants to prohibit in C. It's hard to believe, that DJB, who writes sophisticated C code that calls out directly to Intel vector operations thinks that should be machine independent. And his API analogy is wrong. If you have an API that responds to out-of-contract parameters by, e.g. rewriting code it is a bad API. People do fuzzing tests specifically to find badly implemented APIs that don't reject bad parameters. In particular, imagine an API that does one thing, the thing you expect, when called without optimizations, and breaks your program when "optimized"! I got to the node example and gave up. The compiler is not asked to check program correctness.
How to detect false investment strategies?
Woot, next up is assemble and link without binutils!
Things not in ferries' favor: wind, water currents, depth, other shipping which is often not very maneuverable and yet moving fast, no lanes, complex rules about giving way to other boats, and no ability to fail safe (just turning everything off is dangerous, possibly deadly).

Ferries crash real good, too (read to the end, about the second crash):

https://en.wikipedia.org/wiki/2003_Staten_Island_Ferry_crash
Sneaky. Ty for this, I had no idea.
Parking Policy Is Hot, Thanks to Donald Shoup
Or C++98, depending on the chip, if some of their docs are still up to date. :\
They did not gain $2.9 billion in cash from that. The transactions gave Uber ownership stakes in combined businesses. They got 27.5% of Grab. They got 36.6% of the Yandex merged entity. The gain referred to in the article is for accounting purposes.

https://arstechnica.com/cars/2018/03/uber-sells-southeast-as...

https://www.bloomberg.com/news/articles/2017-11-24/uber-s-pl...
Repository with text of DMCA takedown notices as received (by GitHub)
Yes:

https://www.nytimes.com/2011/06/16/nyregion/an-apprenticeshi...
The poor need bank accounts, and USPS has the answer
So the rest of the world should get annoyed with the opening dialog, so that the EU doesn't have to get blocked? Sounds like this could be solved by a proper solution, which the GDPR is not.
The concern is that Sam is offering this advice for founders not investors - and many would lap it up given the authority he has and make suboptimal decisions about their startup.

I think YC is probably HEAVILY influenced by appearance. Wrestle with the data little bit, check all the right boxes, prep that video, get some intros and your YC MBA is set.

Customers largely couldnt care less about one-man shows and even if in any specific case they do, it is very easy to 'look' like a company on the internet or in real life.

Amazon has always been a one-man show - but maybe thats why they never made money.
How Hard Is It to Build a National Face-Rec DB?
Ergo, she's an accused murderer! Your move, Socrates!
To say nothing of the fact that employees are also customers. Give them more money and there's a good chance it never leaves the building.
Surprise: You don't need to be in the Bay Area to build/run world class companies/products. Maybe sometimes to build, but definitely not to run.
(Technically it is not really an overflow check the problem in that case, but typically more the need of extending an index from 32 to 64 bits because the instruction set in 64 bits do not support indexing with 32 bits index)

If you want perf in a critical tight loop that has been identified by some profiling, you can easily optimize it yourself (and yes, typically bumping the counter type to size_t / ptrdiff_t is enough to optimize, but the advantage you have is that you can actually check that this transformation is sound according of the intent of the programmer of the original code, whether in the context of the C programming language, the compiler doesn't even try to check that itself, it merely blindly makes the hypothesis that there is absolutely no UB ever, and to hell if there actually was)

But anyway we have since invented sane languages in which we BOTH have safety, and the capability to apply that kind of transformations that have a small but positive perf impact. In some cases it is actually way easier to optimize using those approaches from safe languages than from mostly unchecked ones culturally full of type punning and other kind of insanity (like C is), and this is not even a recent discovery: there is a reason for why number crunching stuck to Fortran. So C should be kind of considered as a legacy programming language, at this point. A very important one for historical reasons, but one should think twice before writing new critical infrastructure with it...
I am appalled at the apparent ignorance/disbelief in so many comments from people who don't find it obvious that location history data from Google/FB is useful and profitable for them to have.
GridDB Community Edition V4.0 Has Been Officially Released
Python will be the easiest.
Java somewhere in the middle.
C++ will be the hardest.

I would suggest starting with Python. Once you're comfortable with Python, you should learn Java.

Unless you have a specific need, the next language could be C++, but equally could be Go, or C, or Rust, or Javascript, or Erlang, or Scala, or OCaml, or Haskell, or something else.

C++ is big and complex. I wouldn't recommend it as a starting point -- once you've got a few other perspectives under your belt, tackling C++ will be more productive.
I was a senior swe in Seattle myself. The total comp range is enormous.

Despite my handle, I didn't exactly live like a monk. 2k a luxury high rise and 3k for everything else felt positively princely (though the city has become more expensive since I left).
> 2. How to spread the knowledge from the courses I'm taking legally i.e. how much out of class homeworks/material is it okay to share?

I'd get this approved by somebody with authority at the university first (professor or above). Many professors re-use homework assignments, test questions, etc. You wouldn't want to get mixed up with accusations of helping other folks cheat.
He says it's vim's visual block mode + colour post-processed in GIMP
Thank you, that sounds like a pretty good idea.

Also realized, this is a bit analogous to how Bitcoin works. In Bitcoin _every_ other node in the network will validate (audit) some proposed work.
If at least 51% of the nodes in the network agree that some piece of work is valid, it has a good chance of becoming part of the permanent history (next block on the chain).
Help Save Lives – Full Stack Engineers – Work at RideAlong
Heh. Trend is a fun word since it both means "a continuing movement" and also "a fad."

"That's a meaningful trend in the data" vs "it's just a trend."
Kudos to you guys. Please report back in a few weeks with the metrics on the number of leads this created for you. I'm in the same space and this content marketing is golden.
Spot on. I’m into three main hobbies: gaming (and game development), audio production and recording, and photography (digital & film). It wasn’t until the other day when someone pointed out that all those hobbies are quite expensive that I sat down and thought about it: while I bought a lot of my gear second hand and did a good job of making my purchases efficient, it really does add up!
PyPRI: Low cost private PyPI cloud for your Python packages
Not necessarily: many people kind of assume the worst anyways, but without getting terribly riled up about it. To them, confirmation will read like tautology, hardly newsworthy. Those same people will tend to be sceptical of puff pieces, but if they occasionally let their guard down the positives might outweigh the negatives even if the conspiracy does come to light.
I switched from the native Facebook app to the web app in 2014 -- which is the last location Facebook has on me. I guess this explains why deleting the app gave me double the battery life.
You really hit on something for me.

I want some level of targetting in my ads. But too much and it becomes obnoxious and frustrating. I wish I could just check off the boxes I want:

- Canadian
- Lives in Ontario
- Male
- 30-39

Hmm yeah I think that's all I want you to use.

Instead they ask for nothing and seek to take everything. That's the part I can't tolerate.
Just a quick feedback on this: several people I respect find that this works really well. I've had mixed success. For example I often find people writing things like "As a user, I want to ensure that the application never crashes, so that I never lose data". This is not specific enough and fails the "how do I know when I'm done" test. I usually prefer to list the acceptance criteria in a format similar to "When <user role> does <X>, <Y> will happen".

I should be able to use the application in the <user role>, do <X> and observe that <Y> does not happen. That's my kind of litmus test. The <business value> is super important in the story, but I don't like them in acceptance criteria because they are often too high level. This, in turn, forces the acceptance criteria to a higher level in order to match.

But like I said, some people I respect highly really like this format, so it's possible that I'm missing something.
I think the difference is that the hobby is the thing you do, not the act of buying itself. I have a probably un-utilitarian hobby of building/upgrading maintaining my desktop computer. But still, the hobby is the building/upgrading/maintaining part, not the buying part, using the thing is great too, but I probably don't purely need everything I've put into it. So in a way, I don't get it either. With the watch example, the hobby seems to be the act of buying itself, since you don't actually doanything.
ELI5 with simple examples. Something like that. If you can't ELI5 the material then pick a lowest level higher than that that you can. The best scientists can explain their work and why it is important to a wide range of audiences. So the key is to give the context and why it's important and then how what you've learnt applies.
Thanks, totally valid feedback. Any specific products you'd recommend adding? Or just more advanced filtering?
Thanks for reading!

>Have you still been working with Sia?

Not really anymore. It's hard to walk away because I have so much fun experimenting with Sia, but I don't think I can really make a living doing anything with Sia. My Sia blog had a dedicated, enthusiastic following, but the niche is so small that the following was like 50 people.

>What are your thoughts on Filecoin or other alternatives?

I haven't looked too deeply into Filecoin. I read their whitepaper, but I feel like it's hard to really grasp before I have software I can actually run. They still haven't published any code, just some whitepapers.

Filecoin has so much money and so many employees that it's plausible that they're working on something in secret that's going to blow everyone else away once it's released. But it's also possible that they've got nothing and they're going to release a $250M dud.

I think Storj is a trainwreck with almost zero chance of coming out of the decentralized storage game on top. They're not even really a decentralized storage project. They're an open source project that tells people they're decentralized to cash in on the trend towards decentralization.

>You're one of the few people with any understanding of this, what are the barriers preventing adoption and even lower prices?

The biggest barrier right now is how difficult it is for customers to store data on Sia.

I can sign up for AWS/GCP/Azure and have data in their clouds in ~15 minutes. With Sia, there are SO many steps just to start uploading data and the process is not documented well. Not only that, there are huge waits between steps. So it's like start Sia, wait 36 hours for the blockchain to sync, create a wallet, wait an hour for the wallet to initialize, unlock the wallet, wait 10 mins for wallet to unlock, and on and on.

Even after Sia is totally initialized and ready for use, it's still much harder than anything else to use. They don't yet support backup and recovery, so you're stuck uploading an additional copy of all your data to another cloud provider anyway. And then even in the remaining scenarios, there are no client libraries for using Sia, so you have to write a ton of boilerplate code to wrap HTTP calls to their API.

>Have you read or contributed to the source code?

I've read a lot of Sia's source code. I'm the #9 top contributor to their core codebase. Relative to other cryptocurrency projects, their code is good, but that's kind of a low bar. I think their code has been degrading over time. Their functions are getting much longer, more complicated, and depend on increasingly complex lock synchronization behavior. Their builds are broken about 50% of the time just due to flaky tests.

>Was that too many questions?

I'm ready for more!
Will privacy rights stymie AI?
KPCB, but easy mistake
With no barrier to entry and selling $10 rides for $5.
> To me, reddit seems a great way for a community to reinforce groupthink.

I think this is due to its utterly basic up/downvoting as well as its completely-unenforced TOS which state you should not downvote simply for disagreeing.

When you downvote, you should have to specify a reason (such as "offtopic") and one of the reasons should not remotely be "I disagree"
Man. ^ This is a brutal revelation right now. Totally just opened my eyes to exactly why things have been going badly at work, despite formal process.
Which hardware should I use as a Remote Machine Learning Engineer?
I have a Rolex knock off, purchased in the mid 2000’s in HK for $200AUD that is so good that two watch repair places I’ve taken it to have declared it one of the best fakes they’ve ever seen. Which is quite amusing because I got it mostly as a joke! It’s quite a lovely mechanical watch on its own, even without all the “Rolex” bits.
This is not only how news works. Of course there are hot political stories of the day but 90% of the business and tech news is PR driven.

PR agencies have ongoing relationships with journalists covering the specific areas and routinely pitch profile stories, 'innovation' stories, industry trend stories, third party research stories, topical stories that show the company they represent in good light.

And for the financial press there is a whole separate investor relations team with their own PR agencies. Similarly for government relations there are teams with their own lobbying agencies all actively engaging their targets including the media. There is nothing inherently unethical about this, though there is potential, but this is how the industry and media works.
> C will stick around for decades and will continue to be picked up by newcomers. It doesn't have to stay as dangerous and uncompromising as it is now.

Exactly, even if most of us don't touch it directly, we need to use systems that make an heavy use of C (including Objective-C and C++), so it would already be an improvement to our computing stack if C could be improved as such.
It's growing rapidly and .NET Core is definitely ready for production, has been for the last 2 years.

It's not a simple subset of .NET Framework, there are distinct differences and cross-platform is just one ability. It's also smaller, faster, and allows for self-contained deployments that can run with other apps using different framework versions on the same machine. Also very simple to use in containers.

https://docs.microsoft.com/en-us/dotnet/standard/choosing-co...
I set up an entire flask dev environment with one pip command, too. Still no real barrier to entry, at least not any more than front-end development.