skysight-inc/HackerNews huggingface dataset:
No, "undefined behavior" is a term with a specific meaning, because it is used for a very specific purpose. "Undefined behavior" means that a compiler can assume that a particular scenario will never happen in correct code, and therefore if it ever thinks it has to care about that scenario, it can in fact ignore it for the purpose of optimization.

For instance, if you have a bool in C++, the only defined behavior is for it to contain 0 or 1. If you somehow force the memory cell to contain 2 or 255 or anything else, you have triggered undefined behavior. This means the compiler never has to check for it. If it's faster for the compiler to implement, say, `if (b) x[1] = a; else x[0] = a;` as `x[b] = a`, it can do that. Even though the `b == 2` case might lead to a buffer overflow, the UB rules means that, as far as the compiler cares, the `b == 2` case cannot exist. If `x.operator[]` is a function that does a bounds check, the compiler can inline it and remove the bounds check. And so forth.

Hence, the rule that on encountering UB, the compiler may do anything. It is not so much that the compiler is intentionally doing anything, as that it is outputting code that assumes the UB can't happen. If the compiler chooses to implement an `if (b)` via a computed jump, the `b == 2` case may land on some completely ridiculous code to start executing. It is not that the compiler wants to land there to punish you, it's that the compiler's only responsibility is to make sure the `b == 0` and `b == 1` cases work.

What you're pointing to is unspecified values. This means that the implementation can return any value, but must actually return some coherent value. If a C++ function returning bool returns an "unspecified value", it is still only returning either 0 or 1. You can act with the resulting bool as if it is in fact a bool. There are no optimization gotchas to worry about. It's just that you don't know what it is.

For the particular case here, when you're inspecting a runtime error, the only useful thing to do with it is to call the Error() method from the error interface. The language guarantees you that it will work (i.e., you have defined behavior, that you have an object that indeed implements the error interface). It doesn't give you any particular guidance on exact error values or the resulting string. But that's no more "undefined behavior" than the result of reading from a file is "undefined".

The entire reason people care about undefined behavior is the fact that compilers can do arbitrarily-stupid(-seeming) things when it is present, which is solely because compilers want to optimize. In the case of unspecified values, there is nothing to optimize.

(Anyway, I am not a Go programmer at all. Maybe there is actually UB somewhere in safe Go. But what I have seen is not it.)
I am the author and yes this was very much unapologetically hyperbolic. At least it got the conversation started.
While not stored as 'text patches', when the objects are packed (as in pack files), they are stored as binary diffs.
I wonder how much of a bar tax would be required to cover the bill. If it encourages more people to go out drinking more often it might be a net financial benefit. You could even pitch it as a jobs program.
This makes it sound like Go and Rust have some secret sauce that enables C's performance without UB. But it is not so.

For example, consider an expression like (x*2)/2. clang and gcc will both optimize this to just x, but Go and Rust will actually perform the multiplication and division, as required by their overflow semantics. So the performance vs safety tradeoff is real.
The religious fervor has definitely faded, yet we're in the largest open source software renaissance of all time. The reason is probably because OSS has "won". Not in the absolute sense that all software is open, but in the sense that businesses have fully realized the impact Eric Raymond prophesied in the late 90s.

I attribute this at least in part to the dot.com bust. FOSS, commodity x86s, etc. became a necessary virtue when you couldn't get VCs to shovel enough money to you to buy the expensive closed source stuff.

Did anyone use MySQL because it was a better database than Oracle? (OK, it was probably easier to administer, so substitute DB2 if you wish.)
The way I understand it, it should be possible, though it's more complicated since they seem to infer the LFS URL from the repo URL by default. So if you wanted to say keep your repo on Github, and store your LFS files on S3, you'd need to explicitly tell git where to write the files. There are configuration values for that.

Also you'd need the necessary LFS server piece on Amazon's side.
> This was a favorite zinger that my evolutionary biology teach liked to spring on unsuspecting students that tried to argue that they could demonstrate that low iq among AAs was due to genetic differences.

And what happens when AAs migrate out of America, or when Africans migrate into America, hmm? The debate is not that simplistic and easily resolved, and your professor did you a disservice by pretending that it is and not discussing why his anecdote is not airtight (for example, immigrant samples are almost always contaminated by serious selection effects which are hard to measure and vary by group). By the way, how sure are you that your professor was even right in the first place (https://unsafeharbour.wordpress.com/2012/01/13/burakumin-and...)?
مشاهدة+فيلم+Youth+2015+مترجم+|+سينما+فور+اب
I wouldn't be surprised at all. Zuckerberg worries me in a very ominous and looming way. He has access to a lot of data and his company is a massive source of public influence. And he's repeatedly abused that power with little to no public knowledge or blowback. Initiatives like his free limited internet and the primary school seem like attempts to control information and future generations, disguised as philanthropy. Couple that with his radical political views / connections and you've got yourself a recipe for a kind of war and oppression that we've never really faced before: a war on information.
I am really, really terrible at finding things on HN, but I am inclined to remember things about social dynamics. Somewhere, he said something to the effect that he is being dragged into these arguments fueled by upvotes less often, so he feels that comment scores being hidden was successful in getting him what he wanted because he was spending too much time on that, so, no, comment scores are not likely to come back. You might look for some kind of follow up question of the Ask PG variety where people were hoping he would bring them back. It might have been something like that. (/Real hand wavy clues -- enjoy the hunt.)
What's the liability to the city if someone gets hurt while in an Uber-cab sponsored by the city? I don't mean driver maliciousness, I mean any kind of accident that an Uber driver might get into?

If someone relies on public transport and gets injured, the city may be liable if there's some wrongdoing/negligence. But is it different if it's through Uber?
OK, those are maybe a little vicious, and probably not entirely fair. Still, the implication of not being able to fork a whole project from github if you use LFS is a pretty big deal.
We've banned this account for repeatedly breaking the HN guidelines.
What are the shipping companies going to do, use the Nicaragua Canal?
Douglas Adams: Parrots, the Universe and Everything
I'd be upset too as a consumer and an egg producer that a product was using the name of a popular product with eggs but no eggs are in it.

Margarine with yellow dye trying to look like butter (also dyed yellow).

"Milk" products such as almond milk and soy milk when both are just juice since neither almonds or soybeans have nipples.

There must be some law to prevent such desception.
The researchers report on their tests for memorability in section 3,
and for the rhyming method use an FSA of 79 bits.
I do, actually. I just noticed that there was a large Kernel git repo hosted on Github, and figured it would make a good example of a large, popular repository. I'm not surprised Linus is not actually using Github, so my bad for not stressing that this was more hypothetical than meant as a statement of fact.
I completely agree. My point was that, without some extra source of money, forcing employers to pay a particular salary won't work. We need to make it possible to live without a salary.
Hmm, maybe you just never debated anyone who was good at topicality :)
I don't think they have a free version.
I reported this bug to Apple back in September, but as we know, filing Radars is practically pointless and as of today it still hasn't even been read.

https://openradar.appspot.com/22671534
Yeah , sorry , I meant "execute" . my android keyboard auto correct was fucked up.
Here are some of the best NASA patents that startups could use
It says in the change log they shifted from electron to nwjs. Does anyone know the reasoning behind this?
Very strange indeed.
Heh. I have no trouble with your view of social dynamics, I just don't see its relevance WRT to RMS, and that's probably why you think you're not getting that part of your message across.

You can safely assume it's accepted and that I'd be happy to, e.g., share a meal with you at a restaurant with high levels of cleanliness (assuming they even exist, or do you e.g. depend on cuisines where they do a good enough job of killing the food dead?).
I still don't follow. Most noteworthy computer scientists, programmers and hackers have workflows that are totally heterodox or outside the norm. That doesn't make them any less authoritative or informed.

He definitely is informed on the subject, too. You can tell from his constant political notes and regularly updated boycotts or calls to action. He's active enough that he understands much of the web's giants from third-party sources or observation without having to directly use any services himself. Or are you suggesting that one cannot understand and criticize Facebook or Twitter without being a regular user? What a puerile and ludicrous assertion.

He's not disconnected from the Internet, nor the Web. He merely limits his exposure to it. Again, does one need to be intimately involved in their social media profiles to have the necessary prerequisites to speak against it?

I further do not understand how heterodox computing habits make the free software message any less relevant. What is so grand about the web that such a conclusion should be derived? SaaS? Non-free JavaScript? He voices out against those.
Eurocentrism is not a T-standard.

(His post and my post are intelligible to people who spent a few years of their lives on a very specialized academic sport. I'm going to elide explaining all the jargon here.)
You can put this sort of build framework together with whatever tool you're using (gradle, maven, rake, grunt etc).

The idea isn't to shove everything into a storage bucket, but to assemble a toolchain using components that are fit for purpose. Git is fundamentally not fit for purpose as an artifact repository. There are tools that are.

-Eric
Cybernetics is more common term in the continental Europe. Anglo-Saxons use "systems theory" and it's slowly replacing cybernetics. If you want to read about cybernetic psychology and related subjects, you might want to google "systems psychology", "systems neuroscience", "systems biology" instead.
If you made that joke, you probably weren't also conspiring to do economic harm to a competing business. That puts the comment in a different light despite the speaker's intentions IMO, even if it ultimately amounts to nothing relevant to the prosecution.

IANAL
Yes, k-nn is theoretically the one of the best ML algorithms in the sense that it will find the closest items in the training set. For classification or finding similar looking items it is great. However, it has pretty poor running times for evaluation of unseen data (http://nlp.stanford.edu/IR-book/html/htmledition/time-comple...). This is contrary to something like neural networks, which take a while to train, but then evaluate very quickly. For real world use the training times matter to an extent, but in a web app or real time application the latency from knn is just impractical.
CHANGED: We have switched to Electron from NW.js -- you had that backwords
GitHub has added features, and made their product better for their customers, but have not yet made it possible to use from everywhere on their platform.

Perhaps that is a big deal (I don't use LFS and until recently neither did anyone else), but it's a far cry from what you said in your original comment, such as "I do believe it is foolish to assume that the github we know today will be the github of tomorrow."

They implement a feature in a restricted manner and all of a sudden they're evil?
They really are not a good argument against genetic causes of heritability of lower IQ scores in other groups.
Their example (if true) only serves to proof that in their cases low IQ was cause by environment, which as partial cause for low IQ is not debated by anyone credible. It says nothing about genetic causes in other groups at all.
I'm thinking that rather than using git for versioning the binary artifacts as well, you tag and version your git repo, then tag and name/label your artifacts in another storage service. You then allow a build tool to assemble from both locations.
I never knew that logic gates also had an endurance rate. This process to abuse logic gates to the point of failure seems trivial yet difficult to prevent.
http://radar.weather.gov/ridge/Conus/full_loop.php Radar for cross reference. Biggg giff
I hope they fixed the damn broken power button issue that my 16 month old Nexus 5 died from. Damn that phone broke my heart.
Hey guys I am a young app developer looking for feedback/reveiws om my mew app
hey guys i am a young app developer i just launched my new app its a game please download ,play ,rate, share and click on ads that seem useful to you it would be really really helpful thanks in advance https://play.google.com/store/apps/details?id=com.buzz.tap﻿
The responsibilities of a white collar job, the wages and respect of a blue collar job, and the number one target of mass skilled immigration to drive down wages.

That's what you get when our profession is distinctive for the lack of social skills and interest in organizing to protect our own interests. The country is not getting more friendly to people who know how to do things but don't know how to win favor with the government.
Sometimes the severity of a crime outweighs the frequency. It may be worth preventing any forgery since, when it does happen, the effects are bad.
Go where the ex-pros go: YouTube. Seriously, I'm on there for a lot of jobs. Again, it's a lot like software: sure, you know how a for loop works, but how does it work in, say, Ruby? Similarly, I know how to drain a radiator, but what are the subtleties of draining one on a BMW R1200 motorcycle?

Sometimes I just need an explode diagram to see what I need to strip off to get to $PART_TO_REPLACE. Sometimes there are shop manuals online, or a dealer has parts diagrams that will do the job.

As for tools, buy what you need as you need it, not all at once. Start with a good set of metric box end wrenches, a ratchet and sockets, add from there as needed. Craftsman at Sears is a good compromise between quality and the eye-watering price of Snap-On (not that Snap-On isn't worth it if you do it all day).
The Hero's Journey
For the U.S., this is Incorrect. That definitely does not meet the standard of a True Threat. It wasn't sent to the person involved, or even posted in their view by the speaker. Even if Elonis v. U.S. Had been decided differently, a Reasonable Person wouldn't look at that and conclude it was spoken seriously. But as it stands, a True Threat has a Mens Rea requirement.

You should read up on the most recent Supreme Court case involving threats made on Facebook:
A good intro to the case: https://www.washingtonpost.com/news/volokh-conspiracy/wp/201...
Collection of Primary Sources and commentary: http://www.scotusblog.com/case-files/cases/elonis-v-united-s...
An explanation of what "Mens Rea" means http://lawcomic.net/guide/?p=173 (yes, in webcomic form, but drawn by an attorney)
Well, most of this isn't super accessible to beginners. I have no idea what 90% of that means:

This is my Space Bucket! I use 5M of 5050SMD LEDs and 4 CFL bulbs in a 4 way adapter. I use a combination of topping and hardcore LST to shape the plant and then specific defoliation to develop the canopy. Anything below the lighting spacer is removed as well as anything blocking light to budsites. When the plant reaches 40% of the planned height it gets flipped to flower.

http://www.spacebuckets.com/u/bacon_flavored

Seems like a fun project, though. I wish that particular example included total cost.
There are some strange superstitions w.r.t. death in Japanese culture. In Japanese the number 4 sounds sort of like death so it's a number they avoid a lot (it's missing from many elevator options, similar to how 13 is skipped sometimes) and patterns of squares are sometimes avoided to prevent having 4 corners meet (especially with straw mats).

I had never heard of this, though. The class of untouchables who work close to death. Really interesting stuff.
Hey guys check it out https://news.ycombinator.com/item?id=10445270
In the early days of my JavaScript'n I always used minus instead of plus when doing addition. But as the language and tools has matured I hardly see any type errors any more. I do have a habit of parseInt() that won't easily go away though :P

Besides the concatenation of numbers to strings and vice versa, most other type errors in JavaScript will give you a syntax error or something like NaN (Not a Number).

So don't mix strings and numbers. Everything else is just "objects". =)

One thing that causes lots of bugs though is undefined object properties. But I'm not sure if inferred types would help in those cases.
Oh, well, I see it as relevant because I was briefly Director of Community Life for The TAG Project while homeschooling my profoundly gifted sons. I have no official recognition anywhere of my expertise in the social and emotional challenges of gifted individuals, but I have reason to suspect that I understand the unfortunate interplay between group dynamics and the problems of highly gifted individuals far better than average. So, to me, Stallman's difficult personality traits are well established as a side effect of being genuinely smarter than most people around you and routinely crapped on because of it. Plus, traits like OCD, ASD, and ADHD are so commonly associated with high IQ that some people refer to them as "co-morbidities" for lack of a better term.

I think the social problems typical of high IQ can be significantly ameliorated, but my private parenting blog only has two subscribers and life has gotten in the way of me updating it this past month. So my views are unlikely to start changing things anytime soon, if ever.

Best.
See yesterday's discussion about that article: https://news.ycombinator.com/item?id=10439301
Why the buckets? I grow tomatos, spices and onions in doors with just a regular indoor pot and a natural light source AKA a window.

Giving plants light for longer duration does increase their growth (tho normal LED's and house lamps aren't optimal for this, there are specialized growlights that produce wavelengths that are more desirable for plants Chlorophyll absorbs blue light the most which isn't emitted from most lights that are used for indoor lighting which emit yellow, red, and infra-red light the most), but for most growths a window will work just fine, even during the winter time unless you are really upnorth.

So what's the deal with these? seems that if you would take those buckets and use them as normal pots you will get pretty much the same thing with the advantage of it being pretty and greening up the place to boot.
Looks like one'd describe him as an insurance adjuster:

> Kafka was rapidly promoted and his duties included processing and investigating compensation claims, writing reports, and handling appeals from businessmen who thought their firms had been placed in too high a risk category, which cost them more in insurance premiums.[41] He would compile and compose the annual report on the insurance institute for the several years he worked there.

And of course, Wallace Stevens was an insurance lawyer.
No, of course not. I have nowhere said github is evil. I've said it would be foolish to believe they never will be, because we have seen on a number of occasions that good companies turn bad (with varying definitions of "good" and "bad") when given sufficient monetary motivation to do so.

SourceForge is the best past analog for github, and I think it's worth learning from history. SF.net didn't start out evil and untrustworthy; they started out good. Who's to say github won't do the same?
Fair enough. But I think it is a good reminder that the gut reaction to invoke genetics when confronted with a heritable phenotype should be met with suspicion, especially given the tendency to treat 'intrinsic' traits as excuses for continued poor treatment/disregard.
Not GP, but:

> If the executives their
indeed it does. I have done it with 10 bills of mixed denominations and it's 10 grams on a scale.
I'm a little surprised neural network comes up with a straight line and linear regression doesn't, which I thought by definition it would do. (e.g. on 2 normal groups)

Some discussion of methods, ie how many hidden layers/nodes for the neural network, would probably help make some sense of it.

Random forest could be worth adding.
I disagree but people can do what they want but octane ranges are not as bad as people think.

Just consider many countries sell gasoline with vastly different octane ratios. You buy a Honda Accord in the US or Australia or Canada and the choice of fuel is quite different there is no standard for premium.

There is a post of reddit where someone in Germany said regular is 95 octane and premium is 100 octane versus the US with regular 89 and premium 95. So there's a big discrepancy there how can the same cars in two different countries operate with such vast differences in octane?
That's a terrible Faustian Bargain. The choice between someone who doesn't want to learn new things and someone for whom everything is new.
Yes, my criticism was not that they're trying to make money from this, but rather that they are crippling their core product in an effort to monetize it some more.
Then you'll understand why I've actually worn out paperback copies of ZAMM. ;-) "Gumption traps", oh, I know exactly what Pirsig was talking about.

Seriously, it's a book that really spoke to me, and probably largely because of being both a mechanic and motorcyclist. So it's no coincidence if some of the stuff I write sounds like something out of ZAMM, because I'm probably just (poorly) paraphrasing something I read years ago, flavoring it some real-life experience.
Louis Vuitton’s Mythic 94.3%
That's pretty cool although there is an enormous security issue with this. Now anyone that sees the video and/or reads the post, can pretty easily (a quick google search) determine where you live, and has free access to your building. If I were a fellow tenant, I would probably be a little upset if I found out that anyone could bypass the security of the building because of another tenant hacking the phone system. One idea to increase security may be to have to push a button on the keypad once the Twilio number answers to trigger a different script.
Looking at the code (http://jsfiddle.net/wybiral/3bdkp5c0/light/) it seems they are expanding the features to include all second and third order terms (options.expansion = cubic), that's why linear regression does not come up with a straight line.
But inappropriate != illegal. The union of what each person considers socially inappropriate is a rather large set... both undesirable and impossible to legally enforce. As other comments say, there are better things to be upset at here.