skysight-inc/HackerNews huggingface dataset:
It's a bug in a smart contract, but the root cause is the bug-prone design of Solidity. It's hard to write bug-free code in Solidity (or anything targetting EVM actually), and nearly impossible to be confident that a given contract is bug-free.

parity.io, the company author of the bug, is a top-notch Ethereum actor. If they can neither get a wallet contract right, nor realise that it's faulty, then who can write and trust any non-trivial Ethereum contract?

How many DAO or Parity trainwrecks before people admit that Ethereum isn't a dependable platform?
"Most" musicians (at least, all the ones I know personally) spend most of their time freelance teaching, doing relatively dull studio/session/gig work freelance (with all the stress and uncertainty that entails), practicing several hours a day just so they don't degrade, gig work at clubs/pubs/etc. and only occasionally managing to find time to do anything truly creative and new-new.

Re-arranging crappy piano scores so they fit a scratch band they've been asked to work with, figuring out how to stretch the tiny school budget into buying a less awful keyboard...

If they do have time and energy to put into 'green field' music production, there may be some stress over whether or not it's liked, but realistically they're mostly doing it because the concept of the album inspires them so they can't sleep at night because the melody is stuck in their head.
When Should We Eat?
From your scenarios and what your asking to get from your data (yes I understand your problem domain, I wrote mobile software for field service workers in a previous life), you're not doing a lot of complex two way joins where you need to get all of the data from table A and match it to all of the data from table B. You're starting with a known entity like a terminal with references to other known entities. In your scenarios all your DB is doing is searching tables based on indexes and creating a data set in memory. If you did the same searches one table at a time starting from your known root - the terminal you are looking for and query individual tables based on foreign references, the only performance difference would be the slight overhead of multiple DB calls. You wouldn't even be getting unnecessary data back.

Even if I were using a relational database, I would still separate out my different domains (drivers, terminals, stops, etc.) into different classes/microservices and join the different entities in memory.

This would allow different developers, teams etc. to focus on separate business objects and would allow you to start off with a monolithic code base/app and separate the app out to microservice later without intertwined logic and to mix and match storage based on what makes sense.

I never said always embed everything into one document. I said think through your aggregate roots to decide how to design your apps and your document model.

I've designed this way for the last 10 years - 9 using RDMSs. I don't do complex 10 way joins for apps. I separate out business domain logically and let each module be responsible for its own domain and then have an overarching orchestrating class that combines the various objects when needed.
That's completely out of the question at the moment. True, it could potentially be most useful to know haskell for a lot of programmers, but at the moment, the opportunities to use haskell in the work place are actually rare and not to a small part because an understanding of haskell is barely achievable in an introductory semester, while the steep learning-curve of the language is kind of intended as it's usefulness only really plays out at a higher complexity. Whereas, python has a focus on scripts, shortness and quickness are even symbolized in it's name. Script languages with introspection and reflection are best suited for REPL, especially with good integrated documentation.

Javascript in the browser suffers at that because it's opinionated towards web, but OP sees that as a plus and web programming certainly is an applicable skill with a future. Not everyone would have to use facebook as homepage, for example
Starting later selects for a founding a different kind of company than the one a fresh graduate/drop out would found.

I don't think there is a best time to be a founder; it's largely an individual thing.
The Mad Scientist Behind Nike’s ‘Back to the Future’ Sneaker
You might be joking, but I know at least one major electronics company where the automated machine tools will send text messages to the plant manager in ever increasing frequency, when scheduled maintenance is coming up. Because otherwise those plant managers wouldn't allow the required downtime.
Indorse, Decentralized Professional Network, AMA – Starts 2:30 PM London
Govt. Funded Qualifications – Telecomm, Technical Security and Business
New mechanism to destroy viruses could lead to future therapies
On Consensus and Humming in the IETF
I understand the desire behind this sort of regulation, but it ends up pricing working and middle class families out of homes in the long run:

https://www.reddit.com/r/LosAngeles/comments/6lvwh4/im_an_ar...
I agree. Probably game theory reasons. Don't steal so much it will cause the community to unite and hard fork. 30 million is enough to retire and probably not enough to cause hard fork and rollback of txs. They played it safe.
Malaria was eradicated in the US and Europe. It used to be endemic. Eradication is a pretty solid way to prevent it.

https://www.cdc.gov/malaria/about/history/elimination_us.htm...
The Rise of Python for Embedded Systems
Why is it short-sighted?

It's easier to transition from the (presumably) single code-base they have now to build specialised native apps later, if there's some expected pay-off, no?

But if they'd had separate code-bases all this time the maintenance effort to date would have been an order of magnitude higher. And consolidating to a single codebase from that would be a nightmare (should some new cross-platform toolkit mature).

> The average user don't care about native and non-native. But they do absolutely care about performance, look and feel.

And I've never heard anyone in my office (which has lots of non-devs) complain about Spotify's UI when they're changing the office music. Search for a song or playlist, play ... works fine as far as they're concerned.

Show me the evidence average users think there's a problem.
Bitcoin swings as civil war looms
Turing-complete means you cannot write an algorithm to prove termination in every terminating case, but it doesn't mean you can't prove termination in particular cases, and it certainly doesn't mean you can't reason about your code.

Based on other comments here there certainly may be questionable decisions in the design of Solidity but that doesn't mean Turing-completeness is one of them.
If you believe in the product and like working on it: fight back, be better, be more competitive
um... https://en.wikipedia.org/wiki/Building_code
I think that have few competitors shouldn't worry you till the moment that delta between your product and your competitors it's solid.
I would be even relieved about such a thing. You are not alone betting on this type of market.

Just to clarify the delta point.
How can you be sure that the difference between your product and the competitors one is reasonable?

Try to use the product vision statement from Geoffrey Moore’s book Crossing the Chasm.
http://elevatorpitchessentials.com/essays/CrossingTheChasmEl...
Try to see if your point [5 (Unlike)] is solid enough compared to your competitors.
If not, work on it.

I would think twice before to throw everything.
It is possible to be biased and still behave in a fair minded way. In some media the trend is towards intentional misreporting to drive a particular agenda. This does not exactly promote constructive communication. And when the publication aligns with your own views it is easier to forgive.
As would the same program written in a Turing-complete language. The Turing-completeness here is a total red herring.
Nice explanation of uses and how entropy is converted into a constant. Reminds me of an old post I did on types of randomness http://www.statisticsblog.com/2012/02/a-classification-schem...
How to Grow Your Business with Pinterest (Free Email Course)
2017 State of JavaScript survey
Friendly jab - it was old when I started my career in the '80s :-) And yeah, firefinder is a radar
I'm in agreement that solar panels in south Florida are a good idea, and that to single out this law as an end of American freedom is ridiculous. But we have to admit that this isn't the best way to address the problem. The law exempts houses in the case of shade, but there are are bound to be other edge cases where solar panels don't make sense. IMHO, the ideal way to address the problem of carbon dioxide emissions would be to tax it. A hefty carbon tax combined with a flexible electric utility infrastructure would do more to reduce emissions than compelling one particular house design over another.

Given that one of America's political parties has rejected the scientific evidence behind anthropogenic climate change and more or less equates taxation with theft, I don't foresee a carbon tax in the US any time soon. Compelling people to buy solar panels isn't a good law, but it might be the closest we can get in the current environment.
i remember feeling outrage when i first realised just by being born in a country one is subject to the country's laws. completely non-consensual.

tangentially: book recommendation: "The Wake" by Paul Kingsnorth. fictional account of life in England following the Norman invasion of 1066, written in a unique form of english. Here's the part I am reminded of - the narrator is enraged when the local official comes to his land to collect tax for the conquering foreign king:

> well i wolde not gif them geld no i wolde not gif naht to this ingenga bastard for what he done. i had naht to gif after all the wars and the fyr what had cum from him and these cyngs all feohtan ofer the right to play with small folc lic sum fuccan game and this is what i telt the fuccan weosul when he cum to me for geld

on another hand, now i slowly appreciate the "tragedy of the commons". oh to live in a world where nothing i did impacted anyone else, and nothing they did impacted me. how simple and independent and free we could all be. but the world is not like this, and becomes even less like this as time passes.
How to Rank 10% in Your First Kaggle Competition
Fair enough. I'll dial 'massively' back to 'significantly'.
What if my product is almost identical? you think I should artificially change it so that it has a differentiation?
It's relative. From my point of view as an outsider the US print media scene appears to be dominated by what I'd describe as broadsheets (NYT, Washington Post, WSJ, LA Times etc). These papers can at times be pretty bad and I don't agree with the editorial position of any of them but even something like the WSJ which will publish crazy climate change conspiracy theories is in a different league to the papers that dominate in the UK: The Sun and Daily Mail. Imagine that the most widely read US paper by far was the National Enquirer and that it was treated as a serious and important paper by other media outlets and political parties.

I can't help laughing at your quaint idea that spreading misinformation "at least once over the past year" is a major offence. Dozens of major inaccuracies (with blatant political motivation) per day is the kind of standard we are talking about here.

Not to mention the abhorrent behaviour of journalists towards victims of crime etc in trying to get stories, which is a whole other side to the UK media which probably isn't appreciated from the outside.
Study reveals contrasts in how groups of neurons function during decision making
CoinTree Adds New Coins Including BAT, BNT, DCR, EDG, EOS, NMR, SNT and WAVES
The explosive tale of a spy, a ghost particle and a new physics
CIA Plans to Destroy Some of Its Old Leak Files
You may want to check out the good ol' DDD: https://www.gnu.org/software/ddd/
It's still called Jimmy Joy as far as I can see: https://www.jimmyjoy.com/
The Perennial Philosophy by Aldous Huxley (1947)
What is your justification for the restriction though?

Personally i dislike the latter form because it requires me to spend extra time reading what is boilerplate that is functionally identical to a ternary.

Edit: Not impressed by the down-voting of an earnest question of someone trying to learn more about how other people see things, HN.
How Are Scrum and Agile Methodology Important for Your Startup?
153K Ether “Stolen” by White Hat Hacker Group Being Put Back
I wonder if the first one was meant to be

a -= a * a;

which evolved from

a *= a;

after the author thought "I need to subtract its square from itself, not just square it". I can see how this could occur in numerical code.

I've noticed there are two opposing schools of thought on issues of "insane code" like this; on one side there's "use the language to the fullest if it makes sense to", and on the other is "avoid anything that might be the slightest bit confusing". I think that taking either of those to their logical conclusion is not a good idea --- in the former case, you'll end up with extremely dense and (initially) difficult-to-understand code, but the latter case will cause a gradual degradation of code into something approaching the verbosity of Asm, but with none of the benefits (e.g. "ternary operators are confusing, don't use them; multiple levels of precedence are confusing, so always fully parenthesise expressions; nested parentheses are hard to read, so don't use them either and only do one operation per statement; boolean expressions are confusing, so always use if/else; nested if/else are confusing, so don't nest and always refactor to use a function call, etc. etc.)

It does seem that different languages vary in where they are on this scale, with more "exotic" ones like APL tending highly towards the former (interesting related discussion: https://news.ycombinator.com/item?id=13565743 ) and C#/Java towards the latter. The ideal is probably somewhere in the middle.
Britain and the European Union: The Six Flavours of Brexit
Ethereum Price Rally Continues Despite Market Cool Off
Install Deepin OS 15.4 Alongside Windows 7/8.1/10 in UEFI
Julia can do this as well:

result = if boolean_flag do_this(); else do_that(); end

Though it does have the ternary ?: operator too.
The battle for the Moon begins
The company still seems to be named Jimmy Joy, and the product Plenny Shake. Both somehow strike me as really terrible brand names. Can't find anything about a subsequent rename.

That said, I'm a customer of theirs, and daft names aren't going to change that.
We like you too.

The company is still called Jimmy Joy. We decided to ask the community what the actual product should be called. Since we already had the 'Twenny Bar' we ended up choosing to name it 'Plenny Shake'
Doesn't the aesthetic factor count at all? The panels are ugly (to say the least) and they tend to blind you when the sun is at certain angles.

I'm all for efficiency and green-er energy, but I think we should find a balance between an effective solution and an aesthetically acceptable one.
It's being put back: https://news.ycombinator.com/item?id=14811534

Edit: Without Vitalik or a hard fork.
Ruby on Rails demo (2005) [video]
That's a good way to describe it. Something about it feels empty.

I think the most obvious is the tiny sliver of a picture on each card. It feels like I'm looking though a key hole.

Besides that, the website is great!
Ask HN: Any recommendations on stock trading algorithms?
Any recommendations on where I can start to read up on algorithms in use by financial institutions for trading?
As others pointed out, it's not really better than an if (and actually worse in this case because you might not require the assignment)

To me it works in short expressions that do return a value so number_of_things = some_type ? 5 : 1
Isn't this going back to 1999?
My hero, John Walker, built this thing in 1996: https://www.fourmilab.ch/hotbits/
> One of the things that cyberpunks fail to grasp is that people don't want a perfectly immutable, fixed system.

Some people do.

Source: I am a person who wants this.
I grew up in sight of 4 coal-fired power stations - I know which of those two I find more aesthetically acceptable :)
There was a question posted in the techcrunch comments section regarding Nitrogen fertiliser from natural gas being used heavily in vertical farms such as this. I understand thats the case for a lot of agriculture regardless.
That having been the case, regardless of how 'green' these companies try to go, aren't they really just using fossil fuels en mass the same as everyone else ?
> no one is asked to build a product that succeeds in the market

Except startup owners and many others. Even in many large companies an unsuccessful product can lead to teams being let go or reassigned to do boring work. Also, stack ranking...

> Being a writer, or a musician ... perennial anxiety

That's the tradeoff for doing a really creative job. I love the creativity of development but nobody will read our code in public in 500 years from now.

> I won't suddenly cease to be a decent programmer

Burnout happens to do that.
The print version is now available - see http://wiki.tcl.tk/48868 for details.
I don’t think mandating ground parking is the same as requiring solar panels on the roof. Solar will eventually pay for itself?
> However based on past experience with growing crops under artificial light, I wonder if the investment makes sense. There are a number of issues that have to be addressed, the most urgent is providing enough light for plants to grow. Sunlight is very expensive to replicate with human-made light sources, the energy requirements are steep even with the most efficient illumination available.

Um... How much is premium pot per ounce? That's what they are going to be growing. Indoors.
The Big Businesses Fuelling the Crypto Super-Train
(d) Participants in a contract understand and accept the risks of losing their investment to bugs.
the thing is, every device can be used for web development these days.

"it’s quite possible to do advanced software development on the iPad"

the author's idea of advanced seems to correspond to what i consider the duplo blocks of programming, which is sad. :/

try some actual software development and the ipad does not stack up, because there are zero compilers for it and zero tools. on the other hand, that surface 4 can run all of the industry standard tools except xcode and lets you build native code for any platform, including those horrible apple ones and complicated or specialist stuff like quantum computers or games consoles.
A great idea for 20 years ago.

Better late than never, and a law 20 years ago would have to have been appropriate for the technology of the time, but the something of this spirit.
I tend to like ternary operators and similar operations but the way python handles it really bothers me, I think because it essentially overloads the `if` keyword, and totally violates the if-then-else norm of conditional statements (ternary operator included). then-if-else is stranger than a do-while loop, but at least there's an occasional reason to use a do-while loop.
Daddy daughter dance in hospital room after treatment (please read and share)
Perhaps we can alter what people think looks beautiful so they find solar panels pretty.
Yep, that's probably right. I'm not sure what the second-hand prices for the iZoe (with the battery included) are.
Investing in Tech Startups: Is It Worth It?
Wont't graphene transistors be the way forward? Does anyone have any info on this?
Using a Turing-complete language does not mean that all possible programs written in that language are undecidable. As a trivial example, if a particular program doesn't have loops or recursion, or if it loops for a fixed number of times, it quite obviously will halt. More generally, it's possible to write simple code with clear and obvious effects.

If were really that bad to use Turing-complete code, then smart contracts would be the least of our problems, because Turing-complete code runs our airplanes, medical equipment, and nuclear reactors.
There are tons of bottles with that shape on the shelves of my local grocery store... It's quite common with any drink that isn't carbonated (and therefore doesn't have to contend with higher pressures). Juices, teas, etc...
Another tenure-track scientist bites the dust
Mine is 22. I'm wondering whether to upgrade the Zoe to a 41kWh now it's at the end of its finance agreement, or just keep the one I've got.
Things to learn in React before using Redux
He’s totally wrong, but it’s too comment.

Android fantards take every forum, and it’s spring break time and they have no life, so no friends or no girlfriend.
But how would you compete against the established companies? It cannot be higher returns, because all index-funds are supposed to have roughly the same returns (if they mirror the same index).

So it must be lower fees. And you are able to charge lower fees if the total amount of money you manage is big. (Because a tiny percentage of a huge sum will still cover your costs.) The established players already manage a few trillion dollars, so it is hard to compete against them in this area.
>Well, that's exactly kind of people you to attract to write your security-sensitive code.

But not the kind of people you want to focus on to get traction for your venture-backed startup if you want a relatively quick and profitable exit
Ashley Madison Revisit: $11.2M to Breach Victims
It is interesting to see but I think Solidity is the first software language/framework that people with no experience writing it or running it, comment and write about it on hackernews as if they did.

A common criticism is the way for loops and arrays are implemented are broken? Well actually they should rarely be used in contracts, its not like you can send ether/btc to an array recipients or in a for loop.

You do not need a complete language like F# and C++ to write contracts, The hacked contract should have had a simple modifier describing only the owner can run this command.

Once again the type system doesn't need to be perfect, if your code on the blockchain is broken you pay a transaction fee and the contract doesn't execute it.

For a language that was made less than 3 years ago, it amazing to see the progression. It will be a language that people hire for in the near future (already happening). Companies are notorious looking for 5 years experience.

Its hard to read the "I told you so replies", when the price of ETH has remained relatively stable during the news
Clair Patterson, during a 60 year quest to prove that lead in our modern environment was harmful, went to tremendous lengths to find evidence of pre-industrial levels of lead. This is the guy who invented the clean room and associated techniques.

Were he alive today I imagine he would be glad to see this research ongoing.

Fascinating (and long) read about his journey here.
http://mentalfloss.com/article/94569/clair-patterson-scienti...
WhatsApp China disruption deals blow to Facebook
It's no different than shipping your product in plastic containers.

Sure, there's a dead dinosaur somewhere up the supply chain but unless whatever your company's industrial process is is incredibly inefficient it's not a big deal.
I feel like they should delegate their votes somehow to the people they are actually buying shares for. I don't know what the right mechanism is, but it seems wrong that by investing in a passive fund, I've also given up the right to vote with my shares.
It's because back then V8 didn't save the AST in `SharedFunctionInfo`, so AST was inaccessible, so to avoid re-parsing and generating the AST to use AST-specific heuristics for inlining big function bodies, it used just the source length as part of the inlining strategy. This has been fixed for a while now with TurboFan[0] (also, now you can call `ast_node_count()` and get the AST count directly).

[0]: https://github.com/v8/v8/wiki/TurboFan

EDIT: added information about `ast_node_count()`