skysight-inc/HackerNews huggingface dataset:
That is a cop-out, and entirely useless definition of "correct".

Why don't we call that what the compiler emits when it encounters undefined behavior not "correct" but "invalid" or "wrong"? It's a matter of changing the terms to not overload "correct". The compiler is free to output "invalid" code on "invalid" input - garbage in, garbage out. But to use the term "correct" is silly.

Going a bit further, I believe a compiler has the right to do sensible things with undefined behavior. I greatly prefer it to do the obvious thing, when it can't do the correct thing.

In this case, try to execute the function at the address given by Do; since Do is uninitialized just use the number already in memory at Do's location as an address. I would also not be surprised if it initializes it with 0, and places EraseAll at 0x00, and thus calls EraseAll (although I know that address spaces on modern computers do not work like that).

In reality, I would expect the program to crash most of the time with an access violation, rarely with an invalid opcode, and extremely rarely call one of the functions (when Do contains that address by chance).
Yeah, agreed. I wasn't interpreting that as an attempt to end PED use, just to mitigate damage once it's found.
Very good point. Odometers (tachometer measures RPM, odometer measures distance) are not as reliable as some may believe, and even if they're perfectly accurate, there are so many variables that it's hard to control. Smaller tires spin faster, which drives up the miles read. Tires get smaller as they wear, so the odometer can be calibrated for new tires but will quickly become inaccurate.

But the odds that your odometer is accurate is very slim in reality: http://www.azfamily.com/story/19769079/tests-show-odometers-...
It's not creative or guessing. If you write a function without "static" it means you intended for it to be called externally.

It's not theoretical at all: Before I saw this thread, I was in the middle of writing some Haskell that loads some non-main symbols from an object file derived from an executable's source code, and invokes them. People carefully mark which functions are or are not static to ensure their executables don't get bloated. I'd be very annoyed if my C compiler didn't take symbol visibility into account when optimizing, because I depend on it all the time.
Advertising is something that could easily be banned. You do need to weight benefits to decide if that’s a good decision or not.

Many places have made that decision.
And everything you buy costs more because of advertising. A few years ago a paper I read said the pharma industry was spending as much on advertising as on R&D.

The idea we couldn't find good products without advertising seems pretty moot with internet search available. The greater problem is seeing through the advertising to assess the product - there's a lot of things like market segmentation based only on different packaging (more wasteful, 'oppulent'). The Capitalist notion of value optimisation might work with false representation and coercion removed from the equation.
Did you look at the address bar while posting this? It says, "news.ycombinator.com", not "reddit.com"!
I would have expected something less dogmatic from Hume, himself a philosopher. The irony is that the Dialectic of Enlightenment is exactly about this kind of attitude spawned with the enlightenment and its relation to the old Greek mythos. Sometimes I think that empiricism fell out of favour for a reason; the wide dismissal of the Continental branch is astonishing and rather ignorant - but who could blame Hume, for German idealism came about after him.
Show HN: How much developers earn?
Time for a new branch with rails then!
Oddly enough, I would apply some of these practices to real projects as well.
You can checkout the code of the same here : https://github.com/resume-nation/resume-nation.github.io
Welcome the the “First” Banner Ad
Sorry, 'spiked' was incorrect. I should have said 'pulled', since the article was briefly taken down and then restored. Thanks for catching that.
Parametric search tools are great for Digikey, but they're very hard to implement elsewhere. They're much less useful when you only have a small number of options. They're bad at quantifying qualitative properties like fit and finish or ease-of-use. And you can only compare closely related parts, because until you drill down to the level of, say, a parametric search for exclusively PMIC-Voltage Regulators-DC-DC-Switching controllers, it doesn't make sense to ask what the topology or output configuration is.

Plus, it's extremely tedious to collate and filter all of the properties needed to make them work. Ebay and Amazon barely do it at all. Newegg and McMaster Carr do OK. Only EE components seem to be demonstrate the ideal parametric filter systems that negate the need for advertising.

But I'm still a sucker for buying Linear Tech or TI components before, say, Maxim or Toshiba because even if the parametric search say that both options fit my requirements, the former seem to be better documented and more user-friendly than the latter. That's the kind of advertising you only get through years of writing expensive and high-quality technical papers and producing high-quality parts, and I suppose there will always be value in advertising that fact (or suggesting that fact, regardless of whether it's true for other advertisers) to less experienced engineers.
You shouldn't use cat for a single tar. Less will work just as well.
"Conveyor-belt sushi" has such a terrible connotation. The worst of fast food, cardboard cuisine, mindless automation, and glassy-eyed consumers.

That said, the concept of what is effectively an automatic rice-forming machine seems pretty tame and reasonable. Compare dicing an onion by hand vs. using a robot-coupe.

I was particularly struck by the dedication here: it took 5 years to get the machine to "work". Keep that in mind the next time you are building your MVP.
My Toshiba has the option of only charging it to 80% while plugged in, called Cell-Saver. Just feels better not having to worry about cell degradation.

I mentioned this to a colleague lately who looked at me like a strange animal for having:"worry about cell degradation" even on my list.
They do plan on replacing component by component so not sure how that will be in the case of Gecko, unless Gecko is already designed with pluggable parts then it would make sense, otherwise they might have to replace a lot of moving parts (not sure how large Gecko is / how much it needs to function) but it'll still be done in chunks if it's too large I'm guessing.
I'd suggest linking to the github repo in the footer of your site
60,000 People Are Evacuating a German City After a World War II Bomb Was Found
Good points in there. I have a little trouble with "mistake #5" though.

I found that worrying about deployment automation early on is immensely valuable, especially for side projects. I don't always find time or interest to keep working on side projects after a regular day of work. Quite often there are weeks or even months where I abandon a side project only to come back at a later point when motivation is back or things have settled down and leave more time for my side projects. If I didn't take the time to automate testing and deployments (which makes a lot of what continuous delivery is about) I find myself struggling with getting things up and running and become frustrated before I even get started.

Then there's only one way to make sure that my test and deployment automation keeps working: running it regularly, e.g. in a pipeline.

So, yes, don't over optimise your deployment pipeline early on. But having one in place early can pay off really soon -- and maybe even keep your side project alive.
2 flaws with this article.
1) Using a Beta product and complaining on Angular2. You could have waited till the product is matured
2) Blaming for the developers inefficiency on Typescript. If your developers coding speed is reduced blame on your developers.
Your title and article appears that something is wrong with Angular2 and moved to Vue.js. Before you post such articles make sure what your write makes sense
Not a joke, but "code as data" was hyperbolic.

You can do some pretty amazing metaprogramming in Python with metaclasses, and the inspect and ast modules give you access to the guts of the language.
Yes!

Also motors — kids love moving toys and a couple of small motors means you can make cars and fans and stuff.
The issue of that is that for the first month, between 40 and 90% of the ticket price goes directly to the studio (not to the cinema). Plus you pay (cheapest value for Frozen, English, 2D, 6 months after release) usually at least 8'000€ per week to rent the movie.

So the cinema has to somehow make money – and that is with ads and food.
Very interesting approach, and intuitively it makes sense to treat language less as a sequence of words over time and more as a collection of words/tokens with meaning in their relative ordering.

Now I'm wondering what would happen if a model like this were applied to different kinds of text generation like chat bots. Maybe we could build actually useful bots if they can have attention on the entire conversation so far and additional meta data. Think customer service bots with access to customer data that can learn to interpret questions, associate it with their account information through the attention model and generate useful responses.
I didn't say anywhere in my post that if I see an advert, the product is instantly blacklisted -- only that it counts as a negative. So, if I had to choose between two otherwise equal products, I would choose the one with the least (or least annoying/intrusive) advertisement.

I also perhaps should have said web adverts. I don't much pay attention to TV/radio/magazine/newspaper/billboard adverts, so I imagine I buy many products advertised there.

I'm also not saying I don't buy any products that are advertised or that adverts don't work on me, but rather that:

1) If I'm looking for a product, I'll search and read reviews and such, but if I see advertisements, it counts as a negative point. I may still buy the item if it doesn't have enough other negative points.

2) If I see the same irritating advert multiple times, I'll make a mental note to never buy it. A number of youtube preroll adverts have had this effect.
Phones support Opus now? Or is the decode entirely in the CPU? Phones have more than enough oomph to do it, but you'll probably lose some battery life that way.
Actually I've done it. Thank you for the idea.
Google ARCore vs. Apple ARKit Augmented Reality
I can tell this article was written by a very wise man who wasted time on lots of projects or saw a lot of other people waste time on projects. He's described behaviors I have dabbled in many, many times.

In fact, I have a side project currently where I just needed to fabricate a tiny fixture for a physical device. I caught myself over-engineering the prototype, went to sleep, woke up, saw this article and came to my senses. Consider this article bookmarked!
Man, I think this article is dead on, except it doesn't identify the original reason, for me at least. In a normal environment, there are constraints on time, money, goals, resources, etc. Suddenly, when there are no constraints, a side project, you try to do everything perfectly, which leads to the issues in this article.
There seems a good possibility that other less 'good' companies are stealing the clientele away with advertising.

That, without the lies and coercion from other companies this place would be doing well, based on its relevant outputs rather than on its [lack of] glossy advertising.
> stuck with

Huh?
Potential customers do care about the stack you're running. They care if they have to download Java or Flash. They care if they have to be connected to the internet or can use your product offline. They care if your program starts quickly. They care if your program runs quickly once started. They care if your program has bugs (let's not pretend different languages aren't more or less error-prone). They care if your program is cross-platform. They care if your UI is consistent with their platform. They care if your product releases new features quickly.

All of these are stack-related.
Did you read the version of his memo with the footnotes? Did you read the referenced material? Or did you just rely on the premasticated rendition relayed by most outlets? I ask because that's a necessary step before declaring something to be ’pseudoscience’ which it might well be. If you have not, you are potentially falling victim to the inherent bias that this sub-tread is all about.
What skill sets should they select for?
queen_count = lambda(board_width): board_width - (board_width in [2,3])
Close Call: CL-415 Canadair Hits a Barge After Scooping Water in Scary Footage
The weird thing is the same situation works in reverse as well.

Publicly declaring your intention to quit a habit or lose weight has also been shown to increase success in some instances.

I think it depends on whether people reward you with positive regard for stating an intention to do something, and whether you look foolish if you don't do the thing you stated. When you can get the reward just for the statement and there is no consequences for failure, pre-stating your intention seems harmful. On the other hand, if you are not rewarded for pre-statement, and failure is embarrassing, pre-stating your intention seems helpful.
Doing #5 is chronic because I'm too lazy to handle my own deployments and it's easier to copy paste a generic firebase deploy.

Then you can send the link to anyone and it always just works.
How Jane Goodall Changed What We Know About Chimps
I've seen plenty of people blame the optimizer for bugs in their code. This is especially common with people doing embedded stuff when they don't understand the "volatile" keyword. Just because it works without optimization doesn't mean your code is correct.

Some of them will insist on not using the optimizer because it can introduce bugs. I take the opposite attitude - let's go with -o3 from day one because we'll eventually run out of CPU time and have to turn it on anyway. If that uncovers bugs in the code or compiler it's better to find them early.
I learned how not to over-engineer specifically from learning from my mistake of over-engineering my side projects. :)
"Continuously delivering nothing" – exactly what I'm doing, building a product no one will use.
Side projects are meant to be challenging because they are a learning opportunity so it's possible that they end up over-engineered sometimes.
You can always refactor the parts that are over-engineered. There's a very fine line between highly-engineered and over-engineered.
One of my favourite projects is Kubernetes; some might consider it over-engineered but it's extremely powerful.

"Perfection is achieved not when there is nothing more to add, but when there is nothing left to take away"
Thanks for the suggestion. Now it's there.
For the record (it's not mentioned but a lot of time it happens): security (e.g. password storage) should not be something left for later. Do it or use a framework that does it for you.
Yes, but shortly after Google came along, ad blockers (or simply adding 127.0.0.1 analytics.google.com to your hosts file) also became popular.

Why hasn't anyone responded to that?
I'd encourage you to look for a local chapter of https://girlswhocode.com/, see if there are after school programming clubs in your city (or start one), or sign up with https://hackhands.com/ and get paid to mentor.
Why “Corporate Digital Innovation” Fails
He cites two articles going into much more detail on the line of thinking regarding the tradeoff that is static typing. I realize this is one of those tab/spaces kinds of religious debates, but hopefully all sides can acknowledge that we are talking tradeoffs and not universal truths. Maybe one day we'll see loose typing as evil as "goto" statements, but the evidence isn't there yet. IMO.
Vice doc on the roads in africa... https://www.youtube.com/watch?v=GslPzhFLyas

Also the "long way down" is good.
Could also be vaccinations that require a cold chain.
Nothing is stopping you from doing it. You're talking about the consequences of doing it after the fact.
Ha. A bug in exchange for a bug! Cheers - I'll look into it.
You have no idea what you're talking about, nor do the people that responded to you it seems. Authoritarianism is completely orthogonal to the "left-right" axis of political philosophy.

There is a libertarian left (anarchism) and libertarian right (Ayn Rand style American libertarianism), as well as authoritarian left (marxist-leninist style socialism) and authoritarian right (fascism).

politicalcompass.org
When Trucks Stop Running: Energy and the Future of Transportation
H.R. Interviewer: "Now Mike, may I call you Mike? Pope Julius II is looking for someone to paint the ceiling of the new Sistine chapel. Frankly, I passed on you initially because you didn't have any ceiling painting experience but I've been told to talk to you anyway.

To start, I'd like to ask you to take a test with some Egyptian art history questions..."
They're parroting a biased source (#3) reporting a ludicrous "experiment" from a biased (#2) conspiracy theorising (#1) actor. It's a dog shit story from front to back.

1. He's tried this claim before - http://www.politico.com/magazine/story/2015/08/google-2016-e...

2. He has previous with Google which makes him egregiously biased against them - https://bits.blogs.nytimes.com/2012/01/05/one-mans-fight-wit...

3. Sputnik News is a Russian government controlled news agency and therefore somewhat unreliable in the best of cases

etc. etc. I honestly wouldn't be surprised if Epstein's institute turned out to be Russian funded.
Wow. Thank you so much for the info! Super informative, really interesting, and written very well.
Ads are embroigled in to modern Western culture. Do you expect us to lock ourselves away in the woods?

Why should we be restricted in our actions in order to allow product placement in every cultural artefact, advertising on your museum ticket, carefully placed concession stands in "free" public spaces, etc., etc.?
How to become a web developer explained with fictional tropes
The Tesla is strange because that number on the dash is "rated miles", or the best you're going to get. So you can't just drive to empty and get a number you can compare with others, unless you drive it in quite a certain way.

My S60 says something like 215 miles when fully charged, but when driving on the Interstate the actual range is more like 160 miles, with the cabin heater on. It can vary significantly due to rain as well, a recent trip that had a leg almost entirely in very heavy rain caused a significant drop in range.
Content Marketing is Broken: Why it's so damn hard to learn anything these days
Minnesota and Oregon did exactly what your parent is suggesting.

https://en.wikipedia.org/wiki/Metropolitan_Council

The seven counties in the Council's Twin Cities Metropolitan Area are Anoka, Carver, Dakota, Hennepin, Ramsey, Scott, and Washington counties. The Metropolitan Council or Met Council is the regional governmental agency and metropolitan planning organization in Minnesota serving the Twin Cities seven-county metropolitan area. The Met Council is granted regional authority powers in state statutes by the Minnesota Legislature. These powers can supersede decisions and actions of local governments. The legislature entrusts the Council to maintain public services and oversee growth of the state's largest metro area. This agency is similar to Metro in Portland, Oregon in that both agencies administer an urban growth boundary.

https://en.wikipedia.org/wiki/Metro_(Oregon_regional_governm...

Metro serves 25 cities in Clackamas, Multnomah, and Washington counties (as well as unincorporated parts of those counties.) Metro is the regional government for the Oregon portion of the Portland metropolitan area. It is the only directly elected regional government and metropolitan planning organization in the United States. Metro is responsible for managing the Portland region's solid waste system, coordinating the growth of the cities in the region, managing a regional parks and natural areas system, and overseeing the Oregon Zoo, Oregon Convention Center, Portland's Centers for the Arts, and the Portland Expo Center.
I think automation will change the game though. Because the variance that comes from the human factor will be gone. If one chain is a tiny bit better, then every single restaurant will be a tiny bit better. The 0.05% advantage will not drown in the random noise of good and bad employees. And policy updates can happen immediately, the lag from having to retrain will not be there.

One source of variance that will remain is location. The local branch of Very-Slightly-Better-Chain may be poorly situated, which could put them at a disadvantage.
I never meant to say you did a bad job (looks like you certainly did a great one !), but just that a month of work typically leaves in the end, for good reasons, more than 3 LOC in "committed" (in the sense of accessible to the company as an asset in the long term) work, which was apparently the case for you too !
I know, react is pretty big. Preact is great if using Javascript, otherwise Elm is pretty awesome as well.
Some companies rely on distros. Do these companies make sure to fund the distributions?
JavaScript Voxel Engine
> since Do is uninitialized just use the number already in memory at Do's location as an address.

But the compiler has full control over that memory, and it's faster when the number is the same as what might eventually be written into it, but then you no longer need to write anything, since that value is already in memory, and now it's a constant and why keep a constant in memory when you can just inline it ...

All of the steps are completely intuitive and a compiler capable of executing them is much better than one that just indiscriminately zeros all memory and never dares to optimize anything to avoid exposing someone's mistakes.

The best a compiler can do in the face of guaranteed undefined behavior is to warn the programmer and tell them to fix their code. Unfortunately, C makes it quite difficult to distinguish between defensively-written code that avoids UB, and code that treats C like a portable assembler, that will do the "obvious" (but slow) thing.
Thanks, great insights.

To be honest, accepting any job is a thought that comes to my mind out of frustration, not plan A.

I'm coming to the conclusion that overseas candidates must have way more skills than local ones to offset the risks you mentioned.

I want to be part of the candidate pool that gets taken seriously but it seems I'll need to be physically close for that.
> Nothing that makes sense, hence the crazy part.

Have you actually read the manifesto and tried to understand it instead of just dismissing it as "crazy"? The only way to distinguish nonsense from sense is to...try to make sense of it.

IMO the only crazy part of the manifesto is the explanation and defense of his violence. But given that that violence almost certainly _did_ lead to a wider proliferation of his manifesto and ideas, it's even hard to argue that that was not an entirely rational (if inhuman) strategy.
That's really good to know! Thanks for that :)
I genuinely fail to see the difference, since our behaviours are the way our (informed or not) decisions are observable ?
No doubt a holy grail for chat bots, but I'll believe it when I see it.
Technically, in a SPA, the browser isn't waiting. Clicking the link just triggers a function call.