skysight-inc/HackerNews huggingface dataset:
Everyone keeps saying "Use Python and write the slow parts in C"..... except that writing GOOD (secure, correct, safe) C is really hard. That's actually the main reason why the Go authors came up with Go. Not to replace Python etc, but to replace C/C++.

I'm kind of surprised that all the "Python: let's get stuff done" people are suggesting writing a whole bunch of code in C, one of the least "Getting stuff done" languages there is.

For those who have asked what the productivity of Go is like vs. Python + C: Go is very productive. When newbies to Go say it's "verbose" they mean "I have to write out some 3 line loops that in other languages are one line". If that's the major cause of slowness in my development cycle, I'd be ecstatic.

Go is also very easy to write "correct" code in... no buffer overflows, no memory leaks, no access of random memory, no unnecessary allocations, and a very clear and defined behavior from clear, concise code.
Am I the only Emacs user (admittedly, I don't live in it; I use the shell for more) who leaves capslock unused, and leaves control as control? What I hate is the Fn key position on the Apple Wireless keyboard, though (which strangely doesn't bother me as much on the laptops)
Show HN: Reddit analytics
Technology races ahead faster and faster while population flattens out yet lots of people insist on doom against reason. It is a psychological problem.
I have some idea how science works. Science is like a religion: if something can't be measured, it is not real in the name of science.

Don't take me too seriously though. If chemotherapy works, good for you. Just trying to present alternative views into this. I've heard so many stories and people talking how chemotherapy was the cause that killed them.

But sure, I am just shooting opinions here. Like everyone else here.

And I believe I have some idea how science works, so don't assume something you don't know.
There is a great point buried in slide 8. The best way to learn to use monads is...Use monads in real code.
Nothing. It's an internet address that ends in .NET and I like to spell it this way.
quanaut, sorry if i sound pedantic.

Here's my question - could you please share your experience with a mechanical keyboard to conclude on your statement "For coding, you're gonna be fine with literally any keyboard, including some $20 logitech piece". I am genuinely interested to know.

In my opinion, what you wrote in reply to jiggy2011 is b.s. Mechanical keyboards are good for gaming and equally good for coding (or for that matter even data entry/processing jobs). The reason is they are way more responsive and quicker than a membrane one that usually is on a laptop. It (imho) also helps in your wrist pain and is easy on fingers (as in you don't have to go pressing a key all the way down). If you have hands on a blue-cherry mechanical keyboard, try for a month and then try typing on a laptop keyboard.

@jiggy2011 - i have many keyboards of varied styles. my personal favorite is the CM QuickFire Rapid(tenkeyless and cheaper compared to others). If you are looking for the best in the class (go Filco - made in japan and flawless).
Don't fall for the hyped keyboards - daskeyboard,razer,steelcase etc. They are good, but not up there in quality. Specially daskeyboard used to be good when they started out - i would not pick on any daskeyboard built after 2008. They used to make keyboards sourced from Taiwan(better quality), but now source it from an OEM from China.
good luck!
The Folly of Boostrap
It is safe to use dictionary words:
http://world.std.com/~reinhold/diceware.html
Yep, except that it is not there.

There was quite a discussion about (&), (|>) and what not on the mailing list. No consensus…

http://www.haskell.org/pipermail/libraries/2012-November/018...

http://hackage.haskell.org/trac/ghc/ticket/7434
I know it’s just link bait, but the idea of there being 15 “must-have”s of something I didn’t know I even needed is humorous to me.
The Fairbanks battery should provide some real world experience:

http://juneauempire.com/state/2011-04-17/fairbanks-battery-b...

http://www.gvea.com/energy/bess

They chose Ni-Cad (presumably for good reason).

Edit: Some numbers:

It's about 5 megawatt hours (varies somewhat based on draw, could stretch it to 6.5 MW-h for 15 minute runtime, less at higher draws).

Cost $35 million, so ~$7000 per KW-h of capacity.

Planning authorized in 1993, online in 2003.

Expected battery life of 20 years (maybe 30).

So a project that didn't seem to take up the entire manufacturing capacity of the battery industry managed to bring up 0.5 megawatt hours per year, with a lifetime of 20 years, half of your prediction of capacity production capacity (but at much higher cost than you started from).
The keyboard I really want to try is the DataHand Pro II (http://www.datahand.com/products/proii.htm) -- but it's a bit expensive. I've used them briefly in the past, and it was interesting for typing, but didn't work as well for keyboard+mouse.
Well... include these snippets of code on your website means it's a plugin for your site, instead of a plugin for your browser.
Day 115/116:  Toasty Boats & App Product Page
The problem with refactoring dynamic languages is that it's very hard for static code checking to let you know when you've missed a spot.

For example, what functions take class Foo that should now expect class Bar? What functions called method Baz, that now should call Bat?

Static typing makes all of that trivial. You know with certainty, when you've hit all the right spots, because the code won't compile otherwise. Also, a lot of that refactoring can be done automatically through tooling. "Replace all calls of Foo.Baz() with Bar.Bat()". Trivial, done... and it's often impossible to do the same thing in dynamic languages. You have to rely on tests catching everything... and how many of those tests need to be updated now, too? What's testing your tests?

I love dynamic languages, don't get me wrong... but refactoring large code based is way easier to get correct in statically typed languages.
Actually I made an assumption which was wrong to do.

But in my experience, students approach the PI directly, and the PI makes the decision themselves.

There is no formal application process. This is in non 'top grad schools' but the PI would have 40+ h-index
Of course I can bash companies. Most of those cancer medications are made from patented medicines that have been developed originally from the Amazon rainforest, from their natural counterparts.

These big companies are then spending billions of dollars in marketing in favor of chemotherapy and other medications that can easily cost thousands of dollars per month.

And the more they sell their medication, the more money they get, as their patients stay sick. What is their motivation really to heal their patients ?

The truth also is, many people die from the actual chemotherapy process. Good thing your dad is still alive.

Just rattling the normal view here.
I'm sure you're not the only one, but for me at least, it was a no-brainer when I started using Emacs. The caps lock key requires about a fifth as much pinky movement as the control key does, and moving my pinky to the control key also affects the rest of my left hand because of the awkward angle. I almost stopped using Emacs after a day or two of trying it out before my friend told me about using caps lock.
Great job, would it be possible to expose a public API?
That explains Texas in a nutshell. ;)
So much stuff like this in Chemistry. It's why I gave up on my Chemistry career and went into programming. When computers blow up, they don't destroy the building or make you change color.
This is included in the popular Control.Lens package since it sometimes has natural right-to-left composition. It's still unnatural for 99% of Haskell code you'll see, but (&) = flip ($) seems to be cemented as the "correct" representation now.

It's a wontfix on the language spec itself, though.
My point entirely :)
It dumps the internal Core representation of expression. It's closer to the lambda calculus ( System F ) and a good way to understand internals.
Interesting, however as an alternative hypothesis wrist strength is also vary important when using most hand held weapons especially a basic ax. From an evolutionary perspective making tools is probably less limited by wrist strength vs using them.
That's an excellent set, though I haven't seen it mentioned in any icon font roundups. Thanks.
Eventually, yes, if there's enough demand. Right now I'm focusing on getting more data, as even though my sample size is rather large, my per-subreddit samples are still small.
BRB, off to open a Bitcoin exchange in China ..

Seriously though, could it be that we're finally seeing a solution to the worlds problems, with decentralized currency become a peoples movement to remove the existing power structures?

Methinks if thats the case, then duh .. China is where it needs to happen most of all. For all of our sakes!
About your point 3), it's worth noting the "toHtml" call buried in that example.

Haskell is both strongly and statically typed. That type boundary between strings and HTML output is enforced by the compiler, and it automatically (and provably!) prevents a metric crapload of injection attacks.
Seriously considered naming my band "Satan's Kimchi"
Feedback of Bluetooth integration on Educational Apps
Hi, I’m just starting off in the educational market creating simple mathematical games mainly for upper elementary and middle school students.

One of the main features I’ve included in my apps is the ability to connect 2 devices together through bluetooth and play competitively or cooperatively within the classroom.

My thinking is that some schools will find the use of Bluetooth a great choice since many school district may block devices connecting to each other through the wireless network due to security concerns. Using Bluetooth allows the connectivity to happen just with devices within a short range.

I would really like to receive feedback on the technical aspect and my line of thought above of the use of Bluetooth.

Check out my math games here: http://www.mathfilefoldergames.com/my-math-apps/bluetooth-games/

Having a lot of entrepreneurs on this forum, I would love to hear how you would go about getting my apps into more schools too?

Thanks,

Justin
Sharpen Your Memory with Brain-Healthy Foods
Yes, there have been many other languages with ahead-of-time compilation and garbage-collected runtimes, but Go is one of the few that might be considered popular today. At this point, one might invoke the old chestnut, "If you make technology choices based on popularity, you might as well go with (Windows|PHP)." But there are degrees of popularity, and there are advantages in choosing something that's at least moderately popular, e.g. a large selection of ready-to-use libraries and a pool of developers who don't need to learn a new language on the job.
Xoogler Gets Acquihired By Google
Save Money On Airline Tickets
Bitcoin Casino Provides Provably Fair Shuffling Through Cryptography
Efficiency and innovation: Two roads to growth, but innovation matters more
Diagrams defines # to be reverse function application.
Ask HN: What should I do if one of my startup founders does not work enough?
I need a suggestion from your collective wisdom. Few months ago I founded a startup with 4 other people. We all come from different professional background, but we have the same age and, within each professional background, we used to have similar roles. We still all have daily jobs, and work for the startup on a part-time basis. We are all equally shareholders of the company.

My problem is that one of the founders, whose talent is out of question, is not dedicating enough time to the startup, he is not performing his tasks as required, and, generally, he is not show the commitment that the other directors do. This is a problem, because the startup is now starting to generate money and his attitude is creating problems within the other team members, that feel he is getting the same money as them without working.

He is a shareholder as the others, so he can't be "fired".

What do you think the other directors should do? Should we kick him out or not? Should we relegate him to the role of pure "shareholder" with no salary?

Any suggestion would be greatly appreciated! Thanks!
It sure could (in some places). Check out:

http://library.abb.com/GLOBAL/SCOT/scot271.nsf/VerityDisplay...

"An economically and ecologically more viable alternative to ‘spinning reserve’ – gas turbines kept running in case of an emergency – is battery back-up."
Which makes a major difference if you plan to use it on mobile devices, or on desktops with no admin rights (read: office use). Also: one less thing to explain to clients.
No, it is an effect of the cold war and nuclear weapons. Oh and also, no war in western europe because germany/france/uk beating the others wouldn't mean automatic world domination anymore, so we teamed up against the big guys.
I also own a Filco majestouch with brown switches and am the envy of my friends ;) Although it is very nice, if all you do is type, and you don't mind extra sound I can very much recommend blue switches. I've tested these at a workplace that has them for all workers and in my experience they are a bit less stiff and the feedback is just great.
If you think Randal calculated the entropy wrong, state so, and show the error.

Your argument from incredulity won't add anything to the discussion.
If you don't like capitalism, why do you want more exchanges? A exchange feels like a capitalists idea
I'm not sure if this has been asked before so I apologize in advance, but is there anything wrong with releasing projects as public domain? Then I would think there is no need for licensing at all.
Why use a hammer and a screwdriver when you can make due with only a hammer?
> with multiple cursors you have to select every single comma to 'initialize' the cursors.

I hear this. Hopefully, the author will be able to implement what Sublime has: a find all field (which accepts regular expressions), and results in multiple cursors on all the matches.

I do this all the time in Sublime and it's so natural:

Cmd+F, /regex/, opt+Enter, [replace, or commands or whatever]

It's just as fast as your usual find and replace or quick macro, except that you have instant feedback, are able to undo, jump around by word, or (with vim-mode), use t or f to find a character, ci", etc.

Selecting a match one case at a time is great, though, when you need to skip some matches. Say you have `old_var`, `old_var2`, and `old_var3`. Just start at the top of the function, and match, match, skip, match, skip, [type and replace]. Sure, you could do a regex on old_var[^\d], but depending on what you're matching and what you're skipping it sometimes is just not worth puzzling out the right regex.
Frequent texters tend to be shallow, research suggests
I've been playing with it a bit and I've been seeing the same thing. I do like that this gives me a little flexibility, so I'll probably continue to use multiple cursors for the smaller stuff and the more traditional vim methods for anything larger.
Is there an ideal long term human population level for the planet? If so, what is it? Will we need to create more incentives to have children to maintain it?
Not really a movie, but it is amazing. Doubly so if you are Swedish (or possibly Danish)
Debt-free and happy as a clam (why I love bootstrapping)
For me, the main thing that says "more like a pyramid scheme than like a currency" is that the number of BitCoin in circulation is limited.

Suppose that BitCoin becomes so popular that a country wants to join in. The normal way to do that is to have the central bank exchange your current currency with newly minted 'new' currency. With BitCoin, that isn't possible. The only way to join in is to somehow get BitCoin from existing owners. That will make the BitCoin exchange rate go up. The ones benefitting from that are those who already are 'in'.

Another way to look at this: if this becomes the world's currency, that 1 BTC you mined years ago for $1 of electricity on that $500 PC will be worth 1/21M-th of the wolrd's wealth, and will keep its worth forever.
I agree, if you only pick words from the top 1000 most common english words it only takes 1000^4 = 1 trillion tries to crack a four words sentence. This is still quite a lot but much more reasonable than cracking a 8 chars random password with brute force.
One man's journey from Los Angeles to Real Madrid good-luck charm
It isn't entirely clear to me what you're trying to say. With respect to Friedman and the Great Depression, he drew the conclusion that the Fed a) failed to act as a lender of last resort (i.e. they could have adjusted the price of gold -- which they never tried), but more importantly b) the crisis would have never occurred, and the economy as a whole would have been better off if the Fed were never created in the first place [1].

[1] http://www.fee.org/the_freeman/detail/the-great-depression-a...

Anyway, this is all taking a left turn here. It has been fun, but there are probably better forums than HN for discussing macro-econ. Maybe I'll see you in one of the subreddits, and we can debate it in more depth there.
Nobody said you have to write any C. If you are freaking out about performance, the option to write some parts in C is valuable.
RuboCop: A new code analyzer, based on the community Ruby style guide
Assuming you write code, how do you feel about the key remapping? I have seen people complain about the location of brackets and other keys; which is enough to keep me away.
Oooh! Or "growth hacking" for consumer startups! That's fertile, unexploited territory.
So you prematurely optimize Python out of everything you write, because it might not be suitable for... some use case yet to be determined?
High-tech sex workers in Silicon Valley
It isn't a necessity at all. It's an available option.

How would you write PyPy to be "an order of magnitude faster"?
Technology requires support from resources. You can't respond to claims that our resources are limited merely by arguing that we will develop more technologies that use resources.
This link might be helpful:
http://blog.eladgil.com/2013/01/how-to-fire-co-founder.html
This is very narrow minded thinking. I used to think about time in terms of my hourly rate. It's a good way to become a workaholic and arrive at a major life disaster (substance abuse, divorce, missing out on your kid's childhood, etc). Factor that into your equation and it paints a very different picture.
I really hope Mark Pilgrim is doing okay. I liked his blog and was disappointed when he took it down.
Do you use Python for numerical analysis, scientific computing, etc.? If so, why are you saying "why not let them be able to do that"? If not, why are you holding forth on Python's unsuitability for these applications without knowing about the available tools?
> You totally miss the point. There are large classes of systems where CPU time in your app is not a significant factor. E.g. my go-to example of this is the first Ruby project I deployed in a production environment:

This is only true if you ignore response latency as a comparative metric entirely.

> But of of that 10%, 90% was spent in kernel space. So even if switching to C (or whatever) were to speed up the user-space part of the code 90%, it would only cut CPU time spent from 10% to 9.1%.

I'm really curious what you were doing in Ruby that spent 90% of your runtime in the kernel. Having implemented similar middleware, I found that nearly all my runtime was spent just performing basic decoding/encoding of framed packet data, and as a kernel developer, I'm having a hard time imagining what an in memory queue broker could have been doing to incur that overhead
Does anyone have a link to the original paper that doesn't require me to pay $38?
If someone thinks there will be no population bomb clearly has missed all the rape incidents in India caused by mass abortions of female fetuses.

And he clearly has not understood the situation in third world countries. In Sudan 100 years ago lived 1.8 million people, now there are 48 million people. The territory has not changed, modern fertilizer only allowed a 6 times higher production and there is huge desertification of the soil. And yet this country is considered as being in need for food every year, while we don't send them wood to cook their food. The population bomb? One day the population in Sudan will be too big to provide enough wood or food and yes the population there will collapse. This artcle wasn't interesting, it was one-dimensional.
Search online for the script. The original was posted somewhere, and you can learn how the story had much more depth in its original form, but due to time constraints and editing a good 1/4 of the script never made it to the screen. Well worth tracking down!
Eloquent JavaScript - free (and good) online book
I honestly don't see why. Most of the people involved in the major Bitcoin businesses, or in promoting Bitcoin publicly, are reprobates. Have you spent any time reading bitcointalk.org? Hal is very different from them.
So does PyPy, but only for objects (and not for hashmaps, i.e., the dict object).
wow, what show is that?
How Nasa Intends to Capture an Asteroid
I've never noticed the brackets slowing me down; the only remaps I do are Caps to Ctrl-L (which can now be done on the Mac side) and Shift-R to Cmd.

The big problem for me is that there's no way to create new modifier keys (I spend all my time in Emacs, and having a Hyper and Super would be really nice), but that's more a HID problem than a Kinesis one. A minor irritation is that the USB hub doesn't output sufficient amperage to be useful for anything. An even more minor irritation is that sometimes the keyboard will get confused and apply a modifier lock function, but because of some weird quirk will lock Meta rather than Shift, and my windows will go berzerk. It's a trivial state to escape from (I just hit Meta and Caps), and it doesn't happen often enough to rise to the level of I MUST FIX THIS NOW.
Yeah, with the size of government now, you need half the school day dedicated to civics K-12. The Obama crowd would love that.
I'm not "bitter" at Satoshi Nakamoto, or really at anyone. I'm trying to do what I can, as I have from the beginning, to prevent people from falling for a scam. I'm not alone in doing this, and many other good analysts are doing the same thing. Is it worthwhile to try to apply arbitrary, amateur, and frankly embarrassingly bad psychology to all of them?

I sign onto most of what is written here:
http://www.slate.com/articles/news_and_politics/view_from_ch...
Polio vaccine developer Dr. Hilary Koprowski dies
Python doesn't add integration requirements. If you want to just use PyPy for something, then use it in good health (without fearing that your e-penis is tiny and will hamper your 'performance' because you didn't do whatever coldtea said is necessary for ULTIMATE SPEED).
That's how I do it too. Gimme funding.
Does the phrase "scripting language" have any hard technical meaning or is it just another subjective label?
For corrupt officials BTC presents an easy way to hide black money. A banking account has official records which can be obtained by police (and seized by it!).

So, a criminal moves his funds into Bitcoin, either at a Chinese exchange or at a foreign one, and then hides the private key on paper somewhere. If he gets arrested/sentenced to death/whatever, family/friends can always recover the money.

Actually, I'm wondering why the Mafiya doesn't use Bitcoin for cross-border drug exchanging already...
With military’s sequester squeeze, Hampton Roads(Norfolk, VA) forced to adapt
In Control.Lens package also comes with <&> which is the flipped version of <$> with the right infix priority, which I find it even handier than $.

AFAIK, there is very little sample code out there with these flipped operators, but to a programmer used to OOP, using them may be more natural.