skysight-inc/HackerNews huggingface dataset:
I implemented a network-sort function generator, but the limited lambdas of Python seem to force me to make the macro declare a real function with magic name (see below). Also, I didn't figure out how to use the walker or quasiquotes, so I'm just generating source code and taking the AST of that.

#run.py
import macropy.core.macros
import target

#batcher.py
# http://en.wikipedia.org/wiki/Batcher_odd%E2%80%93even_mergesort

def oddeven_merge(lo, hi, r):
step = r * 2
if step < hi - lo:
for x in oddeven_merge(lo, hi, step): yield x
for x in oddeven_merge(lo + r, hi, step): yield x
for i in range(lo + r, hi - r, step): yield (i, i+r)
else:
yield (lo, lo + r)

def oddeven_merge_sort_range(lo, hi):
if (hi - lo) >= 1:
mid = lo + ((hi - lo) // 2)
for x in oddeven_merge_sort_range(lo, mid): yield x
for x in oddeven_merge_sort_range(mid + 1, hi): yield x
for x in oddeven_merge(lo, hi, 1): yield x

def oddeven_merge_sort(n):
return list(oddeven_merge_sort_range(0, n-1))

#target.py
from macro_module import macros, my_expr_macro
import dis

my_expr_macro%(8)

print dis.dis(fun8)

print fun8([2, 4, 3, 5, 6, 1, 7, 8])

#macro_module.py
from macropy.core.macros import Macros
from macropy.core import *
from ast import *
macros = Macros()

import macropy.macros

from batcher import oddeven_merge_sort

@macros.expr
def my_expr_macro(tree):
return parse_stmt("def fun" + str(tree.n) + "(a):\n" +
"\n".join([" if a[{0}] > a[{1}]: tmp = a[{0}]; a[{0}] = a[{1}]; a[{1}] = tmp".format(x,y) for (x,y) in oddeven_merge_sort(tree.n)]) +
"\n return a")

When running, it will spit out the Python bytecode disassembly to show the unrolled sorting loop.
The point about statically allocating "huge pages" aligns with my experience as an embedded programmer as well. Dynamic allocation is simply a no-no on those systems.
I said secure, not encrypted, for that reason.

This isn't a problem that needs one solution, but multiple, layered ones. Communication should be disposable and deniable.
Careers | AddThis
So according to a comment in that article, Taher ElGamal would be working in KSA doing interception...
Anyone has a source?
We need to modify wikipedia, this is shameful if true.
> Here we see no parenthesizes used in if statements, yet we retain {. In skimming it's easy to miss the if in the first place. Yet everywhere else they're happy to use parenthesizes.

I feel that braces on blocks are more important to readability/clarity—because blocks should be identifiable—compared to parentheses for if statements. I don't think the if gets lost in there, but if you do then that's fine.

> We also see that "make" is lowercase yet a method, but os.Create and ParallelWrite has caps for a method.

That's because "make" is a built-in function for building slices and maps.

Packages with exportable functions (i.e. os.Create, http.HandleFunc, etc, etc) use capitalisation to denote "public" functions[1]. Functions within the os or http packages (for example) that should not be used directly by someone using the library retain a lowerCase approach. This reduces the risk and confusion surrounding which functions you should be working with when using a library.

> It's also difficult to tell in the for loop if v is being assigned as "range m", or if "k, v" are a tuple resulting from "range m"

Each key:value pair in m (a map, or "dictionary") is being assigned—hence the :=, which declares & assigns k & v in one line—for the entire range ('length', really).

Obviously you don't agree with some of the syntax in Go. That's fine. But some of your criticisms appear to stem from a misunderstanding or lack of knowledge about some language-agnostic concepts (channels, range, exportable functions) that I don't think Go obscures.

[1]: http://golang.org/doc/effective_go.html#commentary
Depends on what you mean by the 'left.' The NDP? The Liberals? The Green Party?
iOS is too locked down to properly build Go code for. It's possible to write useful Go code on Android though, Brad Fitzpatrick posted about doing so recently:

https://plus.google.com/115863474911002159675/posts/DWmyygSr...
I posted this on my FB wall, pretty outraged, and a friend of mine who is a former federal prosecutor had this to say in response:

Let me provide some context: this was certainly not unchecked or without oversight. In fact, any time phone records are requested by federal subpoena as part of a criminal investigation (which is what happened here), the subpoenas are checked by a federal grand jury and -- later in the process -- open for judicial and public review. During the investigative phase, subpoenas are kept sealed in court records to protect the privacy rights of innocent people and to maintain investigative integrity. This is a normal part of our legal process, and consistent with best international practices. Also, because of obvious free press concerns, there are special checks in place whenever you want to subpoena records of press officials. You have to prove that it's necessary for the criminal investigation and that there is no other way to get the info. It's actually such a pain in the ass (lots of paperwork and waiting for a long line of signatures) that no one would want to go through it unless it was absolutely necessary. Here, they're investigating criminal leakage of classified information about a CIA's disruption of a terrorist plot to blow up an airliner on the anniversary of bin Laden's death. Whoever leaked the information committed a serious crime and likely put lives in danger. (Confidential sources are important to reporters, but they are perhaps even more important and certainly harder to come by for intelligence officers. CIA may have worked for years to acquire the source that allowed them to foil the terrorist plot, and that source may now be dead as a result of the leak of classified information.) The article has fairly limited information but says that there were 20 phone lines for which records were subpoenaed. This number would be consistent with investigation of a leak to one of a small handful of people, and although we won't know until court records are ultimately unsealed, I suspect the records requested for the office lines were probably tailored in scope to match that set of people. Like I said, the approval process is onerous, and you have a much better chance of getting things signed if you really narrow the scope of your request (e.g., "We know the data was leaked in this 3 day period, and we suspect the info was received by this person, who worked in the office from 4-8pm those days, so we'll request those times.") The records you get back from the phone company include phone numbers called and duration of calls, and then you can subpoena other records if you see any numbers that match up with the person suspected of leaking the classified info. I think it's important to keep in mind that our intelligence operations play a critical role in keeping us safe. If we're unwilling to accept law enforcement's role in protecting our intelligence services, then we should expect more attacks like the one that happened in Boston.
In the land of the blind, the one-eyed man is King.
Keep in mind that for games you are often targeting three different consoles plus PC. You may also port to other platforms eventually, and won't be able to easily track down all these lines of code at a later date to guarantee they optimize down correctly on your new target.
I would be interested on a dating site where the number of weekly active users is the same for both male and female.

Most dating sites have too many guys. One way to do this is to have "on-demand" pricing, where the site is priced in a such way that it keeps a gender balance. Too many dudes? raise the price for guys and lower it for girls.

If you can't afford it, either don't make enough money or are not serious enough in your search for a relationship.

The flat $50 is lame though. It doesn't guarantee equal numbers of guys and girls.
> The kernel is the problem

I had an epiphany one day when I realized that the kernel is nothing but a library with an expensive calling convention.

The only reason we bother calling the kernel at all is because it has privileges that userspace programs don't have, and it uses those privileges to control/mediate access to shared resources.

The downside of the kernel is that there's no way around it. You can't "opt out" of any of its decisions. With any normal library, if had an O(n^2) algorithm somewhere, or wasn't optimized for your use case, or just generally got in the way, you could choose not to link against it. User-space libraries are democratic in this respect; you vote with your linker line. But with the kernel, it's "my way or the highway." The kernel is the only way to the hardware.

Here's an unfortunate example: O_DIRECT is one of those few ways that you can sidestep the kernel. With O_DIRECT you can bypass the kernel's page cache, which there are very good reasons for wanting to do. But Linus's opinion is that "I should have fought back harder": https://lkml.org/lkml/2007/1/10/233 He thinks it's unfortunate that you can sidestep the kernel, because "You need a buffer whatever IO you do, and it might as well be the page cache."

But what if you want better memory accounting, or better isolation between users, or a different data structure, or any number of other tweaks to the page cache implementation? Well thankfully we have O_DIRECT. Otherwise, your only choice would be to try to convince the Linux kernel maintainers to integrate your change, after you've tweaked it so that it's suitable for absolutely everyone else that uses Linux, and given it an interface that Linux is willing to support forever. Good luck with that.

The kernel has always been the problem. User-space is where it's at.
It is difficult to measure counterfactuals, but I strongly suspect that the rate of piracy is much lower than it otherwise would be. Everything you say regarding availability is accurate - but consider, for example, the difference in piracy rates between console and PC games. There _are_ cracked versions of console games, but they are much less widespread because using them is much, much more difficult.

I am not happy that DRM appears to be effective - I would much rather that not be the case - but it does appear to significantly reduce the level of piracy from what it would otherwise be.

You are correct to note the absence of printed-gun crimes. The technology is young, the printers are not widespread, and the initial designs are likely far short of what is possible. As accessibility, knowledge, and affordability increase, I expect those crimes to start occurring. I further expect that the rate of those crimes will be lower with federal intervention than without. I really hope I'm wrong about that, too.
How to not screw up new business development
You may be interested in http://mista.nu/research/mandt-win32k-slides.pdf
Just to be clear - these weren't people I randomly met going out. Most of them started as friends from college, friends from work, friends of those friends, etc. This was a big social circle that was fairly consistant/intact for a period of about 5 years. We did most things together and from an outsider's perspective we were close knit. But really the glue was we partied well and we did it often, perhaps a vibe of mutually ensured self-destruction.

While it produced some of the most exciting moments in my life and most of us acted like we really cared about each other, it just felt forced. Personal bounds were loose. Rumors/talking smack was common. It was caustic and emotionally draining. I didn't realize it much while it was happening because it felt awesome to have this big group of cool friends, but after some time you just realize you feel like total crap - basically you're surrounded by all these people yet you have no one to talk to because whatever you say can be used against you.
Great tools!

My goto reference is still the wonderful btilly presentation about how to A/B test properly, with nice examples and code snippets: http://elem.com/~btilly/effective-ab-testing/

He provided a full on javascript tool that isn't as polished but works great: http://elem.com/~btilly/effective-ab-testing/g-test-calculat...
> "Given my frequency of long distance trips, assuming the existence of charging stations along them"

Where are those trips? That "assuming" is actually kind of a big deal given that there are currently only 9 supercharger stations in the entire US so far.

I grant that I might be a bit of an edge case - the last time I rented a car for an extended period it was to drive from New York City to Jackson, Wyoming and back. There are currently no supercharger stations at all along either route I took. Without the superchargers it would take about 20 days to drive that distance roundtrip in a Tesla - more than twice what it took me in a gasoline car.

The good news is that they actually did anticipate my driving pattern from back when I lived near SF. They appear to have a charger for driving to Lake Tahoe/Reno and several for going down the LA/San Diego. So at least it's possible to do those trips now, which it wouldn't be at all without the superchargers - driving to San Diego would take three days instead of one if you had to use wall-power based chargers.

(I currently live near Manhattan and don't own a car. Had a 1999 New Beetle the last time I did.)
>There is no such thing as "valid or invalid opinions".

Well, for all practical purposes there is.

You're having an underlying premise that personal value/taste judgements cannot by definition be wrong, which I strongly disagree with.

It might not be as clear cut as 1+1=2, but that doesn't mean that everything goes.

If opinions were such as you suggest (totally separate from judgements of fact and totally divorced from the realm of validity or invalidity), there would be no point in sharing them, because they would be totally irrelevant, irreducible and meaningless to anybody but the person having them.

This whole thing is based on the idea of "opinion" as "personal taste beyond critique". Like one happens to like brocolli whereas another likes nachos. Well, in my, err, opinion, even taste for food can be subject to critique. If a food is bad for you, I can say you're wrong to like it. Even if he says "this food is lame FOR ME", one can show him that his "personal taste" is mostly a cultural construction, an effect of early nurture, national cuisine, class, etc. So, it can be "lame for you" just because you don't know any different.

>CmdrTaco's opinion ("Lame") is an opinion, not a statement of fact masquerading as an opinion, so it is neither valid nor invalid.

There is a thing such as an external reality, and in that reality things have attributes and rankings. If from nothing else, at least from expert and general consensus. And I don't think either the expert's or the general consensus validates his opinion.
As a Canadian, we see the same sort of hypocrisy regarding our natural resources, especially our wildlife. Provincial travel advertisments show sprawling forests, but what's really happening at a frightening rate is their destruction because of urban sprawl and deforestation.

Land developers are wiping out wildlife habitats with no conscience as to the animal life they're destroying so they can put up ugly, treeless cookie-cutter suburban neighborhoods for a quick buck.

What Canada is supposedly famous for is becoming no longer. Municipal and federal governments would rather have more highways and big box stores.

I wrote about it at length here: http://allsprawldown.com/activism/a-big-reason-canadians-are...
You left out Ríos Montt, who was (finally) convicted of genocide in Guatemala this past week, some 30 years after Reagan's visit of support.

If it helps, there are many folks in the US who would agree with you, most especially those of us who have spent significant time abroad. Even Ron Paul (in all other respects a libertarian wacko) owes much of his popularity to being outspoken about the consequences of blowback due to American interventionalism abroad. He was in the news again today saying much the same about Benghazi: http://www.politico.com/story/2013/05/ron-paul-benghazi-9126...
> I could easily write a custom Append func in my own application because I would know the Slice types I'm trying to operate on.

More precisely, you would write one custom Append function per Slice type. AppendString, AppendInt, AppendWhatever.
It would be nice if this were reversed though. Also it would be nice if my tracks were available within Drive.
Amazing looking product. Well done for nailing the visuals. Aggressive pricing is a good move also, seems like the right way to get some good traction. I would caution against the 'free forever' approach you've taken. Maybe free updates for all 1.x releases, or free updates for 12 months will make it easier for you to sustain the business.

FYI: I had no issues accessing your page this morning, however a couple of hours later and I'm getting this from Sophos AV:

Access has been blocked as the threat Mal/HTMLGen-A has been found on this website.
Is it a good idea to get a PhD in entrepreneurship?
Mice, Men, and Fate
No.

Edit: Do it in real life.
> What are you worried about, a large power bill due to your cpu doing what is supposed to be doing?

Video games are real-time. There's a hard limit on the number of cycles you can make use of per frame.

11 cycles spent mispredicting a branch is 11 cycles you can't use for better-looking IK or smarter pathfinding.
Another cool project in the same vein is Parenscript (http://common-lisp.net/project/parenscript/tutorial.html)
The government is desperately out of cash, they will be looking for new taxes everywhere possible (instead of cutting their expenses, as usual), especially on what's popular. It's a wonder they have not touched at Smartphones and similar devices yet.
Influence by Robert B. Cialdini

You'll learn about the several "weapons of influence" many people have used and still use on you (and you use on people) sometimes without even knowing. It also gives you great insight into sales.

I highly recommend it for a technical person.
Yes. Thelist http://thelist.io/ Don't be shy to ask for an invite.
Well, it's not like we manufacture anything in France anymore :)
Sure, but you'd hope he wouldn't deny that the other eye is out.
Really? I think the "gold-plated resumes" are off taking dull, mainstream management jobs and settling for upper middle class. And connections are ALWAYS made by hard work, if they're of any real value at all. Most rich people are self-made, and if you want to get their support (ie angel investors), they have to really believe you're one of them - that you'll earn your riches, not be born into it.

The very mentality it takes to be a good founder, to really go for broke with a startup, is at odds with the gold-plated resume. Gates and Zuckerburg dropped out of Harvard. They didn't get those delicious "Harvard connections", because Harvard simply wasn't good enough for their ambitions and talent.
Every Tech Firm Should Be Trying To Please Women, Microsoft Researcher Says
I don't think it's "horrific," and I think the phrase "just to prevent fraudulent generation of blocks" vastly understates the awesomeness of having a virtually fraud-proof transaction log without relying on a centralized party.
The implementation used by MSSQL is pretty restrictive in terms of what kind of query can be indexed. But it works rather well.
The point of my reply is that it remains dangerous to publicly out a covert operative even after they've been pulled back to a desk job.

Richard Armitage is also accused of leaking Plame's identity, and first, but that didn't make it less of a crime for Libby to do so as well.
Definitely. Americans never serve jury duty, volunteer for the military, maintain volunteer fire departments, donate to charity on an incredible per capita basis, work in food banks, volunteer to provide free medical/dental care to less fortunate countries, etc etc.

We're all just sitting around drinking out of our Buy N Large sodas watching the latest Kardashian life drama.
I really like the source model that you've got here. All the benefits of open source without the sales leeches. Smart idea.
Taiwanese burn flags in protest at Philippines shooting
I have so applied. But only because the very requirement of an application is seductive. I'll also try using it.
> The two aren’t mutually exclusive.

The OP (of this thread) said, 'I saw some code importing dependencies like "import github.com/foo/bar."' I did not understand this as a criticism of the design choice of using URLs as imports, but rather, a statement about some Go projects doing something horrendously wrong.

Yes, one can think URLs as imports is both messy and idiomatic, but I do not feel that was central point of the OP. I suspect we will never get a clarification, though.

> If that URL goes down, is there a fallback mechanism?

I don't know what you mean. If the package is no longer available at the URL then it cannot be downloaded from that URL.

> For what it’s worth, I agree with oakaz’s sentiment that Go is “very imperative” and “not simple”. It is deliberately designed that way, with lots of syntax and types for representing (abstractly) the inherent complexities of its intended domain.

Go was not deliberately designed to be "not simple." In fact, it was deliberately designed to be simple. Simplicity's name is invoked again and again as a justification for including or not including changes to the language.
The words "kind of" are doing a lot of work in that sentence.
Have American Parents Got It All Backwards?
we vote for people, not for policies. we have almost no choice whatever about the policies, particularly with respect to foreign policy and security policy.
And connections are ALWAYS made by hard work, if they're of any real value at all.

Here's your gold coin. May I cross the bridge?
This is funny. First the NY Times purposely buries its own story about the warrantless wiretapping in order to get Bush reelected. Then they complain when it starts to look like they could be the ones getting wiretapped. What a bunch of morons.
Wozniak's Breakout in Apple Basic using the low-res graphics mode and the paddles was really short; it could fit on a T-shirt if I correctly recall the screenshots I saw.
I wonder if they will give me back the photos and other stuff I lost when they cut me down to 6gb and not charging my card. Lol that would be sweet but it's good to hear I like to clean my email out a lot.
I left him, and many african dictators out on purpose, I did not researched in depth yet how they came to power, many I know only as "supported" by the US, not necessarily put in power by the US, but the ones I posted were put in power by the US, directly, or with some behind the scenes direct help (Brazil case for example, brazillians for many years thought that whoever claimed the dictatorship was US backed was just another crazy conspiracy theorist, only CIA and Brazillian government recent declassified info proved the "crazy" people were right, and indeed US not helped only with intelligence, but sent a fleet here, complete with ground troops and carrier, to force João Goulart to resign peacefully instead of allowing his already positioned troops to fight the pro-coup military forces... I think it is rather sad that many people believed João Goulart to be a coward for ordering the troops already on the battlefield to stand down until well after his death)
I am building a Scala one here: https://github.com/pathikrit/scalgos
language for one, 'culture' is a french word or latin if we wanna go further.
I guess entrepreneurs are as valid a tribe as any to do anthropological research on. The field work is probably more comfortable than most current groups of interest, and you don't have to learn an obscure language except for some jargon you can pick up by reading TechCrunch.

Edit: If you actually want to be one, just start something.