skysight-inc/HackerNews huggingface dataset:
I think it's important to think of Pythonic as something that's subjective and evolving.

The C examples given are idiomatic in C. The reason they're idiomatic is because they fit with a mental model that most of the C community uses: data structures in an enumerated address space, and passing around hunks of mutable memory with handshake semantics. If your code interacts with code that was written with that in mind, life should be pretty good.

Python has the same sort of thing, but at a different level of abstraction: objects, frequently enumerated by identity, grouped together by user-defined abstractions, with the understanding that function side effects are rare, unless they're object methods.

Haskell is arguably cleaner / terser, but it's yet another set of idioms. The only thing that makes pythonic Python is that it's used by the rest of the community. It's a shared understanding that's neither better or worse than any other shared understanding.
In some contexts, it is important to make a distinction between O(1) and constant-time. O(1) means you've got an constant upper bound for how long the operation could take, but constant time implies that the operation always takes the same amount of time.

Consider the case of converting an integer value to floating point. In order to normalize the floating point value, you'll have to do something equivalent to counting the number of leading zeros on the int, and many machines don't have an instruction for that, so you have to do a loop. Data-dependent timing like that needs to be studiously avoided in crypto code in order to prevent timing attacks. (Of course, crypto rarely uses floating point, but it's still a great example of how an O(1) operation can have variable execution time depending on the input.)
Why do you think the two are mutually exclusive? You can easily have rented a room or a couch in an occupied apartment through craigslist, airbnb, etc. That's legal here in NYC and likely where you are.

What isn't legal (here in NYC and many other places) is having someone rent out a completely unlicensed, unregulated, uninspected room as a 'hotel', which is what airbnb is mostly for.

Funnily, airbnb's silly new commercials here in NYC only touch on the folks who rent out a room in their apartment. They don't mention the illegal full-apartment rentals that are the majority of their business at all.
You should either take Toptal off that list or mention that their contract is outrageously one-sided with no negotiation.
You do have a point. I'd add that the historic pattern in Korea is to be allergic to foreign companies doing business there. Things like trade protectionism is a very political strong thing there because it keeps money inside the country. Sending <whatever percentage of a ride goes to Uber> outside of the country, when the alternative is to just update the very well done and current taxi system is a political non-starter.

I'd be highly surprised if they were ever allowed to operate. If Uber was allowed to go, I'd imagine some kind of tight regulation or high taxes on Uber service to make it less competitive than the normal service.
Now if only we can get Russia to the same low standards Ukraine demonstrated in eventually acknowledging its level of responsibility (in this case, via the Russian-organized resistance movement).

Because if your working theory is "UKRAINE DID IT (again)", you should probably know that the missile came from separatist-held territory. You know, while you're busy lecturing the rest of us on standards of evidence.
Agree. I think the main point is to say that Swift is new and not fully baked, there are no experts, so now's a great time to jump in and become an expert. Get active.

Seems like a fairly clear point... What I don't get is why making that point needed the "I know more ObjC than you do" preamble.
Kicking ass, eating raisins: A memo to my daughter
"So the government can have a monopoly in a space" - always a good reason to ban a successful private enterprise.
You are overly dismissive of de Grey's approach, and if you're going to Wikipedia for the details of SENS then you are in the wrong place. It is documented in far more detail elsewhere.

The standard response to your viewpoint is to point to the SENS Research Foundation advisory board, which includes George Church, Anthony Atala, Judith Campisi, Maria Blasco, and so on and so forth for a list of luminaries in subfields of medical research relevant to aging:

http://www.sens.org/about/leadership/research-advisory-board

It is also worth looking at the ongoing research collaborations, which involve noted labs at institutions such as Wake Forest, the Buck Institute, Albert Einstein College of Medicine, Cambridge University, and so on and so forth.

http://www.sens.org/research/extramural

I'm not sure why you think this research work is not panning out when it has barely even started. This is early stage work, creating the building blocks and foundations. The most advanced of the necessary lines of research is ablation of senescent cells, which has been shown to work in accelerated aging mice and is current in studies in normal mice. That is a few years away from technical possibility in humans, further once you add in the regulatory issues, and everything else is further into the future.
You have no idea what you are talking about in the slightest. The EU maintains several standing armies and has around 100,000 more active serving personnel than the US does.
The article mentions Zope quite a bit - which was a big thing for a company I worked for in 2001 (Loudcloud), as we had a number of customers that wanted to use it. Whatever happened to Zope? Wikipedia seems to suggest there hasn't been much development in the last 4 years - anybody know?
Just curious, how much does a McDonald's Big Mac cost in Seoul?
I feel you bro, I feel you.
I actually think this is a fair idea. I think France (my country, but any other country too) should aim to do the same.
People don't realize how much of france's (and other countries) economy goes to american companies, when we perfectly well have the ability to make as good or better companies locally.
On the other hand, how much of that institutional knowledge is still useful? Certainly some of it is, but I think experience with the F1-B shows that new knowledge, like 3-D printing, means that parts of the old knowledge aren't needed.
Minneapolis Votes to Approve Ride-Share Services (Lyft, UberX)
Offer HN: Executive Assistant for free
The proposal:

If you're running a startup and need any help, I can be your on-site executive assistant for free. I can help you in product management, sales, marketing, business development, partnerships, alliances, customer feedback, reaching out to big players to negotiate terms/contracts, and any other work that'll make your startup successful. You don't have to offer me stipend and you don't have to promise me equity or job. No strings attached and no obligation whatsoever. Food and living space would be nice but not must. My only condition is you have to be running your startup in technology/mobile/web/SaaS space.

Why am I doing this:

I quit my job six figure job to join something more interesting. I want to work closely with founders and startups to see what exactly it is to work in startups. Down the line, I plan to join a startup/emerging company to create something wonderful.

About me:

I'm 30 y.o. and have worked with Fortune 500 companies in technology sales, business development, business consulting, program and product management. I have an undergrad in computer applications and an MBA. Apart from this, I can read code, fire sql statements, configure websites, and make HTML pages but haven't coded for a living ever.

When can I join:

I can join in anytime within a week's notice and can stay as long as you need me.

Is this a joke:

Certainly not. You can ask for documentation about my qualification or my last pay slip. I'd be ready to discuss anything on phone or email (username at gmail). I can give you ex-employer references or client references for you to verify.

Overall, it's my humble attempt to understand startup world by helping real startups. Please share any suggestions that you might have.

Many thanks.
GitHub already caches into a CDN, so it just takes once.
I'm commenting here in the hopes that if I check back later the described project will exist.
"How far can this race to the bottom go before our search for low costs starts to war with our sense of personal safety and social responsibility?"

As far as people want to give up state-"guaranteed" safety for a better price. The state shouldn't have any saying in how ready I am to take risks. Who is the state to tell me in whose car I sit to go from A to B? In this particular case, the state is only a hinderance for the market to adjust to the personal needs of people.
It's private regulation. The public has no voice despite Uber utilizing public resources. For example, the public has an interest in efficient pickup and drop off at their airport. The public has an interest in the driving skill of professional drivers. The public has an interest in universal access to public transportation. Above all the public has an interest in determining what is and is not lawful.

The people of Korea have spent more than 100 years (since colonialization by Japan in the 1890's) in a struggle for self-determination. Under what kind of logic does the profit of Silicon Valley venture capital trump the interests of the Korean people?
I implemented several of those with a generic regex-replace plugin. I didn't write the regex properly, though, so replacing "election" for "eating contest" meant that "selection" is now "seating contest", which is not a thing but it should be.

A couple extra replacements: "Senator" works better as "Sith Lord", and "the NSA" as "Glorious Leader" ("those jerks" works fine most of the time, too).
This looks great. The two deal-breakers for me at the moment are the missing i18n, and support for older browsers (which I realize is increasingly rare these days, but unfortunately our webapp needs to support IE6+ for the time being. Yes, for real reasons).
When Programming Goes Bad – Debugging the Impossible
I see, apologies! I thought you had pulled in all episodes with a score > 7.

I wonder how easily arcs can be identified. I'll try running the transcripts through a topic model this evening.
The following description didn't make sense to me until I watched the 33 second video at the bottom of the page.

[...] this transmission is both continuously variable and
completely automatic. The wheel can adopt any effective
gear ratio in the range between its minimum and maximum
diameters, and it does this passively like a spring, as
it responds to loads on it by shrinking its diameter
until it achieves the maximum diameter at which it can
consistently rotate.

... And now I want these wheels for my bicycle. Yep, there sure are a lot of reasons why that wouldn't work. Shut up and take my money! :)
>We aren't breaking the law on regulation because we are simply a technology company that connects your phone with another phone who happens to be in the possession of a guy in a car and whatever happens after that is between two consenting adults

You say that like it's a bad thing.
Does this utility require you to actually install the base system (with yum and all) to the target, or can you install only the requested packages with their dependencies? This is fairly important distinction when making minimal containers.
A bit old but basically still valid for the most part: http://opensource.com/life/11/7/free-sake-story-koji
Musical Gold (and Bitcoins)
I can't recall which, but I have seen at least one compiler generate code like this (if I had to guess, I'll bet it was either Dynamic C for Rabbit 2000 or an old Bytecraft compiler for an ancient Cypress architecture). Though I've worked with a lot of old, primitive compilers & it's possible it only did this with optimizations off.

At Mindtribe, our coding style suggests "for(;;)" instead of "while(1)". However, the reason isn't performance. Instead, it's that we've seen more than one compiler produce a warning about the testing of a constant in the case of "while(1)". And we have a policy of compiling without warnings.
I love the following list on Reddit for TNG and DS9:
http://www.reddit.com/r/DaystromInstitute/wiki/algernoneplis...
Apple wearables and iWatch clues from the Steve Jobs era
Well the taxi drivers in South Korea are unionized, and labor unions have a lot of political power there. I have no doubt that as soon as they caught wind of Uber, they lobbied the government to pass legislation banning it.
Motion Design for iOS
Were they calculating it or had they "just" memorized the vast majority of common product combinations?

I ask that, because I worked at 7-11 in Oklahoma for awhile, years ago. The Ok 7-11's are their own separate corporation. We didn't have scanners for anything except cigarettes, and it didn't take long before you knew total price, including tax, someone would have to pay for various combinations of standards prices (.99 + .99 + 1.05 + .59 or what have you).

Mostly just a pedantic difference, but I thought I'd throw my experience into the mix.

Still pretty crazy when you get someone that's been there awhile and knows basically all of them.

I think my closest experience to this was when I was an order picker at a warehouse with no computers. We had guys on forklifts that seemed to know where every single item was in a warehouse with thousands of bays, and could tell you not just where something was, but what the number of the bay was. Pretty crazy.
It's not in the same optimistic genre as Star Trek TNG, but the 100 is watchable. It has a younger cast, so it might be better at getting younger viewers into sci-fi. Other current sci-fi, also not in the TNG genre but still enjoyable: Continuum, Defiance.
Nissan has already moved to Nashville, Tennessee a few years prior, in 2006.

> All of the analyses show that business incentives are a suckers game--companies that move from incentives keep on moving every time an incentive pops up.

Which analyses? All of these are one-time incentives, and they require substantial investment from the company of their own funds, so, if anything, they simply offset the cost of moving.

Where do you expect they'll move to next, after Texas?
Zope the framework really fell out of favor. Some of the good bits were pulled out and built into Repoze.bfg, which later merged with pylons (used by reddit etc) to become Pyramid.
The only light these companies shine is that of capitalism. Why should we believe that they will be regulated meaningfully in the future and that the regulations won't just serve to bring them into the fold of existing regulations? What is to stop the next "innovator" from coming in to the same space and repeating the same argument about <insert timeframe> of poor regulation preventing efficient solutions? How does re-regulation do anything but protect these companies that have essentially ignored the law?

As I said, where does our search for low costs end up battling our sense of personal safety and social responsibility?
I think our fundamental disagreement boils down to a question of tractability. It's not that better arguments don't exist. Rather, it's a matter of whether the argument is even worth our time.

> It may be important to note, but it's not argumentation.

Isn't it? The end effect is disregarding a certain set of arguments entirely. If completely ignoring the relevance of an argument isn't a powerful argumentative tool, I'm not sure what is.

> You don't need to attack the person making the argument or the medium delivering the argument in order to question its premises.

But isn't that exactly what's happening in the infomercial case? And surely we shouldn't waste our (bounded, finite) time addressing, point-by-point, infomercial arguments?

I have something more practical and less specific in mind as well. You'll find all manner of conspiracy theorists. The more serious ones can bash you over the head with truth claim after truth claim. At some point, in order to avoid endless rabbit holes, it becomes necessary to disregard certain arguments simply because of their source. I typically do this with a 9/11 truther friend (also chem trains and luminati (sp?) and so on), and only consider his factoids non-fictional when I hear them from other sources as well.

There's also an important distinction between attacking the source per se, and attacking the source's credibility/veracity in the argument at hand. We might be talking past each other due to that distinction as well.

edit: ambiguous grammar
Kind of seems petty when there's already a perfectly viable solution out there. Why not give the consumer the choice, take the risk and compete like a real business; real people would have to.
http://icomoon.io/ allows you to build an icon font using font awesome characters. Not sure if they have the most recent version of font awesome on there though...
Show HN: Tessel Morse Code
Hours: The Perfect Time Tracking App for iPhone Users
Half my code looks like this, these days:

return products
.Where(p => p.Type == ProductType.Bean)
.OrderBy(p => p.Group)
.ThenBy(p => p.Name)
.Select(p => p.Name)
;

Sometimes I'll write it like this:

return from p in Products
where p.ProductType == ProductType.Bean
orderby ... etc.

Everything's a query, or a sh pipeline, or...

One of the nice things about this idiom is that it's supported all over the place, so you can write similar code in many different languages, for many different platforms.
> Even if I'm fit and healthy age the age of 90, I can't imagine wanting to, y'know, do things beyond care for my grandkids and such.

So let me get this straight. If you had the exact same physical and mental ability as you do now when you are 90, you'd still want to do nothing except care for your grandkids? Nothing else at all? You wouldn't want to travel, work on interesting things, maybe try a new career? Why on earth not?
I find it funny how you suggest your readers to install so many plugins (some of them incredibly pointless), and the plugin manager of the day, for "getting more from vim" after such a superficial series of posts in a series called "learning Vim".
When we are able to trace multiple rays with multiple bounces per pixel in real-time, would the first bounce really carry that much weight compared to the subsequent bounces that it would justify a separate rendering technique?

Besides that, what would you say to ilaksh’s comment? https://news.ycombinator.com/item?id=8060197
I find myself consistently linking to the folks over at https://yourlogicalfallacyis.com/ to provide a quick quip or overview of the fallacy committed. It is much more slanted to being accessible than formal.
The Imitation Game (Movie on Alan Turing)
I made over $14 as a night clerk in Oklahoma 7-11s. It was an entirely separate corp from the southland 7-11s.

Most of the workers I knew there were pretty hard workers, and the 7-11's there were more similar to Quiktrips than 7-11s elsewhere. They usually didn't have a problem keeping people on point because it wasn't hard to replace you with someone good at the $13 or so even a normal day shift was making.
This is great for the less popular star treks... got one for Voyager, too?
Introducing PSBuild – an improved interface for msbuild.exe in PowerShell
How  to Customize Windows 8
I wonder if they have any data on what the accuracy/mistake rate was of the average Aldi cashier doing it by memory as compared to with barcodes. Be interesting to know
OMG its terrible.
There is a much bigger problem with basing your model of the brain on cortical columns, which is that they don't exist outside visual cortex and the whisker region of sensory cortex in rats and mice. The idea of a repeating functional unit was so appealing that many neuroscientists have just refused to give it up, in a kind of collective wishful thinking. There was an excellent review paper in 2005, "The cortical column: a structure without a function", which is basically the emperor-has-no-clothes of this field.

http://www.ncbi.nlm.nih.gov/pmc/articles/PMC1569491/
The Putnam Mathematical Competition’s Unsolved Problem
The right way to watch Star Trek is to go through all of it.
Track your emails using the SendGrid Event Webhook and Azure/.NET
I don't know the answer to that. But this is just another in a long line of theories about the shadows in the photos and videos from the lunar surface, all of which are based on ignorance of how photographs work and how three-dimensional space translates into two dimensional images. Every claim of the conspiracy theorists gets proven wrong and then they come up with something else. Sometimes, things they offer as proof that the landing was a fake are actually proof that they're real! They say that it was obviously a set because that hill is in the background of two photos that were supposedly taken miles apart. Well, that's because the "hill" is a mountain bigger than any mountain on Earth, and if you analyse the parallax effect on that mountain in the two images it is consistent with the distance between the two photos.

The point is that googling just about any claim from the conspiracy theorists will return results debunking those claims by experts in photography or other relevant fields, and if it doesn't, that's only because the claim is something new enough that the sisyphean debunkers, who undoubtedly have better things to do with their time given that they actually know what they're talking about, haven't gotten around to it yet.

You can point to some trivia or artifact of photography that you don't understand and cling to that as proof of the hoax, whereas I can point to rocks that came from the moon, or to the fact that ham radio operators were able to pick up the tv transmission from the moon by pointing their receivers at the moon, or the fact that some of the missions placed mirrors on the moon that various third parties have bounced light off of. My evidence beats your "evidence."
I would suggest something analogous to "static build" rather than anything having to do with dependencies.
Stross on App store functionality failure
I have less of a problem with Uber than with Airbnb. I do believe that Uber deals with issues of trustworthiness and reliability that taxi regulations were put in place to solve, without many major downsides. I think this is one area where technology makes regulation less necessary. Evaluating taxicab service is fairly easy, and reputation works well.

Airbnb is more difficult. Evaluation doesn't replace regulation as easily in this case - I'm unlikely to pay that much attention to, say, fire safety unless I've experienced fire problems in the past. There's also much bigger externalities - for other residents in the same building as an Airbnb let, for example.
The taxi service in Seoul is quite well regulated. Fares are cheap and drivers have to have rather incredible safety records (for Seoul) to operate - like 5-10 years of no-accident driving.

Uber wants to skirt all around that and rely on crowd sourced reviews to ferret out drivers and unscrupulous fare charging.

Can the average Seoul taxi driver be grumpy? Sure. On Uber that would get him bad reviews and get him kicked out. But average Seoul taxi guy also has more than 3/4 of a million safe driving miles on him as well.

It's also hard to explain, but unlike NYC style taxis, which are grimy and uncomfortable, Seoul drivers actually keep their cars clean and well serviced.

I'd argue that the main reason that the Seoul city government wants to keep Uber out (in favor of a domestic service analog) is that it keeps money patriated and in domestic industries. 0% of the money taxis operate off of leaves Korea. While with Uber, some percentage is likely to.