jkeisling/hacker-news-corpus-2007-2022 huggingface dataset:
Yes indeed. Swift lacks the "yield return" statement of C#.
Yet you can do well with "SequenceOf" and "GeneratorOf".

// Fibonacci sequence

let fib = SequenceOf {
() -> GeneratorOf<Int> in

var a = 0, b = 1

return GeneratorOf {
() -> Int? in
let c = a + b
a = b
b = c
return a
}

}

// Print Fibonacci numbers <= 1000

for e in fib {

if e > 1000 {
break
}

print(" \(e)")

}

println()

$ xcrun swift fib_test.swift

1 1 2 3 5 8 13 21 34 55 89 144 233 377 610 987

See http://www.oki-osk.jp/esc/swift/linq.html
I have never been involved in a reality TV show (and my job isn't exciting enough for the TV crews to come knocking) so I have to only guess how it works. But I would expect that wearing a microphone doesn't give the doctor much input on which segments to use, and that the doctor wouldn't have been involved in getting permissions from the patients and families.

It's obvious in this case that the show wasn't able to get permission from the family (and, given that the family was surprised; the show wasn't able to contact the family), so they blurred the guy's face and thought that made him unidentifiable. I don't believe the doctor had any influence on that decision.
What an amazingly satisfying result from simple, basic rules.

If you were looking at these simple simulation without knowing what rules they follow, I'm pretty sure it would take a fair amount of efforts to discover them.

Imagine how much of a complex task we're setting ourselves with trying to understand the world we live in and the insanely complex emerging properties of our basic human behaviour.
Arjan Brussee, the main coder of VectorDemo, went on to develop Jazz Jackrabbit, made a few more obscure games, then founded Guerrilla Games of Killzone fame. He recently rejoined Cliffyb and they are probably building something awesome again. :)

Back then it was interesting to see many democoders try to make games on their own, and fail due to the large amount of (comparatively) boring work required, but Arjan was a pretty strong-willed individual.
There are a few reasons that I can think of off the top of my head.

1. Climbing is a mental sport. It's mostly overcoming your fear of falling and trying to figure out the most efficient way up the rock. Every climb is a "problem" and a lot of the climbs are not straight forward and require thought to the best way to do it.

2. More thinking. Getting into the trad climbing you are responsible for setting up your gear and making sure that it will hold in a fall. There are a lot of rules and best practices here so hackers tend to like this aspect.

3. A lot of hackers are looking for exercises that they can do and that is fun. If you look at stereotypes for hacker types there are two main ones that I can think of: tall and lanky, short and overweight. The short and overweight are at a distinct disadvantage in climbing but the tall and lanky are "built" for it.

4. Good way to meet people. Climbers tend to be an welcoming group(unless you go to a gym with a lot of gym rats but outdoors it's better usually.)

5. you get to geek out about the gear. marvel at the amazing simple but powerful design of the modern spring loaded camming systems. http://en.wikipedia.org/wiki/Spring-loaded_camming_device

6. I am sure I could think of more but those are a first pass approximation.
I think they got it backwards. Our world is made of antimatter, it's the matter that's disappeared
It's a broadcast medium. People literally keep score with each other about how many people they can get to follow them, and how many people they can get to RT their messages. I think you're simply dead wrong about this.
To be even more specific, the US military has a presence in over 150 countries.
Right, and their anti-hacker public position is relatively new. Mac OS X has always been hacker friendly; you don't need to tweak it to have a good experience, but Apple never tried to stop you if you wanted to. It's only with iOS that they've called their customers criminals for trying to gain control of their own hardware. I wouldn't be surprised if that shift ends up affecting their recruiting ability.
The article doesn't spell it out, and I know practically nothing about the subject, but... what happens at the end of the 0.2s? Do the antimatter atoms drift out of the magnetic fields used to contain them? Do matter atoms drift in? Or is it some property of the atoms or magnetic fields? Basically, what needs to change to increase the 0.2s?
Transcript: http://www.ted.com/talks/sherry_turkle_alone_together/transc...
>In the long run this will play a huge role.

Do you have anything particular in mind? :)
Hi Steve - Thanks for your questions! We're going to update our site to reflect some of these answers but I wanted to answer you directly. I'm pleased to say that there are no restrictions for users to run their own kernels. We also do provide access to a remote console access via HTML5 Canvas. That's available in your account immediately after purchase. Currently our machines are owned by Hivelocity but we do have around the clock support with them. And we do allow users to configure custom reverse DNS for their IPs.

We really appreciate the comments and questions!
Would it be possible to recreate that effect on a raster display with a shader?
function butter(fun, count) {
count = count || 1;
if (count < 1) {
throw new Error('Can't butter no toast');
}
return function() {
return fun.apply(this, Array.prototype.slice.call(arguments, 0, count));
}
}
I was thinking the same thing. Boulder is about as gentrified as it gets for Colorado - median home prices are over $500k. (http://www.zillow.com/boulder-co/home-values/)
I think his point is that we need to work hard to avoid discouraging curiosity. Often it is replaced with rote memorization or knowing things because an authority figure says it is so.
Restaurants are a reflection of what the population wants, not the driver. In order for there to be more vegetarian choices in a restaurant there has to be more demand for those items. Restaurants that don't do that go out of business.

Same things goes for grocery stores. They will sell ANYTHING a large enough chunk of consumers will buy. (I had that with granulated honey, we bought a lot of it, but the store wasn't selling enough to make it worth the shelf space, so it got dropped).
If Google wants to offer "Whatsapp competition" in 2015, it should have 2 things, that Hangouts doesn't right now:

1) fast (instant) performance

2) end-to-end encryption (I wouldn't mind if they used the same Axolotl protocol as TextSecure and Whatsapp)

If it doesn't have any of those, I won't be using it.
I assumed the limit had more to do with testing surface area than product segmentation. I can't imagine a significant number of people made the jump to RTX based solely on the voice features.
> There is definitely a place for payments in a social app.

Not in a country that has free, (de facto) instant bank transfers (Faster Payments).

If the problem there is that you need someone's bank details and not just their phone number, there's Barclays' Pingit.
But it is optional. There's social pressure for all kinds of things, including getting married and having children.

You have to figure out how to get food & shelter and follow local laws. Everything else is unequivocally optional. I would argue that "not seen as optional" is just a way of saying "I don't own up to my choices."
Everybody is entitled to their opinion, but expressing broad characterizations like "Scientists are often trained to work sequentially, not in parallel", "Being dogmatic", "Naive view of the world" from somebody who didn't even finish their PhD look a bit weird. (I'm an academic myself; and there are certainly plenty of interesting differences between working in the real world vs in science, but this article didn't really tell anything insightful (to me at least))
> The pandemic made me realize that I do not care about working anymore. The software I build is useless.

This has happened to a lot of people and I am wondering what that's about. It's happened to me also. I realized my job is useless and the primary benefit goes to the sales guy who sells my services. Did the pandemic cause this? If so, how?
Maybe things have changed since I applied - but I have not talked to a single sales person and only communicated via email with the google cloud for startups team. The process was so quick and painless that I at some point felt like I was being scammed and had to make sure I was not going to end up with a huge bill after they pulled the rug out from under me.
Perhaps, but I think that extends too much (nefarious) intentionality to it.

This kind of discourse has decades of academic background, but has only been culturally prominent in recent years. I am more inclined to believe that most folks are just repeated poorly understood half knowledge than engaging in subtle logical gamesmanship like Motte/Bailey. The whole public conversation is at the “Expert Youtuber” phase of subtly and sophistication.
On the other hand, forbidding smoking in indoor spaces in Brazil significantly reduced the number of smokers. It's complicated.
Guilty as charged - my personal favorite setup is a $150 tube (Celestron C90 Maksutov-Cassegrain) on a $700+ tripod and mount. I wouldn't recommend it to a beginner.

6" f/8 newtonians like the typical 6" dob are really at a sweet spot of aperture, size, optical quality, and cost. They've been the classic beginner's telescope for generations for a reason. I wish I'd had one on a pier-mounted equatorial when I lived under dark skies.

If you are unsatisfied with the f/5 ST80 I don't know if you'd be happy with another fast (low focal ratio) telescope. See if you can find someone local to you to let you look through a telescope similar to the ones you're thinking about.
"what IDE you are using are immaterial when it comes to whether you are employed or not."

It's not, though. It's one aspect of behavioral control. For US Federal purposes, for example:

"Type of instructions given, such as when and where to work, what tools to use"

"Degree of instruction, more detailed instructions may indicate that the worker is an employee"

"Training a worker on how to do the job"

https://www.irs.gov/newsroom/understanding-employee-vs-contr...

An IDE could come up in all three of those. And the law isn't black-and-white...it's the cumulative pile of these things that drives a ruling. So an IDE is absolutely material as one of many mandated tools, processes, or training subjects.
In the US NE, Aldi is replacing the old dark stores with nice new bright stores with good selections.
Wait, but you did have a choice in picking this utility bill. Your choice was:

a) (default choice): Use as much power you as you want, 12c a kWh, it never changes.

b) (other supplier choice): Pay market rate! Currently only 9c a kWh, save 3c per kWh! (Until this event, when it went to $1000 a kWh).

Consumer opted into B to save some cash, but got hit with the downside of their bet.
Many Nim things are works in progress. If passionate & capable people like yourself contribute, the finish line will seem that much closer. :-)
I wonder about this myself. I have no clue when my parents had sex and our house was one of the bigger ones (2 bedroom vs 1 bed room). I was ALWAYS in the bedroom, so no way I could've missed it when awake.

Indians frequently send their kids over to an aunt/uncle's place once every month or so....so maybe then ?
Another common solution is to move your kid to the living room for sleeping.

I slept with my parents until my brother was born, and never spent a night away from them before this. So...I guess they did it while I was in the room. X|

> delicious spices used to mask the taste of the sleeping pills everybody is feeding their children

The most plausible theory I have heard so far. Indian food IS sleep-inducing and I sleep like a rock, so I won't be one to disagree there.
Basically, the main reason we have a Supreme Court is so the majority doesn't have absolute power.
> No server-side processing.

You lost me at hello. While it might seem like a cool P2P idea to remove the central authority of the server, its removal leaves a vacuum of responsibilities. How do you prevent cheating (setting personal bank account to $1,000,000.00), how do you coordinate events (send DM/Notification to clients when a resource changes), how do you handle transactions?

Maybe I'm out of date and all those distributed techniques are known, but I don't think so.
You've listed three browser based editors and one which seems to be completely focused on JavaScript editing. If I understand correctly, Kod is supposed to be a universal editor for programmers, only scripted in JS.

(But thanks for the link to cloud9, I didn't know about it and it looks interesting.)

EDIT: meh, it was actually 4 browser based editors :(
I've spent a lot of time working with Mirth Connect (the OSS version), including submitting patches and bug reports back to them.

The OSS base product is not crippleware by a long shot.

Instead, MirthCorp's main way to encourage folks to purchase the paid version is the lack of freely-available, up-to-date documentation, and getting secure connections working with the OSS version requires either custom code or more sophisticated server admin skills (i.e., stunnel or proxying to get SSL support for incoming connections).
I think textsecure still leaks some metadata (ie. there is no mixing/forced delays). Overall it seems their approach to design is radically different.
"I think Gen. Alexander believes that history is made by great individuals standing against evil."

I wonder how many people think Edward Snowden would fit this description!
You're splitting hairs here. Yes, I don't recall a leak specifically stating "we have sock puppets on US social media sites" however there have been documents leaked describing high level tactics which might logically include US sock puppetry.

Additionally, domestic US propaganda is now legal:

https://www.techdirt.com/articles/20130715/11210223804/anti-...

Further, sock puppetry is an established tactic:

http://www.theguardian.com/technology/2011/mar/17/us-spy-ope...

http://mashable.com/2011/03/17/centcom-social-media-personal...

http://www.fbodaily.com/archive/2010/06-June/24-Jun-2010/FBO...

So the only question is, specifically which sites are targeted and to what ends. If the metadata shows that HN or your favorite sub-reddit has out-sized influence on matters of national concern, then they're probably targeted.
Check the guidelines linked to at the bottom of each page about asking questions. In particular, note

lease don't post on HN to ask or tell us something (e.g. to ask us questions about Y Combinator, or to ask or complain about moderation). If you want to say something to us, please send it to hn@ycombinator.com

The 8796591 submission got flagkilled by users.
Am I right in understanding that decorators are a form of closures as the decorator function is returning the function declared inside it ?
Could you please just give some damn statistics instead of yacking on with anecdotes about how horrible the working class are?
Flask's route decorator gives a nice syntax, but it goes against some ideal best practices:

* Imports shouldn't have side-effects (like registering functions with flask).

* You shouldn't use globals (like the flask app).

* Objects (such as the flask app) should be immutable whenever possible.

None of these are hard-and-fast rules, and Python code has a tendency to give up purity in favor of syntax, so it's certainly justified for Flask to be designed this way, but it's still a bit unsettling, and can lead to bugs, especially in larger cases when your handlers are split up across many files. Some examples:

* You need to make sure that you import every file with a request handler, and those imports often end up unused (only imported for their side-effects), which confuses linters and other static analysis tools.

* It's also easy to accidentally import a new file through some other import chain, so someone rearranging imports later might accidentally disable part of your app by never importing it.

* It can break some "advanced" uses of modules/imports, such as the reload function.

* Test code and scripts that want access to your request handlers are forced to build a (partial) Flask app, even if they have no use for one.

At my job, I recently changed our Flask handlers to be registered with a different approach (but the same API) that avoids most of these issues. Rather than setting things up with side-effects, it makes the route details easy to introspect later. Here's what our implementation of @route() looks like now:

def route(rule, **options):
def route_decorator(func):
# Attach the route rule to the request handler.
func.func_dict.setdefault('_flask_routes', []).append((rule, options))

# Add the request handler to this module's list of handlers.
module = sys.modules[func.__module__]
if not hasattr(module, '_FLASK_HANDLERS'):
module. _FLASK_HANDLERS = {}
module._FLASK_HANDLERS[func.__name__] = func
return func

return route_decorator

So if you have a module called user_routes.py, with 3 Flask request handlers, then user_routes._FLASK_HANDLERS is a list containing those three functions. If one of those handlers is user_routes.create_user, then you can access user_routes.create_user._flask_routes in order to see the names of all of the route strings (usually just one) registered for that request handler.

Then, in separate code, there's a list of all modules with request handlers, and we import and introspect all of them as part of a function that sets up and returns the Flask app. So outside code never has any way of accessing a partially-registered Flask app, imports of request handler modules are "pure", and request handlers can often be defined without depending on Flask at all.
I wonder what the game depth would be for significantly more complex games like Starcraft 2 or League of Legends. Given the way those games track statistics we should be able to get a definitive answer.
Because this is HN, there is a need not to be condescending.

Please re-read the site guidelines: https://news.ycombinator.com/newsguidelines.html and https://news.ycombinator.com/newswelcome.html.
I took the same advice up from Dave Crenshaw and it works great for me.

If I commit on doing something it will take time, and putting it on the calendar let's me see if I have the time and also blocks and protects the time, so I don't overcommit.
If there is systemic racism then which system is racist? I think 99% of people nowadays would be fine fighting against such a system. Is it the school system, bank system, the government?
You are right but its not merely the degree of training but how they are trained as well. As it stands many are trained that every interaction with the populace might get you murdered and you ought to be ready to murder them first.
Well, surely more to the point, http://my.lovely.horse/

(If you can't guess what that leads to, you might benefit from two pieces of context. The European broadcast region has an organisation for its Public Service Broadcasters, Eurovision, which holds an annual Song Contest that is known for quirky up-beat winning songs. There was a Channel 4 comedy show about the lives of Catholic priests living on a small Irish island and in one episode they enter the song contest...)
They probably add more entries over time (and maybe update/delete old ones), so you’d have to be careful about keeping the local DB in sync.
It's part of social validation. You inherently want other people to like the things you like, because it validates your choices. This in turn means you'll defend things you like.

Even "rebels", who supposedly relish having fringe tastes, want other rebels to approve of their tastes.

The more strongly you stake your identity as "fan of X", the more social disapproval of X hurts.
This is why I come to HN, I was going to skip this because I thought it was about video games, but really glad to have read it, and loved every line of the article.

So much to get from this.

Even if you don't have the source, you can make a change if you are annoyed enough.

If you don't like something, and the source code is out there, really go contribute.

Performance matters, know how to profile and if using an external dependency, then figure out their implementation details.

Algorithms & Data structures matter, often I see devs talking about how it doesn't matter much but the difference between using a hashmap vs array is evident.

Attentive code reviews matter, chances are they gave this to a junior dev/intern, and it worked with a small dataset and no one noticed.
If you're ever in Dublin, his London studio has been completely moved and recreated inside the Hugh Lane gallery [1]. It's really worth visiting.

Fascinating character for sure. He once gave an interview to the Swiss public TV. He gets drunker and drunker as the interview goes and gives great insights on his art [2].

[1] http://www.hughlane.ie/history-of-studio-relocation

[2] https://www.youtube.com/watch?v=h0iWdjh4Xkg (in French)
Maybe some chick will run in and throw a mallet at some Apple head regurgitating marketspeak. And then Richard Dreyfuss will tell us that 2010 won't be anything like the 2010 book. And then we can weep at the sorry state of technology and what passes as "unforgeable" nowadays.
I've decided:

+ it's not about programming

+ it's not about startups

+ it's not about entrepreneurship

+ it's not technical

... hence personally, I don't think it belongs on HN.
The local bank here has a nifty iPhone/Android app that lets you check all your balances and transfer funds to other people. I have no idea if every country has those.

http://www.sampopankki.fi/fi-fi/Henkiloasiakkaat/mobiilipalv...
Really? It sounded nothing like Google Wave to me, but I will readily admit that I really didn't know what Google Wave was. This just sounds like a system where people choose how they send you a message and you can choose how you receive it, using Facebook as the intermediary.
I have always had a fascination with the concrete canoe competitions.

Looking at the 1st place PDF for the UNR team, and the admixture they have come up with; I have always wondered if AeroGel would be a suitable additive to the mixture in place of some of the other components.

AeroGel would additionally replace the glass aggregates mentioned in the PDF as well.

For example, they use polyvinyl fibers to add durability and flexibility to the mixture, as well as some other pre-stressing substance known as Komponent, which I am not familiar with.

I have always thought that it would be interesting to add powdered, or fibrous (if it exists) AeroGel to concrete for both insulating purposes (in the non-concrete-canoe use case) and weight reduction (canoe centric).

Additionally, once a fairly cheap, abundant source of carbon nanotube fibers could be procured - adding this to the mix as admixture to provide for strength and flexibility would be great. (I don't have access to either materials - so this is all speculative with respect to practicality.)
See, I use "Genre" as a free-form tagging field, for metadata that has no other home. Therefore, they are unique per artist (for the most part) and serve no useful purpose in browsing. So I never want them in my browser; I can set this for the main library, but the values are not inherited. It's like the iTunes team looked at the Finder and said .... "hmmm".
So if this is 50 million light years away, shouldn't it be a 50,000,030 year old black hole?
Wall street is the only way. If money is the goal, then LEVERAGE is important. The highest leverage given to a mans brain today is the Wall Street. In every other endeavor you have to personally do a lot of things right to even dream of the same leverage.

But I guess, if u get the other things(Jason covers all of the things that I can come up with) maybe technology offers a similar leverage.
Thanks for this. As a long term FreeBSD user it's great to have more platforms to deploy on.
Might just be trying to underplay it and hope it blows over?