skysight-inc/HackerNews huggingface dataset:
At first, I tried to extend the existing language.
However, it was difficult because implementation of the Egison pattern-matching has big influence for whole design of a programming language.
I wrote answers for this question and other frequently asked questions on our website.
Please check it too.
http://www.egison.org/faq.html#why-new-language
Yes, at one startup I worked on we had written one of those as well (https://github.com/akshell/docs/blob/master/guide/db.rst).

The problem is they are still an abstraction. You write these queries using chaining or whatever but when something goes wrong you still need to look at the generated SQL statements.

With MongoDB, the query you write in your app is exactly the same as the query you run from the MongoDB shell and I like that. I can prototype the query in the shell and then copy paste it into the application code. When the application code is producing unexpected results, I can easily debug it in the shell.
Either you're joking, or I've wasted my career.
I'm not a designer by any means, so take this with a grain of salt, but after reading through the first link, BEM bears a striking resemblance to hungarian notation, which I think most of us decided was a bad idea a long time ago. Do you have any sense that this naming convention is different somehow from the naming conventions that have been used and abandoned in other areas of software development, and if so, what makes it different?
Honestly, some of the best brain science ever was by accidental injuries removing some portion of the brain and scientists getting to study the difference. So being able to pick and choose now is ground breaking. It's the equivalent of genetics when we started being able to selectively turn off or insert genes (along with a fluorescent market to know it took).
Calling the C++ standard library crap is acknowledging the Wheel was Not Invented Here.

Glazing over the fact that Qt has an incredibly complicated object hierarchy by saying "they're good for you" is not acknowledging the fact that it's complicated and difficult to learn or work with. You didn't even mention, e.g., MOC - Qt's incredibly complicated Meta-Object Compiler. And people call GObject complicated...

Ignoring the fact that basically every other platform than Windows (and the platforms it has managed to infect) uses UTF-8 as its One True Encoding, and that you and Qt are proliferating the claim that every sufficiently complicated C++ project has its own string class with its own specific peculiarities is not a good thing.

Most importantly, you can't dismiss his concerns by agreeing that all of them exist and that he shouldn't care.
Well...until brain electrical signal is decrypted, they'll keep on zapping until something interesting happens. Remember when electro-shock therapy was used for nearly everything in medical practices?
I suppose the key point is that I over-read Interstates are the only environment where an automobile should exceed 55 MPH (if you're obeying traffic laws). (which is simply not true) and looked past there is no testing standard (which does a nice job of qualifying what you were saying).
Article author here...

The critique about comparing P/E's is fair, but my point was really that Sprig & friends are restaurant chains vs traditional tech co's--and restaurant chains actually have decent P/E ratios, which totally shocked me. I was expecting restaurant chains to have P/E's in the 1-10x range, not 30-70x!

From a VC perspective, investing in a restaurant chain looks like a good idea if you can actually make the E in the P/E (ie turn a profit). I don't know about you all, but this was surprising to me.

Also, to address another point that some people made: Sprig & SpoonRocket use the delivery drivers as mobile storage units carrying pre-prepped & heated meals in the trunk. They don't do point-to-point pickup & delivery, which is how they can deliver so fast, cover so much geography and leverage their smaller real estate footprint.
Should I read the 1st or 2nd ed of Intro to FP by Bird & Wadler?
>It sounds like the buyer did not re-register the device with their own Apple ID (assuming that is possible).

This is correct. You are supposed to set up your own iCloud account on the device, to make sure that no one else (except maybe Apple) has remote control over the device.

Actually, I don't remember reading about that in the Apple security whitepaper. Does Apple claim that they can't remote-lock your device without your password?
Reminds me of this well-written short story (part 1): http://marshallbrain.com/manna1.htm
Do you have any place you'd suggest online to learn more about options?
Redesigning The World Cup 2014 Brazil
This strikes me as a problem of acquiring recognition by peers in academia, not of making actually useful contributions/products in an inter-disciplinary field. Someone mentioned Musk, but I think there's a sharply increasingly amount of lesser known Edisonian tinkerers and engineers turning out useful ideas and products for customers, they just aren't going to win the Nobel prize.
Poking "areas" of a massive organ with a stick vs direct manipulation of DNA at the molecular level.
Probably related to the "web scrapers" they spent some of that 200k on.
Thanks for checking out the example and I agree that it may be overly trivial. We do plan to investigate this further and will blog about it at https://starthq.com/blog/

I really think that depending on one's requirements it should be possible to query relational database using MongoDB syntax and use (basic) relational queries on Mongo data.

There have been tools like Metrica (https://starthq.com/apps/metrica) that do this, but we're working on implementing that as a Node package.
Twilight of the Pizza Barons
Presumably these tricks have been a/b tested to the hilt by the Upworthies of this world, so whoever they're supposed to bait, there's a lot of them.
Seems like a fair suggestion. I'll add it to the list.
Testing is not enough.

I release an application "today" (and "today" for example is when Gtk 3.4 is released), and six months down the line the Gtk team decides to release Gtk 3.6 which breaks just about every application that has a GtkTable. As an application developer, I believe I have a right to be pissed.

How do I file a grievance? I go to the GNOME bug tracker to find my bug. CLOSED: WONTFIX - we don't care, our solution is you port to GtkGrid. Doesn't matter to us that you now have to bifurcate your codebase to work with people still running Gtk 3.0 or 3.2, or choose to ship your own built version of Gtk 3.4 with your application. Fuck you, application developer.

What do I do to mitigate the impact? Well, I have to spin an emergency release of my application, despite the fact that no other code might have changed, just because the Gtk team decided that breaking ABI was no longer a concern for them.

Now multiply this for basically every Gtk cycle from 3.4 to 3.1(3/4) and you realize the problem.
If the security of the system relies on the system be secret, as opposed to the keys being secret, the system isn't secure... As have been shown again and again, you can't give someone the code (obfuscated, compiled, encrypted along with the decryption key) and also not give them the code.

So you'll slow down reversing, and probably deter most hobbyists -- but not anyone with anything tangible to gain from breaking your system. Personally I think "obviously insecure" is better than "might be somewhat safe".
This seems pretty interesting if you read the description of the brain region.

http://en.wikipedia.org/wiki/Claustrum

I find this more interesting than 'rebar through the eye' style stuff like the Phantoms in the Brain book by this guy: http://en.wikipedia.org/wiki/Vilayanur_S._Ramachandran

It's more interesting since they mention consciousness, though I don't know what they're really talking about.

I think stuff like 'rebar through the eye' has revealed interesting 'machine learning'-type defects, like funny ways your vision can be messed up and see at a very low fps, unable to perceive most quick motion.

But machine learning is popular and stuff because it works, unlike strong AI and consciousness, which are pretty difficult to get any handle on.
Randomization of the pivots produces O(n log n) average running time with a very low probability of any other running time for any value of n where the worst case running time matters.
$1,099 iMac review: lose 50% of your performance to save 18% of the money
Completely agree. There is absolutely nothing gained by collapsing that sidebar on a desktop.
I honestly don't get these arguments.

Not sure how you concluded this is about NIH. Qt's container are very developer friendly and as an application author that's the first and most important thing that matters.

Saying moc is complicated is like saying dalvik or ART is complicated. These are just tools that work in the background. Just like you don't need to know ART internals, you don't need to know moc or the code it generates for you.

Arguing about string encoding is so 1990's, I won't comment.
A lot of people enjoy creating content. Look at Tumblr (blogs), Wordpress.com (blogs), Instagram (pictures), etc. We believe Listnerd could fit in there (lists). I don't know about you though; depends on what you hobby or passion is. That's usually what people make lists about.
Now they can turn us off just like Data did to the Borg......
Let the Ceiling Float
I haven't tried Munchery since I live outside SF, but I'm surprised the food tastes good reheated. I've never had restaurant leftovers taste very good, particularly in the proteins where the moisture loss in heat/cool/reheat is significant. And the presentation ends up looking more like a TV dinner than the plated dinner shown on the website.

Does the perception around the chef/dishes contribute more to the positive experience than the actual taste of the food?
Im not sure why there seem to be some negative comments, this is absolutely amazing- albeit a little scary in a sci-fi clockwork orange kind of way...

Additionally, consciousness gets commonly defined in philosophy of mind as the "likeness" of sensation and perception (i.e. its "like" something to smell roses and its "like" something to hear Mozart). So, this study cuts at the root of consciousness.
Take a look at the Bootstrap LESS[1] source and see how they do it. Want an orange HN button?

@brand-hn: #FC6621;
.btn-hn {
.button-variant(black; @brand-hn; darken(@brand-hn, 5%));
}

<button class="btn btn-hn">Hacker News</button>

Nearly every component of Bootstrap is made via these 'generator' mixins, including the grid (which is less than 40 lines of actual code)[2]

Just don't be tempted to extend the 'base' classes. If you do something like this:

.hacker-button {
.btn;
.button-variant(...);
}

<button class="hacker-button"></button>

You might find it not working properly with things like the input or button groups, for example.

[1]: https://github.com/twbs/bootstrap/blob/master/less/
[2]: https://github.com/twbs/bootstrap/blob/master/less/grid.less
We need to use the world's best anti-anti-spam technology. The stuff that generates random spam message texts to sneak past spam filters. Maybe combine something like SCIgen [1] with a corpus of "interesting" texts?

[1] http://pdos.csail.mit.edu/scigen/
Already answered this, just see my previous answers!
Wongene Daniel Kim - Pinterest
There is no reason to implement fibonacci heap for Dijkstra.
Either you have relatively small data (up to 10 mil. nodes and edges) and normal heap is a way faster or you have bigger data and you should start thinking about things like A* where fibonacci heap is again useless.

You should note, that log n factor is so small (up to 40 on the biggest data you will ever see), that it can be easily dominated by other constant factors in implementation (like cache locality, ...).
FYI, for those who want to write cross-platform GUI apps but prefer to avoid C++ (even the mildly nicer Qt flavor...), there are alpha-quality go bindings for QML.

https://github.com/go-qml/qml
At the bottom at this page is part of the evidence http://cryptome.org/2014/06/wl-harrison-hoax.htm . Every single time a anti-NSA story comes out he is first to try to defend the actions of the NSA. He is a provocateur and clearly biased.
I would never put KMP and Coppersmith-Winograd into same place in terms of practicality.
KMP gives you very good and fast results on some data (especially data with repeated sequences). Coppersmith-Winograd (and even Strassen) will never be practical on any reasonable data we will see in near future (http://www.ics.uci.edu/~fastmm/FMM-Reference/paoloA.ishp-vi....)
The NSA Said Edward Snowden Had No Access to Surveillance Intercepts. They Lied
If a market is to be anything, it must be people buying and selling stuff. Unlike MS and Windows, nobody buys Android, and Google certainly doesn't sell it.

Google built Android but does not control it. What Google controls is:

1. The Android marks, like the green robot

2. The closed-source Google services: Play, Maps, etc.

Those are Google's levers. Any smartphone vendor who wants to use the above must agree to other terms, like making Google the default search engine.

In Russia or China, Android phones without Google services are very common. Google can hardly be said to control those markets.
Show HN: Javascript Interview Ios app 1.2
"Although only tested in one person"

As a classically trained scientist, I fail to see how this can be newsworthy given how big of revelation this would be to broader scientific discovery and how statistically invalid this claim is at this point.

However, as legend would have it, psychologist B.F. Skinner was famous for performing his experiments on a single cat/dog. When prodded by other psychologists on how he could claim his results were valid since he only tested it on one subject, he would say "Well, bring me your cat"
Most neurology reports are case reports of 1 patient, the most notable of all of course being Phineas Gauge.
There's a somewhat throwaway line in there - "It’s as though Apple used the Yosemite wallpaper as the environment map for the new icons." - that made me think how it would be possible to find the highlight/shadow hue for any given wallpaper and apply it to the icon set. I imagine it would be technically easy to accomplish with vector graphics.
My favorite part:

"Koubeissi thinks that the results do indeed suggest that the claustrum plays a vital role in triggering conscious experience. "I would liken it to a car," he says. "A car on the road has many parts that facilitate its movement – the gas, the transmission, the engine – but there's only one spot where you turn the key and it all switches on and works together. So while consciousness is a complicated process created via many structures and networks – we may have found the key."
they changed the finder icon! OUTRAGE!!!!
> This is a stunning report.

Significance buried with poor headline, also could have been broken up into multiple stories. This is def a top 5 Snowden revelation, with the added bonus of a denial from a top official.
I believe Big Theta means bounded above and below by `n^2`, where the bounds differ by a constant factor. Saying that Quicksort is Ɵ(n^2) means that is has worst case `n^2` AND best case `n^2`. But the best case of Quicksort is `n`.

So Quicksort is O(n^2); the worst case is <= cn^2, for a constant c.

Sorry to bring it up. I was wondering if I wanted to be the annoying guy who nitpicks on that; but then I thought you might be interested in the difference.

[edit1: was wrong, don't want to mislead]
[edit2: not sure I was wrong anymore, this is confusing]
Myth #11: Luck isn't a factor.
Howdy! I definitely understand how a lot of neurological progress has happened with single person experiments.

I guess my main quip is how matter-of-fact this article expresses the finding!

Then again, I may just be arguing over semantics and not taking the gist of the finding. I appreciate your simple note to remind me of the fact that the finding is the cool thing, not the words used when being reported!
So?

Fundamental physics is done by smashing particles together and seeing what happens. We've gotten tremendously far with this approach. Do you have a better idea?
Comparing mobile databases
Has any good comparisons been made for mobile databases which runs on both iOS and Android? And what's your experience?
US courts don't look fondly on loopholes. For example, the Supreme Court just ruled against Aereo and stated that the legislature didn't even need to close the loophole, that the courts would do it for them.
Flat became popular in the '60s — the 1860s, that is, when Japanese art became available in Europe.

It became popular again in the twentieth century in the 1940s, but for somewhat different reasons.
Cool Code, Bro: Brogrammers, Geek Anxiety and the New Tech Elite
I've been taking Roughgarden's Algorithms: Design and Analysis on Coursera and implementing the assignments in Racket. So in a sense, I identified the author's plight with my own recent and current experiences.

One of the early lessons I learned is that designing functional versions of algorithms is a whole higher level of hard over and above implementing conventional versions. For me, getting to a functional or less imperative version is an iteration of an imperative preliminary design. There's a stage at which it is easier not to get bogged down with data structures as values and instead let them be variables because it allows me to simplify the transition to the next state as (next-state). I don't have to add additional parameters to every function and coordinate them between functions.

I think that it easy to lose site of the fact that functional programming is supposed to make our lives easier by making it easier to reason about our code. Jumping from imperative pseudo-code to an idiomatic functional implementation is not easier for me to reason about than from the pseudo-code to It's direct implementation. And it's easier to reason from a direct implementation to a more functional one after I've got a feel for the direct implementation.

Probably it's an intellectual shortcoming on my part that functional implementations don't come readily to me when looking at imperative pseudo-code. I just have to live with the fact that even money says I am below average and will probably have to be naughty and use mutation sometimes.
Islamic State leader Abu Bakr al-Baghdadi appears in public
I've found that size doesn't matter much at all...but constraint type does (hard vs soft). Soft constraints very easily lend themselves to IP formulations, but problems with lots of hard constraints require a ton of luck to get it to work quickly with an IP solver. 3d bin packing, for example, is very heavy on hard constraints. I have a CP model (using the Geost constraint primarily) with an ensemble search heuristic (genetic + LNS), and I have yet to find an IP model that can get within 2 orders of magnitude of the average solve times of the CP model.
Without some force of law to ensure dividend distribution back to shareholders, equity doesn't really exist except at the pleasure of management.
"In the right room" is important. Anyone who spent $50k on loudspeakers ought already to have spent an equal amount on room geometry and materials. In fact above a fairly modest amount (a few thousand bucks, maybe) most people will get superior results from changing the room, rather than spending more on the equipment.
The principled way to avoid bad worst-case performance for quicksort is to select the pivot using a median of medians approach. That gives you good asymptotic performance even for adversarial inputs, but in practice it tends to be slower. Which fits well with the theme of this article.
Show HN: CC/Fwd any email with a URL to get an email of extracted main text
hum... none of those really does what irc does.
I highly recommend Tim Roughgarden. Best class I've taken on Coursera by far.
I am working on a Bootswatch theme called Paper, which is based on Material Design: https://github.com/nicolasmccurdy/bootswatch/tree/gh-pages/p...

I have a bit of work to do before it will be done, but if you'd like to contribute feel free to fork it.
> I'm so glad the Web and Modern Browsers reinvented "desktop applications".

You might be the first person ever to say that.
List of Multiple Discoveries
Haxe has a few more language features (abstract types) and compiler features (dead code elimination) but it lacks a few from Ceylon such as union types.

The Haxe compiler is much, much faster than Ceylon. I wonder if certain features just can't pass a speed threshold.
Those things can be just as crude as each other. Genes (and proteins) can interact in very complex ways so don't be fooled into thinking that 'direct manipulation' of specific parts means you have any idea what's going on.

As a software analogy, think about a very large and complex, undocumented code-base in a bizarre language you've never come across. Your only experimental tool is to pick a line of code, delete/modify it, and then see what happens. As you learn more, you can do refine your experiments but basically, you're still just 'poking it with a stick'.
The algorithm games can not be patented (licensed). Only the name and design.
Wait, what is the "21" supposed to represent? Seconds?
Could this finally be a real replacement for Snobol?
And for Visual Studio, there's VsVim: https://github.com/jaredpar/VsVim
This is a limited perspective (mine), but here's how they're competing right now: All 3 are optimized on "home-quality" food, i.e. healthy, homestyle cooking. And they're cheap. Sprig dinner is $12, delivered in 15 mins, warm, tasty, and healthy. There are _very_ few $12 meals out there that meet all of those criteria (Chipotle is almost there, but they don't deliver to my door in 15 mins).

So I see them competing because they're focused on different things (and they're doing it right, at least for me -- I order dinner from Sprig 2-3 nights a week and lunch from SpoonRocket 2-3 times a week).

Traditional fast food restaurants (Chipotle excluded) optimize on price, speed and taste (similarly), but those all come at the expense of nutrition, which (disappointingly) most people don't seem to mind. I hope A) that changes as the US continues to get fatter, and B) these guys don't 'sell out' and drop their food quality because they realize that deep-fried cheap chicken is "tastier" and cheaper than grilled high-quality chicken, etc.
Yay! Audio knowledge! I've met so-called "geeks" who will look at you funny if you start talking about "frequency response" -- but they'll talk your ear off if you remind them about the frequency domain and Fourier Transforms. Back in the late 20th century, just about everyone who was tech savvy seemed to know some basics about sound. Nowadays, I wonder if the whole Monster Cable/coathanger thing has made some people filter out everything sounding like audio knowledge as "woo." Not all of it is. A lot of it is physics.

Back in the 80's, designing and building your own speakers was a suitable project for high school students. Still is.
Well as soon as you admit more than one consciousness into the world your already on shakey ground. And allowing one consciousness is perhaps being charitable.

Not that I am arguing against other minds, mind you. It's rather that a starting point of classical science doesn't really get one anywhere in regards to consciousness. We are always performing an induction from the one we have privileged access to for any claim about others