skysight-inc/HackerNews huggingface dataset:
C also has only pass-by-value semantics. The difference is that you can take the address of a variable, i.e. you can stack as many layers of references as you want. In case of the C++ swap:

template<class T>
void swap(T& a, T& b) {
T tmp = a;
a = b;
b = tmp;
}

When called as

int a=1, b=2;
swap(a, b);

The variables a and b are passed by reference, or you can think of it as an implicit pointer. This is the meaning of pass-by-reference - changes made to the value of a variable directly impact the referred-to variable.

Pass-by-reference can be confusing and its inclusion in C++ is useful as immutable non-null pointers, a use which modern languages support in various other ways. Thinking of Java objects as pointers to objects might be a bit confusing at first as well, but it's the correct mental model for what's happening under the hood.

It all goes back to understanding computation in the context of a von Neumann machine with addressable random-access memory, and knowing that values are stored in numbered memory cells, so variables can be either the memory region itself, the memory region's number, which itself can be stored in a memory region whose number can be stored in another ... etc. You can't abstract away the basic properties of the computing architecture we use, so it's a good idea for programmers to have mental models of computer memory and programming language variables that are fundamentally congruent with the von Neumann architecture.
I'm reminded of this article:

https://blog.kentcdodds.com/write-tests-not-too-many-mostly-...

This is advice I generally follow - most of the time, I find I get the most value from integration tests.
modafinil and methylphenidate, possibly (https://www.ncbi.nlm.nih.gov/pubmed/28119083)

I add “possibly” because the abstract mentions two effects: losing more time due to running out of time and playing better, and doesn’t discuss when one of them might be better.
Would anyone ever say something like “I just couldnt get into writing code yesterday, and I’ll try to do yesterday’s plan today.”?
Esvelt's work also shows up in a proposal to modify mice on Nantucket Island to
reduce the incidence of Lyme disease, which affects 40% of the human islanders.

https://www.nytimes.com/2016/06/08/science/ticks-lyme-diseas...

The gene drive technology looks like a classic "great power, great
responsibility" tech, with possibilities both for global benefits and
global disaster. We already have political struggles over managing
long lived nuclear isotopes, but genetic manipulation of wide-spread
endemic species seems like a space in which unforeseen problems have
the possibility of becoming immortal, modulo additional genetic tinkering.

We look back at how people in the Victorian era carried plant and
animal species around this planet, willy-nilly, and shake our heads.
Will future generations thank us, or revile us for how we use this tech?
> This seems to be one of the modern ways that friendships are built - meet IRL, connect via social network and then always have a connection of some sort which allows the relationship to grow if nurtured. In my case I don't see or talk to these people until the next physical meetup and so I'm "out of sight, out of mind".

I don’t think that this phenomenon is attributable to Facebook. I.e., Facebook doesn’t necessarily steer you toward meaningful interactions, and even without Facebook you can nurture a friendship using SMS, email, and so on. Developing friendships takes more effort than a typical Facebook interaction allows (“liking” a pic of someone’s food or whatnot).
The Clio Awards do (source: I won one as part of the Media Lab team at Bleacher Report).

They credit the team but specifically name the individual members as well.

The Clios are pretty big as industry awards go.
There can be an original meaning. The idea of hiding pointers and not allowing them to be reasoned about separate from the objects they point to is a relatively new invention. The terms "pass by value" and "pass by reference" predate that invention.
> You might think that the value of foo is that which is compared when evaluating foo == bar

Few if any working Java programmers do think like that though. Like, if you have String x and String y, and println(x); prints "foo" and println(y) prints "foo" and x != y (a perfectly ordinary situation to get into in Java), we would still say "the value of x is "foo"".
I could actually see someone adopting that approach, on the theory that as the number of items you consider to be bad on the site goes up, so does the probability that it will include bad items that your blocker does not yet know how to stop.

However, someone using that approach should bail on the site when the number blocked reaches some fixed threshold. That's why I thought it bizarre to wait around until it had finished before leaving.
Ask HN: Will CUDA continue to dominate?
Most of us who have played around with deep learning frameworks know that you need a CUDA-enabled GPU to get proper hardware acceleration. And, Nvidia is the only one who produces chips with that proprietary technology.

My question is, why haven't we seen a shift away from this? It seems very limiting and closed for an ecosystem that is otherwise rather open and progressive. Will Tensorflow et al eventually adopt OpenCL / Metal / etc, or is there some reason that we'll still be stuck with CUDA in the near term?

I am just a hobbyist, so my assumptions may be completely off, and maybe these things are already happening. This has just been a question on my mind lately, and I felt that this is a good place to ask.

Thanks!
How do you weigh that against the fact that he simultaneously has probably had the largest positive impact on the sport and hobby of cycling in history?
Godot: Introducing the new axis handling system
"Nuance and similar companies used to do are still competitive"

Surprised. Curious if you can compare the inference per joules of Google 1st gen TPUs compared? Google shared a paper and the numbers are pretty impressive and was not aware of anyone else close to the gen 1 TPUs?

Here is the paper that you can use for the TPU side. Love so see someone else in the ball park? We really do not want just one company but competition.

https://arxiv.org/ftp/arxiv/papers/1704/1704.04760.pdf
Just the right amount of flourishing for a lazy Sunday :)
duckduckgo because i love of the bangs !gh !npm !yt !gm but also !g sometimes.
Is there an open source project where I can test this? I don't know much about C++ (I know some C), and would like to see this for myself.
The thing is it is not simply the training but the inference aspect would have require an incredible amount of compute compared to the old way of doing it.

Hope Google will do a paper like they did with the Gen 1 TPUs. Would love to see the difference in terms of joules per word spoke.
That was an amazing story!

I just hope that he is being payed fairly. Here is an example of someone who is disabled and not being payed fairly in my opinion.

>Kandu Industries can pay Chris and roughly 150 other workers substantially below the federal minimum wage of $7.25 an hour because of a 1938 provision in the Fair Labor Standards Act that permits employers, who apply to the Department of Labor for a waiver, to pay lower wages to people with disabilities.[1]

>According to the department, about 20 percent of people with disabilities participate in the workforce, and of that group, about 3 percent, or approximately 195,000 workers, are being paid subminimum wages. These workers typically make well below the minimum wage, sometimes as low as “pennies per hour,” according to the Department of Justice.[1]

(Many People With Disabilities Are Being Paid Way Below the Minimum Wage, and It’s Perfectly Legal)[https://www.motherjones.com/politics/2017/08/many-people-wit...
Absolutely. But by providing no formal mechanism, quoting is used extremely sparingly. Which is good.

(The mobile formatting issue wouldn't happen but for a few rare crazies who attempt to hijack the wrong syntax.)
I wonder if there is any kind of authoritative definition of these words that would apply to Java, C#, C++, and other languages. I suspect not.

Compared to C++, Java object variables behave more like pointers.
> I'm saying the key idea behind implicits is the realisation that default arguments merge two ideas that should be kept separate, if we want context dependent defaults.

This isn't true though - that's not what implicits are for and not how they're used. Indeed the clearest proof is that Scala still has default arguments, and they still have the behaviour given in your OCaml example. They're different things.
Somewhat tangential anecdote:

I used to work a LONG time ago for a company that built Yahoo Small Business ecommerce websites. They used a tool called RTML ("Robert T Morris Language"), which was essentially HAML, powered by Perl, and constructed using a GUI (no text editor interface). Select where you want a node > New node > select node type > Save...each action was a full page load. The process was excruciating, and I was in charge of developing tools to automate the upload of "template" files from the developer's machine to the client's Yahoo Small Business store.

At the end of the day, the customer would load up all their goods into the Yahoo database and hit "Publish", at which point a multi-hour job would kick off to run their RTML against the database. The result was a completely static ecommerce website. Only the cart/checkout pages were dynamic, and those were using shared code.

The development process was a nightmare. The client experience was really bad (want to fix a typo? You're going to wait a couple hours). But I'll be damned if it was possible for anyone to hack those things. There was nothing to hack.
Or it’s a reflection of a lack of rigorous training. Lots of folks like to infer and consequently assume without reading.
The problem, as I see it, is having Scrum certifications and certified Scrum Masters who follow a rigid process with many conditions (which is antithetical to the agile mindset).

I know “low process overhead iterative waterfall” sounds agile, but somehow the word “Scrum” seems to make people want a certified Scrum Master (these people usually frown on waterfall-like processes even if those are better suited for delivery).
The new world "pyramids" were nothing like those of Egypt. Stepped temples is a more accurate term.
Does the SSD have network access?
Looks like my favourite is missing: Sakura.

http://www.pleyades.net/david/projects/sakura

One of many that wraps libvte - but it's pretty small, and does everything I need.
Here is a great paper that might help.

https://arxiv.org/ftp/arxiv/papers/1704/1704.04760.pdf

But also this is a great example of why these new "AI" chip matters. This would NOT be possible with the Google chips.

https://cloudplatform.googleblog.com/2018/03/introducing-Clo...

I do wish Google shares more detail. Specifically how they are doing 16k samples a second through a NN. That has a lot of application beyond speech.

Some things Google will not share and this might be one of them but we can hope.
Ah, I see the reasoning. I only did basic Java in university so I might be remembering incorrectly, but aren't variables storing non-primitive values called "References"?

Seems weird to me to say that Java "passes by value" when all objects being passed are actually references to objects.
Amazon’s Typical Worker Is in a Warehouse Making $28,446 a Year
I always love reading stories like this - even with such a disability, he has been able to accomplish a feat that is relatively difficult to accomplish for most devs. I have heard my own company has blind developers as well, and accessibility is a first rate concern for us.

I do wish more companies invested in being accessibility friendly - not doing so automatically shuts a portion of population away from the product(s) by default.
So if you are in the Apple ecosystem. You get an AppleTV and you get the best support for all of the popular services. Either using the native apps or Airplay.

If you are in the Android ecosystem, you get a device like the Nvidia Shield that does support Chromecast and Amazon Prime and native apps. On top of that, you get a stand-alone Plex Server that supports transcoding.

If you don’t care about Chromecast support and you own an Android device and you want something cheap, get something on the Roku platform and you get most of the same benefits of a Chromecast and every streaming platform supports the Roku.

So why fool with either the Amazon Fire Stick or Chromecast?

When the 9 year old computer that I’m using as a Plex server gives out on me, I’m thinking about just getting a Shield to replace it.
I think it would be better phrased as suggesting they thought they understood but really didn’t understand the problem and therefore made a preemptive conclusion.
You download some popular iOS game. But in the background it’s fetching a List of urls, crawling it and sending results back to mothership.

How would an average joe even know?
That fits with Tesla's stated plan, which is "to accelerate the advent of sustainable transport by bringing compelling mass market electric cars to market as soon as possible." Tesla doesn't have to be the #1 auto manufacturer, nor does it even need to survive. As long as EVs are "fully commoditized," the company achieved its mission.
Ask HN: How do you document your life and preserve memories in the internet age?
Prior to advancements in digital technology, documenting your life involved developing photos, scrapbooking, holding onto keepsakes/souvenirs from specific times/events, or just abstaining entirely to focus more on the experience itself. Nowadays, though, the tools used to do this have shifted more towards social media platforms.

With recent controversies around the power held by tech companies, I've been thinking more about this shift. By posting pictures and by making posts about my experiences to preserve them and share them with my friends, I feel like I'm giving up ownership of those memories to whoever is hosting that platform, be it Facebook, Instagram, Google, etc.

I'm not sure whether that's a big enough deal to decide to stop posting entirely. I'm also not sure of any alternatives that may exist. Every time I get an urge to share something fun or exciting that has happened in my life, I second guess myself, because I haven't figured out where I stand on the privacy vs. convenience discussion.

What are your thoughts?
I think in this context "everyone" would mean "society" or "community", not "every individual". The original proposition was that crypto-mining could be done with the proof-of-work (or whatever the logic is) having some general benefit to society beyond the pure profit motive of the individual doing the mining.
It would be great to hear someone's opinion about this.
We should start talking about actions that contribute to global warming in a significant/active/systemic way as crimes against humanity. That is what they are. Executives and politicians need to know that that is how we will judge them in the future.
Suppose that a machine succeeds fast, not fails fast. Say a machine's job is to run N things on its input, and the identities of these N things are picked up from configuration somewhere. One machine gets a corrupted config somehow, and has only 1 thing to run. The others are running 10 things. So one machine is (barring framework/networking/etc. overhead) 10x faster than the rest, and it thinks it's doing fine. Now even if your mind is stuck on HTTP, you have to think about the same problem but with 200 response codes. Still a non-issue?

And what if the responses are opaque to the LB? TCP-level load balancing, maybe? There are reasons you might choose that. Or maybe the protocol you use is not HTTP-based and you don't have a way to teach your LB about it.
Positraction was a brand name used by GM for some limited slip differential systems.
I founded Happy Cow Milk to make a difference in dairying. I failed
Why is minimum wage fair, and why is it better for people with disabilities severe enough that no one wants to pay them above minimum wage to not earn anything?
DuckDuckGo. I went back and forth between DDG and Google a number of times before I managed to stick with DDG. I rarely go to Google at this point, only in cases where the search is extremely specific and it really needs Google’s omnipresent eye. DDG’s results have gotten a lot better in the last year or so and the !bangs are super handy.

Meanwhile Google is experimenting tirelessly with AI that ‘corrects’ my searches, pushes mentally draining and content starved hype sites to the top and redirects me to buggy AMP versions of sites that were fine previously.
This story is very inspiring. How is he able to do his work without looking at block diagrams, complicated entity relationship diagrams, writing on paper to clarify among other things which I as a sighted person normally do?
Easy to say in retrospect, but solving many problems in one device was revolutionary. Earlier PDAs weren't actually that personal which was the tipping point.
Saerx.me because it uses other search engines add a proxy, giving me the privacy I desire. Also, I live in China where, arguably, the best engine is blocked. Searx.me also gives me access to it without firing up a VPN.
There is a real and exact meaning in programming language semantics. It's used consistently in language specs and literature.

Then there is another meaning that comes from misunderstanding
the exact definition or trying to guess the meaning. Lisper is trying to argue for that. This definition is not used anywhere where programming language semantics is written down. It lives in the realm of blogging
and forum postings.
Because your UI is bad and makes it difficult to create playlists, you don't want to bother fixing your bug that causes users' data to be lost, and you blame all of this on Amazon. I know you do all of this for free, but that doesn't mean you can blame all of your mistakes and problems on Amazon.
Ah! Correct you are. Fixed. Thanks!
Rightly or wrongly, universities are not vocational colleges. They exist to teach the theoretical principles of a field, not the practical skills of a particular job.
Any image based captcha where one needs to identify words from an image can be easily broken by algorithms now.

Google would be the leader with re-captcha, but as a human, I fail a whole number of them. They are a very annoying experience to your users.
Kontena Pharos 0.6 now with multi-master (HA) support
> Musk said he wants all parts of the company ready to prepare 6,000 Model 3 cars per week by the end of June, triple the rate Tesla has achieved in the recent weeks.

This sounds like madness, and I wonder if anyone believes them.

Has anyone made a timeline or visualisation of Tesla's promised production rates vs reality? They appear to be constantly off, and now they're apparently doubling down and promising a production target that seems even less realistic than the ones they already failed to achieve.
There are many researchers not bound by NDAs making novel chip architectures, some of which are on HN.

Secondly, GPUs don't really have very much hardware specialized for graphics anymore. If we called it a TPU I'm not sure you'd be making the same point :P At a company like MS/FB/Google where you don't need to leverage selling the same chip for gaming/vr/ML/mining for economy of scale, like you said you can reduce your transistor count and have the same compute fabric. This would reduce your idle power consumption through leakage but you wouldn't expect a huge drop in power during active compute. Because the smaller precision compute ends up increasing the compute per byte, you either need to find more parallelism to RAM, get faster RAM, reduce the clockrate of compute, or reduce the number of compute elements to find a balanced architecture with lower precision. If you just shrink the number of compute elements - voila! - you're close to what NVIDIA is doing with ML cores.
Level 4 self-driving seems the second-least desirable after Level 0, as it's entirely passive but requires full active attention. It's a ripe situation for distraction, something Tesla cars attempt to combat with the "wheel-squeeze".

From a cynical perspective, it's easy to see a future where we constantly approach, but never quite reach, full Level 5 autonomy - or at least not with existing technology. Maybe Level 5 will prove to be an NP problem. Marketing teams are likely going to promote terms like "Level 4.1 self-driving" or "Level 4.5 self-driving" or "Level 4.9 self-driving", as edge-cases are slowly resolved.
Secrets of Music
Those parents are pretty amazing. To see their daughter go down that line and then to step up to the place and do it all over again in their old age.
Transparency is a function of wavelength/photon energy as well as the underlying material. Glass (the silica version) is opaque to portions of the UV spectrum.

Generally you'll get absorption (opacity) when the photon energy exceeds an energy gap, allowing valence band electrons to be bumped into conduction bands, creating a corresponding hole in the valence. In the case of metals, there is effectively no gap at points in k-space, so there is absorption throughout the spectrum.
I know this guy, he lives, or used to live in the same apartment complex as I did, and I would see him almost every day at the bus stop. He is a real warrior. Whenever the Front seats were busy he will encourage people to stay seated and he would find an empty seat.

It's very nice to see Amazon wrote the article about him!
Family of five. When we travel I want to take a small number of chargers, each of which can serve all our devices, rather than having to remember a special snowflake permanently paired to exactly one device.

Home is similar. One commodity charger on the table next to the couch can serve any of our laptops, tablets, or phones.

That's the world my family has now, with a couple male-to-male USB-C to micro-USB cables as adapters for legacy devices that haven't died yet. It's as easy as I'd imagined, and until something even more standards-based and capable than USB-C comes along, we don't plan to change. Unfortunately that rules out this laptop, which is too bad because I like what it stands for.
Some things are surprisingly hard to automate. When your parts are hard to grip and have high tolerances and some are broken, good luck in getting a robot working reliably.

Humans are in many conditions surprisingly fast, accurate, flexible, space saving and cheap when compared to a special robot that does the same thing.
‍️
That's totally disgusting. Not only do they start out with a bad hand, this is then used to exploit them with the blessings of the government.
the effort to get started and the social graph issue are related. If it were easy to install and get my friends connected to the same networks I'm connected to, then I'd be way more inclined to be the first person in my network to recommend it to friends.

Today the bar is really low for 'easy' - clicking on a web link and providing some credentials. I think having a really nice introductory web experience and the ability to have the same experience on multiple devices for the same user is a must-have for this. I understand they're working on it, but in my mind it's the #1 barrier to adoption.
Equality on strings is a common source of confusion in Java, and I think that's because many newbies aren't properly taught the kind of semantic pedantry we're discussing... and because the language design is weird.

Strings pretend to be immutable value objects, but they still have object identity, which doesn't really make sense as far as I can tell.

It still seems to me that the only good definition of an object variable's "value" in Java is its pointer.
damn that is incredible! i had a hard time understanding the function names they were being spoken so fast, i wonder if his ears have adjusted and tuned to that speed?
I think I find the prospect of a random call center employee being able to commandeer my vehicle more concerning than AI screwups.