skysight-inc/HackerNews huggingface dataset:
This is where functional reactive programming really shines. It lets you model time explicitly. You can easily work with streams of events, but you can also work with things that change continuously over time.

With a standard callback/state-based approach, you end up implicitly modelling time through mutable state. This has a few major disadvantages: it's difficult to talk about history and time is distinctly second-class. The "resolution" over time is also implicit and ends up depending on your implementation.

An FRP approach lets you make time explicit and a first-class citizen. In turn, this allows you to directly talk about the relationships between time-varying values and their histories--for example, you can "integrate" over time explicitly.

My favorite example comes from a little game of life applet[1] I wrote. Basically, I have an explicit timer that controls animation steps (called life)--it's a stream of () which has a value every n milliseconds. I also have a behavior called "paused" which corresponds to whether the pause button is pressed. I can combine these directly:

when (not <$> paused) (step <$ life)

(The step :: Life -> Life function represents iterating a single generation.)

I also have a stream of (x, y) coordinates from the mouse. There's a modify :: (Int, Int) -> Life -> Life function that flips a cell at the given point. I can combine these into another Life -> Life stream thanks to partial application:

modify <$> clicks

Now that I have these two streams, I can just combine them with union:

when (not <$> paused) (step <$ life) `union` (modify <$> clicks)

The cool thing about this short snippet is that it shows how I can combine three inputs--a button, a timer and the mouse--into a single stream very easily. It's also very flexible. Right now, the "when" only applies to the first input: you can modify using the mouse even when you're paused. If I wanted to change this, I could just wrap the whole thing in the when:

when (not <$> paused) (step <$ life `union` (modify <$> clicks))

Anyhow, I think FRP is an awesome approach for this sort of problem. Another thing that I did not mention is that you can write your program in a way that's "resolution-independent" over time. If your library models time continuously, you get the moral equivalent of an SVG except for reactive code! I think that's pretty cool too, although it turns out to be tricky to implement.

[1]: http://jelv.is/frp
Optional, one-click censorship is not censorship, it's an option. It's not the default setting I would have chosen, but it doesn't make them The Man.
High frequency trading minimizes volatility. And MtGox is notorious for not taking weeks to pay out. So I'm not entirely sure what you're on about.
Seeing relatively large sales

For comparison, overstock sold 1.1B in 2012.. which is 2.6M in 21 hours vs 124K in 21 hours
Gen - a generics library for Go
Covert and thus unchecked by other viewpoints is a problem.

But is muzzling the entity and its spokespeople the truth-and-utility-maximizing response? It's suppressing information from the discussion, of which free speech advocates can be rightly suspicious.

Lots of paid work, even by people with an interest in the outcome, is useful. Until Wikipedia, all encyclopedias had mostly-paid authors. Almost all of the reliable sources Wikipedia uses have paid authors, often with a stronger-than-"NPOV" perspective.
Show HN: A homemade realtime analytics site built with Meteor
The country where you incorporate isn't so important - what's interesting is where your human beings and your computers are located.
Rather than an exception, I think this is an example of the precise scenario in which it's most inappropriate to use comments.

> visually represent logical segments of the code

This is exactly the use case in which function definitions excel. Use functions for this, not comments.
The squeeze bottles you can buy from Costco are way more effective than neti pots. I've used both and found the neti pot just not really doing that much.
A Grumpy Guy Complains About Complaining
Exactly. Good luck getting 100% of the spot price of Gold.

In a perfect world the newspapers would use the combined weighted price for the last few weeks shared by all of the exchanges, but we're dealing with reporters here.
You can sell but you can never get the USD from that sale.
> Personally I would move to Povo, Utah (not well research, so don't judge if Povo actually sucks). I like the nature and the climate of Utah better.

Right, Provo is another option. But my distaste for warm climates is only eclipsed by my distaste for religion, particularly fundamentalist ones like Mormonism. Provo is home to BYU and the largest Missionary Training Center for the LDS church. I don't mind religious people too much if they keep to themselves, but I can only imagine how often you would get accosted in public in Provo by "missionaries in training" trying to practice their "pitch". I'd be willing to tolerate the heat in Austin if it meant avoiding that.
BMeMINI is a Wearable Camera That Let’s You Save Video Clips Minutes After Cool
Good to see Microsoft making progress on this!
Fundamental Analysis for Cryptocurrency
I was explaining the general problem.

As for std::vector, GDB can and does do this now, through python based pretty printers.

That gdb script is completely unnecessary for this now.
Most distros ship with gdb + appropriate pretty printers pre-installed, but they are also available in the libstdc++ repo.

See https://sourceware.org/gdb/wiki/STLSupport

If you use this, print on a vector just works, no extra commands or anything needed.
"To know me better, try walk in my boots", said GNU/Linux - Beat Of The Geek
http://www.nytimes.com/2012/01/08/opinion/sunday/notes-from-...
What about holiday sales being majority of yearly revenue?
This is just ridiculous. If Overstock is the biggest retailer in the world accepting Bitcoin, and on their opening day they only manage $130,000 in sales (130 BTC), what does that tell you about the volume of Bitcoin actually being used in trade and commerce rather than speculation?

There are 12.5 Million BTC in circulation. I don't doubt that Bitcoin will become a revolutionary system of payments and money storage down the track, but the price of coins is outrageously inflated at the moment.
The game of life is about as discrete-time as it gets. As you say, continuous treatment of time is fiddly, and that's what I was trying to talk about. (And you're right that FP is probably a better approach if you need history).

(I suspect correct implementation using an object-oriented approach is also tricky, tbh - but you can write the naive OO version and it will work most of the time, and fail less badly, than a functional version at the same level of completeness.)
> Our solution was to have "move" and "think" phases for all entities

Oh good, that was my really simple solution for multithreading a large agent-based simulation on the order of 100k entities. Each step has a read-only phase (decide) followed by a write-only phase (act).

I figure that's good enough (if not quite optimal) for maximizing CPU usage on a simulation running on one computer.
Joyent co-founder on why AWS will win, OpenStack will flatline, connected cars
I know that I get much more useful results if I search for torrents on DDG than Google. I don't know what the exact mechanism is, but it works.
tl;dr; Banks are federally insured, marijuana is still illegal at the federal level. Policy must change.
Just so i'm clear, your argument is essentially: we should be more impressed more because they designed it in a way that made it difficult for them to do this?
Author here. I wrote this to elaborate on a comment I made here ( https://news.ycombinator.com/item?id=7015508 ) about the best way to keep things running smoothly in the event of downtime. Preparing for downtime in advance can really make life a hell of a lot easier.
Really?
I thought it sounded more like KISS and what Apple have been doing: Making software accessible to the (amateur) enduser. (E.g. the iWork and iLife suites as well as many iOS-apps)

Sure, some people might need advanced tools for their advanced workflows, but there's often a huge market in software for the everyday-man and -woman who only [writes] as a hobby.
It will avoid page cache in the VM, but will not avoid cache on the host, right?
Well, things have improved a lot, but there's way more truth in what you say than there should be.
The BTC ATM market is ready to heat up in a big way.
>>And MtGox is notorious for not taking weeks to pay out.

There must be a typo there. The word "not" should be removed. MtGox is a mess. It doesn't matter if MtGox values bitcoin at $999,999 each. You'll never see a dime. I'm curious to know who is using that exchange and how well it's working for them. Maybe they're daytraders who don't actually feel like getting fiat yet. I know I've been trading coins<--->fiat on btc-e.com but haven't actually requested the USD of my profits yet. When that time comes, I plan to buy bitcoin ---> coinbase.com ---> bank account. And in this way I pay the rate coinbase.com will give me.

If you try to go MtGox--->BankAccount, failure. So the fiat/BTC rate on MtGox is meaningless unless you're lucky enough that it actually worked for you.
So what you're saying is that on the first day of availability, Bitcoin made up 5% of their sales by volume. I'd consider that a pretty big success.
Given the scope and variety of dependencies people have on Google products, I feel as though this should also very clearly state what this does not delete. E.G. "this does NOT delete your Gmail account"
I didn't find this talk all that informative, particularly Gilad's rant about Milner type systems is really against a strawman and shows his ignorance of the topic. The rest of the rant about monads seems to boil down to "I don't like how they are named in Haskell" which to me seems like a very shallow criticism.
Not really the case for Overstock.. Q4 2012 was 342M, Q1 2013 was 311M... their sales have been flat for 2012, 2011, and 2010.. so it's likely Q1 2014 is similar to last year

http://finance.yahoo.com/q/is?s=ostk

http://finance.yahoo.com/q/is?s=OSTK&annual
Seesaw: Clojure + UI
Daring to ask the PED question
Could be that C# is no longer working - it was always a bit fiddly because of how # gets treated by whatever search engine at a particular time. I haven't touched the code myself in years.
Nice example, but to those considering implementing this in their own code, please don't use that convergence test in practice.

First, you really don't want to do that division x/y, which is slow, and which fails if y==0. It's much cheaper and safer to compare "abs(x-y) < 1e-10*y".

Also, you almost always want to compare (x-y) to an absolute convergence limit (in addition to your relative tolerance), in case x and y are very near zero.

Finally, if you really want a generic converge function that can be re-used elsewhere, you might want to allow for non-convergent processes. This requires tracking the number of iterations, and bailing when it gets too large.

By the way, now that your convergence function wants to know (x-y) rather than x and y individually, you might consider rewriting your logic functions to return the predicted change, rather than the final state. This avoids forcing a re-calculation of the change, which typically was already known in the logic function. It also avoids floating-point problems in which the calculated change x-y differs from the predicted change that produced y in the first place.
It tells you bitcoin is at the adoption stage. People are just finding out about it.

Plus Overstock isn't exactly a hot retailer. If Amazon does this, it will be HUGE.
The buttons and clicks that I also support in my tiny example are not discrete. Or rather, not in the sense you meant. The grid of life is modifiable at any time--whether its running or not--and can be paused.

I only talked about it a bit, but we can also model continuous time. Not things like events but things like the mouse position. After all, how you sample the mouse position should be an implementation detail! This is what I meant when I was talking about being "resolution independent". The fiddly part is not the FRP abstraction but implementing it efficiently. And, again, I'm talking about continuous time not like events (which may happen at any time but are otherwise discrete) but like a continuous function in calculus.
no document.referrer. So this is untrackable. I think it's a shame, search engines should pass a referrer and hide searched term for privacy.
That's adding some rather subjective baggage to the term "profession".

I think the only thing really stopping software development from becoming a formal profession is a standardized code of ethics (of which there are several proposed) and a professional body to govern it (and let's face it, professional bodies can exert power to satisfy immoral agendas, much like unions).

Then:

Professionals are allowed and expected to dedicate about half their working time to career development and continuing education. Many software engineers will get fired if they get caught in that.

This is pretty much false.

Honestly, given all of this, I don't even think software development becoming a profession is desirable at all.
Thanks. I dropped out of my CS degree at university and did economics instead, and now i straddle both worlds :P

I say with no ego or pride that I've heard just about every economic theory/justification there is from discussions with the rich and the poor. On the one hand its fascinating how most of the world is driven by relatively folksy beliefs. Its also fascinating to me how relatively devoid of economic knowledge most programmers, and indeed people, are.

The "I work really hard" is a standard refrain in discussions with relatively wealthy individuals in justifying their wealth. I would place it almost at the level of a basic emotive response. Perhaps its trying to respond to an innate notion of fairness in the human psyche that needs addressing to explain obvious inequality. Either way, it keeps getting trotted out despite being obviously disprovable and also being not the way that entrepreneurs or businessmen pay their own staff, so it was a good bet from you were talking to someone in just such a scenario :P
These things all have biases though. Github is not going to show you much COBOL at all, and yet that language remains fairly popular in its own environment. The best thing is to include as many as possible and let people play with the weights.
I disagree. Amateurs don't necessarily need pro tools, they need tools that help them do the job that they want to do better than either no tools, or poor tools. They also might get confused and put off by the steep learning curve offered by some pro tools. E.g. PhotoShop (I don't think I need to say more).

Just because something isn't a good fit for the pro or power user, doesn't mean that it doesn't have a place in the market, or couldn't be considered good or useful.
It's inflated because USD withdrawals are severely delayed, often taking months to clear. There are people waiting since June 2013 for withdrawals.

Domestic JPY withdrawals seem to happen smoothly so some people use that route to get fiat out.
What would be interesting is a look into passive elicitation of information. Its easy to falsify something when you know someone is looking to use a single data-point against you. But tryly powerful social engineering would manipulate your confidence, and extract high-information-content data passively (when you are not expecting it), and to do this they need to instill confidence that you <are not being ovserved or monitored>. Yet they still may need to promt information flow, to feed the analysis. Which is sort of the art of interviewing, but now in a bit more 21st century context.
I follow your argument. I will note though that Japan is already land- and natural resources-bound in ways the United States has never had to struggle with. It's a smallish island nation with lots of mountainous (difficult to farm) terrain. I believe Japan has not been able to feed itself without imports for ages. If there is anywhere downsizing population might make sense, it would be there.
I might, but searching for "Draft" doesn't find anything and none of the blog entries talking about Draft actually link to the website. Are they in stealth mode or something?

Edit: tried again and it's the first result. Weird.
He overflowed the int? Well shit...
Kingston displays 384GB of DDR4 in top-secret Intel server at CES
First thing that came to mind. This is one way bitcoin helps people; when banks start refusing to allow you to use your money how you want.

Remember when wikileaks couldn't get donations because "pressure" was put on paypal, mastercard & visa not to process those payments? Bitcoin.

Wanna donate to the piratebay? Anonymous? ...bitcoin.

Megacorps wanna donate to a political campaign without being found out later on? ....bitcoin.
What's pay got to do with it? See

http://michaelochurch.wordpress.com/2012/11/18/programmers-d...

Comments may mislead yes, but that's a problem with any sufficiently expressive language, and code is one such language: code can mislead. The functionality required of the code may be only half-implemented, then that code is misleading. That code may work for certain easy cases, but it may be harmful to your understanding of what functionality is actually required.

It's easy to see why we prioritize code over comments, why we prioritize the mechanisms over the specifications. It's because code can have some manner of automatic verification, and we're too harried to look into the comments, to do code review. Deadlines abound. We can't stop work and say, no, we can't do this under these time constraints without sacrificing a minimum level of quality, specifically because we're not treated like an actual profession with the clout or the responsibility that comes with such a thing.
> I don't doubt that Bitcoin will become a revolutionary system of payments and money storage down the track, but the price of coins is outrageously inflated at the moment.

Prices rise immediately in anticipation of positive future events.
https://www.google.ca/url?sa=t&rct=j&q=&esrc=s&source=web&cd...

Edit:

I'll add one to the above: it might be that there are enough hostile forces, or at least the possibility of enough hostile forces, to make every technologically capable civilization conclude to travel near the speed of light to protect themselves from relativistic bombs. (Objects going very close to the speed of light. Impossible to detect in time to deflect, a form of advanced weaponry.)

Each alien civilization sees that there are no observable civilizations and decides that the ones that have existed either died or fled into near-the-speed-of-light vehicles. They rationally conclude to do the same, at least while they advance their technology and search for life. The unfortunate part is that time goes by much faster for us than it does for them, (which negates the advantage that many early civilizations would have had).
Yeah, this is pretty much the way I've operated for the past few years. I can identify with many of the things the OP wrote--this stuff is really hard and emotionally draining.

I often joke that I wouldn't be doing this if I were smarter. When people say "You have to be crazy to be an entrepreneur", they're not kidding. That said, there isn't anything else I'd rather be doing.

And actually, it stretches past being an entrepreneur. The technology and information we have access to now creates opportunities that simply did not exist just 10 years ago and geography is increasingly irrelevant.

Further side note: I'm a big fan of history. I think that there's essentially this rising worldwide class of freelancers-turned tech entrepreneurs involved in a variety of "lifestyle" businesses where lifestyle = $300k+ p/year in income. In the future, this whole sector will be a lot more crowded and it will be very normal for people to have a bunch of different side businesses involving the internet. But this really is a significant historical trend and an emerging new social class I think, and I'm sure there will be a lot of debate about whether it's good or bad for society as a whole just as it has been with the move from farms to factories.
Ticket tracking tools
Various ticket tracking tools that can be used when starting a new project or company.
So basically Apple still wins in terms of CASH whereas Samsung will have noticeable presence in the market with low profit. But then eventually few years later if this same trend continues provide Samsung still can survive on low profit, Samsung will have majority % share of consumers with their device which in turn will start adding profits. There only $7 Billion people on the planet who will Apple sell their iPhone if the Samsung (and others except Apple) captured most of them? Also, due to the high cost of smartphones and contract terms it's not easy to upgrade the device.
The thing that pisses me off about prognostication like this is the assumption that this will become the norm. Between thoughtful parents and school systems who choose not to participate through to the realities of poverty and the wealth gap something like this will never occur. For the small segment of the population which does use it -- those among the wealthiest of the middle-class -- it will be a short-lived fad which lasts the three or so years that this current crop of students happens to be between the ages of 9 and 12. Then puberty starts to kick in and they refuse to wear it. Not to mention the social stigma which will follow a child wearing such a tracker.

Since GPS first landed in consumer hands this future has been pitched at us. Each time it's gone quietly into the night. First it was a shoe (since trackers were larger then), then a wrist-band, then a custom phone, then any phone, now it's back to the wrist-band.

It's a bad idea which gets progressively worse each time it comes up and less scary because all you have to do to make it go away is to make it un-cool.
How to ship your site inside an Android app
Thanks for your response, Dan! I really appreciate it. It's interesting that finding high-quality affiliates is the hard part.
To try to convince ourselves diversity will work.

We're not the first empire to go out this way, nor will we be the last.
> What is to prevent someone from dumpster diving to collect dna?

In general? Nothing. The only prohibitions I know of are the ones I mentioned (related to scientific research), plus some prohibitions related to the use of DNA to affect insurance or employment.

I can't easily predict what the future might bring. Science fiction stories have postulated that a police officer might use some sort of sequencing device to vacuum a place to see who was there recently. To be countered by someone releasing dust/cells picked up from public transport seats.

My guess though is that it will be acceptable. Just like state camera surveillance is acceptable.
"The Controlled Substances Act, enacted in 1970 classifies marijuana as a Schedule I drug"

I wonder what people who underwrote it are doing now.

(Most of them are dead for good, sure)
Obligatory Bitcoin comment. ;)
Great point. Fixed this now. Try again!
Of course, part of the beauty of his approach is that you can incorporate most of your changes just by editing the converge function and not messing up the rest of the code.

The last point does require changing the main code, but it's still easier to do with an external converge function like this.
So, we aren't then, and we don't want to be. Yep, that's pretty much what I'm saying.
Whatever it is, it is the beginning of something really great and thanks to flyingmachine for creating it and sharing his knowledge. If it is a course, article, or tutorial, either way it is something that get more people familiar with Clojure.
Slides/Video from Semantic Web in Libraries 2013 Conference Now Available Online