skysight-inc/HackerNews huggingface dataset:
Over other languages in general? That's hard to say about any language :)

OCaml is a language in the ML family, is backed by INRIA and is the main language of Jane Street Capital (so it definitely has "real world" use!), which also contribute a lot to it. OCaml is pretty good for functional programming, and unlike Clojure, it's statically typed. If you like static typing -- which I personally think is the way to go -- that's a huge reason to prefer it over Clojure. You may also check out Haskell if you go that way.

An interesting case study about going to OCaml from another language (Python, in this case) was posted to HN many times already: http://roscidus.com/blog/blog/2014/06/06/python-to-ocaml-ret.... I recommend you read it if you want to learn more about why would one choose this language.

Why not choose a language in the ML family? Well, if not having C-like syntax is a deal breaker for you, then OCaml is going to frustrate you. A real programmer shouldn't let syntax stop them from learning new languages, though :)

Ultimately one has to try doing something with this kind of language, even if it's just a toy project. Just reading about it won't enlighten you much, and you will end up focusing on its syntax instead and deciding it looks too unfamiliar.
If you trust in free markets, then you really must let the needy themselves decide what they need.
Makes sense.

I suppose you could also execute "REPLACE FUNCTION" and redefine the inside a new migration each time you want to change it. The downside is that you end up with the whole function in new a migration every time you want to change if. But if you're not updating your stored procedures very frequently (which is usually the case, IME), it probably wouldn't be too bad.
Irony here is the SSL cert being from Amazon.
Not really. If you can justify it under being a designer of some sort it becomes simply expensive instead of unreasonable.

As for e-ink, this is the dream. I want to sit out on the lawn working and as far as I can tell e-ink is the way towards this.
It's interesting to think of it this way. Clearly, the attackers (being ISPs in this case) don't see it this way or don't want to see this sort of MITM this way. Following one of the links in the article [1], you get some great quotes:

> Comcast injects ads into unencrypted traffic, because "it's a courtesy, and it helps address some concerns that people might not be absolutely sure they're on a hotspot from Comcast".

So maybe someone out there actually feels this way when they find content has been directly injected in their unencrypted browsing session. I sure don't.

[1] https://konklone.com/post/were-deprecating-http-and-its-goin...
I bought a lot of below dollar items on AliExpress, no problems whatsoever. Why did you get banned for real?

Also, AliExpress is like second coming of Amazon.
Remember context and respond accordingly. It's getting better but still not great.
If you're already version controlling your schema, the CREATE OR REPLACE FUNCTION call lives in whatever's version controlling your schema.

If you're not already version controlling your schema, you should seriously consider starting whether you're using sprocs or not.
Website development please help and see if my website is okay
Having spent significant time at a true enterprise (in the top 100 of the fortune 500), the push is not for over engineering, but for over bureaucracy. I would represent that the frustrations are more likely to increase, as not only is there an absence of understanding things deeply, but also no impulse to ship.
Can this please be re-titled as a US study? First blush of the article title made me go "What? Seriously?"; the two markets I look at first are London and Sydney.
How to Control Your Kodi Media Center with an Amazon Echo
Yeah, I think this article has got me more excited for USB-C than the new MacBook Pro
I'd say AI is real when it can do everything my 4yr old son can understand and do. I used to think this is a low bar, But going by how slow and painful the progress has been, I'm not hopeful it will happen even in my son's lifetime :(
A funny hack to save money on your accommodation with the Interrail pass is to use night trains for sleeping. Many interrailers might stay in Paris for a week, but every night they jump on a random train towards somewhere, sleep for 4 hours, then switch trains going back towards Paris, and sleep the way back.
Because this is the "bad" kind of propaganda. CNN telling the public that it's illegal for them to go to wikileaks or that globalism is just a conspiracy theory is the "good" kind.

Don't worry if you're confused, your TV will tell you which is which. You know, just like state TV in North Korea or Cuba does. The idea is to be more like them, right? At least that's what I'm seeing here.
Most developers use whatever the company IT department and managers decide they should use.

Not everyone has the luxury to switch jobs all the time to use the programming languages they want to use.
"The stored procedure returns a multi-row resultset via a SETOF[ROWTYPE] return value" might be a clearer description?
A common observation, but I'm not sure how true it is. Python has much more share on things like reddit and on the TIOBE rankings, but it too is dead. Nobody likes Python3 which broke backwards compatibility for Unicode and is significantly slower than 2.x. None of the plans to JIT it have taken off. It doesn't scale. Perl isn't really any better here, but Perl6 is a completely different language than Perl5 that fixes many pain points and if ever successfully optimized might end up being the one scripting language to rule them all ;) (it has a bumpy road though). TLDR: Python has a lot of share, but no real future. It's not dead, but a dead-end (same as Perl5 long-term, but for now it is surprisingly active and well supported). Lots of new projects are done in Perl5 btw. One I'm particularly excited about is TauStation (SciFi text MMORPG).
It is discussed here that you could charge one laptop off another. Okay, cool. But what if they are both plugged in, then you attach them over USB? Do they both send a charge out, possibly cause one or both to fry? And what if you have multiple sources of charging plugged into the machine?
I made a very broad assumption based on my past experiences with engineers and I apologize if I offended you.

Most engineers I have met in my career have really depended on an ORM to do all of their heavy lifting. They can write some of the most eloquent ActiveRecord queries but would be unable to create the same functionality using raw SQL.

Again, deeply sorry if I offended. It was not my intention.
US users probably don't know much about it but Interrail is one of the greatest things about being young European, together with the Erasmus student exchange program. Add the very low-cost airline ticket to the mix on a continent that is quite safe and peaceful place and you may start to understand why young people are much more positive towards the EU project than the previous generations.

EU is also planning to give Interrail tickets to to all young EU citizens, I hope it becomes a reality: http://www.independent.co.uk/news/world/europe/interrail-pas...

Europe can be cheap as much as you want, hitchhiking and youth hostels are safe and available pretty much everywhere. You can even visit expensive cities like London for about 20$-30$ a day by sleeping in a hostel and and eating fast food(or even cheaper if you do groceries and cook in your hostel).

I really love what we have in Europe, it would be a huge tragedy if it all collapses back to the divided and hostile Europe.
Author here! This post is really just me messing around with Javascript, and trying to make some pretty graphs with D3. All the code is up on my github account, http://github.com/benfred/fmin if you want to check it out.

While these algorithms aren't maybe the most useful thing to have in JS, I am using both the nelder-mead and CG code to calculate area proportional venn diagrams in my venn.js project (which is why I originally wrote all this code in the first place).
I've heard the assumption that energy costs outweigh cpu costs for TCO, but after some rough guesstimation I'm not so sure.

1MWh of electricity is enough to power a cpu running 114W on average for a year. A 24 core (48 thread) xeon has a 165w tdp, meaning that even such a beast is likely to use less on average (most applications don't have 100% cpu load 100% of the time, and virtualizing up to that load causes serious issues when several clients happen to simulatneously peak). In essence, this should run pretty much any single CPU, and even if you're doing something weird to actually get that 100% load, we're not far off.

1MWh of electricity is around 40$ at wholesale prices (https://www.eia.gov/electricity/monthly/update/wholesale_mar...). Even if google pays 100, then it looks to me as if straightforward server cpu energy usage is unlikely to be a huge issue.

Of course, there are power supply losses and cooling overheads, but even if that raises the power consumption by a factor 5 (doubtful), then a several-thousand dollar server cpu is still going to outweigh energy costs for many years.

Furthermore, energy costs are trending downwards and cpu's are still getting more efficient; it's a somewhat risky investment thus to buy a more expensive (but more efficient) chip if that investment needs years to pay off.

So, it looks to me as though plain old cpu costs certainly are far from irrelevant; they may indeed exceed energy costs over the chips lifetime if the energy is acquired at close to wholesale prices and cooling is efficient (say 3x overhead?).
> I'm never going to develop a webview app again

That'a a bit of a broad brush stroke, suggesting that you only build games or you think issues you ran into would apply to all app types.

> Not having to learn a new language was great, but it wasn't worth the performance hit and quirks I encountered along the way.

Couldn't you gain many of the same advantages using NativeScript or React Native? (though I think those would still be bad choices for a game)
For what it's worth, I spent half the holiday weekend arguing on Twitter that I think apple has lost its way, and talking about my switch to Windows for my home machine, so I found both the vehemence of the flagged comment and the flagging to be pretty strange.
Thank you, what this Google URL did tho the payed article?
Ditto Digital Mars C++ (nee Symantec C++, nee Zortech C++). But as I recall, like most other "alternative" C++ compilers, it's also stuck in the C++03 land.
Try this https://www.google.no/url?sa=t&rct=j&q=&esrc=s&source=web&cd...
Worth noting that in the past it was using near mid-December when the waiver kicked in (UPS still is near mid-December, though it'll be interesting to see what happens next year)
I came across these quirks too at a prior job while using Cordova as well - I'm largely convinced that these sort of hybrid tools are just not good enough. I haven't used alternatives like React Native, NativeScript, etc. - those sound a lot more fundamentally sound than Cordova/PhoneGap/etc. since they aren't leveraging a WebView to do everything, although I have heard complaints about those as well.

It would be nice if these platforms use just one language, but unfortunately I doubt Apple would ever play nice there. It costs companies a lot more money to maintain separate codebases or resort to subpar solutions...or just go iOS first/only, which is an insidious consequence.
> When you do everything on your master instance, any heavy calculation can become a problem pretty quickly.

SELECT-only reporting code like this is normally run against a query slave, and with a bit of automation you can stand up one of those pretty much as easily as another webhead.
> that (with some care) staging constructs can be elaborated into closures in an unstaged calculus.

Exactly, which seems to provide the necessary semantics for references that you mentioned. Clarifying staging semantics for difficult abstractions like refs by elaboration into well understood closure semantics was the point of the paper.
Protonet Zoe is trying to serve this market:

https://experimental-platform.github.io

https://www.indiegogo.com/projects/protonet-zoe-start-your-s...
> Now I only need to bring one power cable to the café instead of two and I can charge my computer or my phone interchangeably. This is so nice!

I've never even thought of bringing a phone wall charger with me when I have my laptop and laptop charger. Just plug the phone into the laptop if it needs charging.
A year, I think? It wasn't the volume that struck me as unusual, it was the return rate.
Sadly, there are ever fewer sleepers left; a combination of low-cost flights and high-speed rail have essentially killed them.
Have you read Usogui as well? I found it somewhat similar and interesting :)
I don't know the specs of the new MBPs, but my mid-2015 MBP's battery is 7530 mAh at full charge. You can get portable charger batteries that are much more than that these days; this one [1] is 26,800 mAh, which in theory could charge my MBP 3.5 times. In practice, less than that, but still probably at least two full charges.

[1] https://www.amazon.com/Portable-Charger-RAVPower-26800mAh-Re...
In case you're wondering, here is a list of all news sites that PropOrNot has flagged as being pro-Russian propaganda:

http://pastebin.com/YRrkrfTZ

I just can't take them seriously. Their tweets sounds like lulzSec
Clicked on that list hoping to see good news in Seattle... turns out we're up more than any other city in the top 10. Sigh. There actually is a decent amount of housing construction in progress but it seems like it's not nearly enough.
Second this. I spent a lot of time reading reviews on his site. I also noticed the reviews of the books I've read he really nailed the salient points. Highly recommend checking it out.
Brownback’s economic ‘experiment’ creates huge deficit
Interesting! I've never heard climate science explained this way before.

Could you point me to a few papers which expound on this view? I'd be interested to see the mathematical models behind this.
> or based on the name associated with the card

doubtful that that is a strategy or else there would be a ban on common names.
if you had the chance to look at my Wikipedia reference, you'll see Hiatt is still the editor. You will also see there many references that he has shifted the paper into more of a neoconservative leaning paper.
It is only slightly better
I'm not sure I get what's the difference between for example:

def filterFilterTest (xs : Rep[Array[Int]]) : Rep[Int] =
Stream[Int](xs)
.filter(d => d % 2 == 0)
.filter(d => d % 3 == 0)
.fold(unit(0), ((a : Rep[Int]) => (b : Rep[Int]) => a + b))

and

xs.filter(d => d % 2 == 0).filter(d => d % 3 == 0).fold(0)(_+_)

(grabbed from unit tests here: https://github.com/strymonas/staged-streams.scala/blob/maste... )

They both look pretty much the same and superficially do the same thing too, so what makes this new thing better/novel?
He developed it in PhoneGap and didn't release the Android version? :(

I've heard a full engine like Unity is a lot better for designing games across mobile platforms. I've heard cross platform mobile development is a pain, but if you're going to do it, use the right too for the job. Don't develop a shopping app in a game engine and don't try to implement a game engine in something meant for a shopping app.
The largest Mi power bank is 16000+ mAh, smallest is 5000. MPB is 6000, phone is about 3500. So you could get about 1 or 2 charges depending on battery size of course.
Unfortunately, "pure sql" usually means passing in strings, which leaves you without good tooling to manage the code. This can greatly slow down the speed of delivery. It's great if you are in an ossified section of the code/database, but it can be very brittle (or expensive to validate) otherwise.
Once stumbled across on a TheOnion-like website: You can be successful reading self-help books: by writing a self-help book after reading sufficient number of them.
Could you elaborate on that for those of us who are unaware of what cognitive abilities a 4 year old child should possess?
> Most non-fiction books revolve around a few central ideas.

That only applies to business, popular history, popular psychology, self-help, etc. books written for the mass market. Not surprisingly most of them are garbage and frequently wrong. Malcolm Gladwell's books are probably the most well known in this geanra and IMO are garbage.

As soon as you start reading serious non-fiction (mathematics, psychology, philosophy) summaries just do not work. The "book about the book" in fact tends to be much longer in length (good examples: anything on Wittgenstein, anything on Galois theory)
travel is cheap but you should sleep somewhere and that's expensive.
For me, with the only PhoneGap app I've worked on, there were required extensive bridge code to Native APIs, anyway. So adding in the webview components just meant having a mess of different languages/frameworks in the codebase where I don't think it would've required very much native code anyway.

Is there a good meta-compiler solution targeting native APIs across mobile platforms that people are using lately?
Watch out for the sleepers further east (Bulgaria, Romania etc.). Great for thieves, not so great for sleepers.
That's going to be hard to organise if no one is sure what they're supposed to be treating.

It looks like you're using a God of the Sciences argument - because we don't have a full and complete model of mental anguish and self-defeating behaviours, nothing we currently believe about them can be useful or true.

This turns out to be inaccurate. Therapies are tested regularly. Some score better than others, and statistically the results are at least as valid as the result of clinical drug trials.

It would be useful to have a complete Theory of Mind, but no such thing is likely to exist for a while.

Luckily it isn't needed to make a difference. The most useful therapies are results-oriented rather than process-oriented, and the most consistent results come from behavioural reinforcement techniques (where "behaviour" includes "persistent emotional states.")

This doesn't mean other kinds of therapy are useless. But they are less reliable - which may be because they can be more challenging for both sides, or because they don't work, or for all kinds of other reasons.
Which still requires the charging cord
The past 2 years for me have been about the enormous exposure of how rent has been going up and house affordability has become a real problem world-wide.

As legislation started to get promoted in different countries (Vancouver's foreign tax, Berlin's Airbnb ban, Argentina rent-caps) I always thought that the origin of this entire problem is the low rates for lending, and that these laws would only be a hinderance to recovery.

This is still early to take for granted, but my suspicion is getting more likely. I feel sympathy for the people that told me that houses are the safest investment, and that renting is always worse than buying.
Not saying that at all. Saying that if someone says it'll run in 8GB instead of 16GB, or 16 instead of 32, it's possible, but those claims ignore performance. The presence of those statements means absolutely nothing absent of context (for instance, the required performance of a Windows 10 VM isn't the same for someone just testing a site on IE versus a developer running a 300GB SQL Server database)
adblocked. bye!
Perl6 can be written as beautifully as any language, but can also be written to look similar to APL (more so than P5), but obviously not as terse as APL.
Snapzu Blog Enhancement Suite: It's essentially a voting community widget that you can embed on your blog to make it a lot more social and engaging. This provides any blog with extra content, extra audience, and additional revenue (with revenue sharing). Right now there are similar widgets out there (Twitter, Pinterest, etc) but most are redundant (showing content that's already on your blog) and not really allowing your audience to participate or engage.

URL: http://blogenhancement.com

Right now were in pre-launch mode (collecting emails of interested bloggers) and are launching all the listed features in about 35 days. This is an add-on to our core community and discussion platform Snapzu (similar to reddit/HN), which has been around for a few years.
> Why does it matter what the discussion was about?

Because anybody would get pissed off if they were called that for doing their job (stopping a witch hunt). He inadvertently deflected the hatred causing the doxing of a pizza shop to himself.

He should have just ignored it, since you can't really nuke the thread or it'd make things worse, but at the end of the day you'd still feel like shit.

> and now it's no secret that they were right.

Editing user content tends to get caught. Especially in high profile shit like the elections. The editing tools he used were probably spam related (so the spammer wouldn't know).

The "known secret" was that they were trying not to drown /r/all in US politics everyday, which is justifiable.
#1. Eliminate the need for a hub for each smart device I own.
It took me a couple of days to get used to the Macbook keyboard. I had a similar transition time the last time Apple made a major change in their keyboards.

I'm kind of astonished at how many people turn their noses up at different things based on a first impression, even in groups that you might consider early adopters of tech.
That demonstrates multiplication of a matrix with a vector which is being rotated, but multiplication of two matrices corresponds to composition of the corresponding operators.

This is actually pretty instructive. For instance, rotations in three-dimensional space do not commute in general; hence neither does matrix multiplication.
We should also consider making startups a place where understanding is more common.
I would really wish for a timer assistant. When I'm cooking in the kitchen with both of my hands occupied, I could just ask it to set timers.
Original
HN discussion from three years ago:

https://news.ycombinator.com/item?id=6936539
I have tried to grasp PhoneGap/Cordova many times and the thing just doesn't make sense to me. Seeking a pet project to try React Native whose concept seems saner.
OK Google, when does the supermarket XXX in city YYY open today?
At work we use a rather idiosyncratic tool called RoundhousE to deploy our SQL. It treats sql labelled as a stored procedure differently, and will run the file on every deploy, as opposed to scripts that alter the schema, which are only ran once, and may not be modified.

The system works pretty well.
You already can. Try it out: "Hey Siri, set a timer for 5 minutes"
Agner says that he sees no point in hyperthreading. Then he also complains that most AVX512 operations have a latency of 2 clock cycles.

Those two, I think, go hand in hand: the point is not using unused execution resources with the additional hyperthreads (thus the decode limitation), but using the other threads to fill the pipeline bubbles created by the higher latency instructions, a-la barrel processor.

edit: this of course works as KNL is aimed at throughput jobs, not anything latency sensitive.
You might want to take a look at dreamfactory[1]. They have a nice app that wraps all manner of services to become a self-hosted MBaaS. I've used it to put a REST interface on my postgres database, views, and stores procs.

[1] - Dreamfactory.com
Probably a chicken-egg thing. I, for one, don't have a single USB-C device at home. Zero. Nothing that can plug into a USB-C port without an adapter. No plans to buy anything that does, unless I'm forced to by computer/phone manufacturers. I would be... unenthusiastic about a motherboard that emphasized USB-C over other ports. Includes it, so I have the option to start transitioning? Sure.

Work's similar. There are a couple USB-C Android phones floating around, but the other end of their cables is—drum roll—USB-A.
I'm currently trying out Flutter, so far it seems pretty great. https://flutter.io/