skysight-inc/HackerNews huggingface dataset:
> Templates are an essential tool to write type-independent algorithms. They enable meta-programming, an invaluable tool to provide flexible yet efficient active libraries to users. They allow automated kernel-space exploration. So templates are exactly what you want.

but OpenCL C only has primitive types. templates become more useful when you have classes, but bringing classes to the GPU is.. well, less than optimal.

> Compared to other standards (that also leave various things to the implementer), I think they did a poor job

i don't know what your complaints are exactly, but i don't share your opinions - i think OpenCL is almost as flexible as it needs to be.

> The entire buffer mapping for example is a huge mess

i disagree. clCreateBuffer creates a buffer, clEnqueue(Read|Write)Buffer reads or writes to it. you can do more advanced transfers with the *rect variants, but you kind of probably know what you're doing at that point.

you want pinned memory? call clCreateBuffer with CL_MEM_ALLOC_HOST_POINTER. and instead of Enqueue(Read|Write) use Enqueue(Map|Unmap). wether or not you get pinned memory is up to the runtime (and nvidia's runtime does not guarantee it - it's an impossible one to make).

> Others didn't, with the result that the meaning of the code changes completely depending on which library you link against

as mentioned, use map/unmap. it works on all the runtimes, and at least isn't any slower than read/write. as for what library you link to, that's also a moot point - we have ICDs now, you link to a shim layer that dynamically links the appropriate run time during context creation (you can have several OpenCL platforms on one machine).

> As for your argument about hand-optimization: C++ library implementers [0,1] (and compiler vendors probably too) found abstractions, tricks and tools that give performance portability today. They are of course domain-specific but it is possible.

i haven't looked into either of your links in detail, but with the various BLAS/LAPACK libraries that exist, which are also far more mature (and more widely used), would almost certainly be a better choice. lots of these already work on GPUs and are optimized to death by beings who think in assembly.. most of them are in fortran, as well (although they have front ends for several languages).
Pascal actually predates ML and has this syntax too. http://en.wikipedia.org/wiki/Pascal_(programming_language)
I agree with you. Most people don't care about neat graphs and data.

Apparently, Apple is already integrating with Epic, one of the largest EHR systems out there. Preventive health is becoming a large opportunity and I think Apple is aspiring to become the main platform here.
Scalable Python Application Deployments on AWS OpsWorks
Your question is fundamentally unanswerable. We cannot isolate the operation of the SEC in the market as a variable, any more than we can swim twice in exactly the same river.

With respect to the question, "can the SEC protect Americans from financial fraud?" the answer is no. Fraud occurs frequently, and of greatest recent notoriety and severity are the examples I alluded to. The SEC cannot protect; it can only punish. Just like Chief Wiggum.

As always, in free markets as well as regulated ones, you have to do your own research into your trade partners before deciding to trust them (caveat emptor). The SEC is just part of the institutional stagecraft that keeps the market from becoming paralyzed by mutual suspicion.

And since we cannot have two markets, one for control and one for experimentation, we cannot say with any reasonable certainty whether the malfeasance eliminated by the SEC is of greater or lesser magnitude than the malfeasance enabled by it. But we can say that the latter is most certainly not zero.
I haven't seen any drug samples behind bullet-proof glass yet at the Mathildenhöhe exhibition (the expressionism display only had old Merck Cocaine adverts), but I imagine it should be possible to get an exemption permit.
MDMA is (as the great man showed) just a small part of a whole family of compounds. It's no doubt a very magical part, but it's just one of many.

IIRC there are others that have been found to have similar action but without the neurotoxicity. MBDB was one I think.

Personally I'd love to try EVE and EDEN too... but that's a pipedream in a world where it's rare you can ever know what you're getting.
>Enterprise Java with UML

Man, if I were you i'd have gotten back into the drugs at that point. (I kid)
Useful Analytics Strategy for Early-Stage Startups
Online.net launches XC servers: 8 x 2.4GHz / 1To storage / 8 Go RAM / 19€
> I've seen more product announcements tagged Show HN

I'm okay with that. It used to let me know a bit more about what was going on in the tech space by giving me a direct to source link and some background about the product.
NSA chief says agency not collecting visual images of U.S. people
great tip, I'll add this in
Seconded -- at least for anyone using LaTeX or another git-friendly format. I used git for my masters dissertation recently, and it was very useful to be able to checkout old versions and compare them with its then-current state.
Don't have my copy handy, but iirc TIHKAL mentions growing mushrooms with DMT in them?
One would assume they'll stop supporting the Silverlight version once all the major browser vendors support the DRM.
I have only seen Chris's Strange Loop presentation. So I don't know much about his plans for Aurora. I do agree that the time is ripe for a visual programming language built in the browser.

I haven't looked into LT integration just yet. But I am open to that of course. Sounds like an absolutely great idea.

Devcards is still super new. And I hoping that people really think about what this means in their particular workflows and hopefully reintegrate knowledge back into Devcards.
> Niels Bohr had a Horseshoe on his door.

Do you know how he commented on it when asked whether he believes that this horseshoe above his door brought him luck?

"Of course not ... but I am told it works even if you don't believe in it."

It wasn't superstition it was just playfulness typical of imaginative mind.
Because what early-stage startups desperately need is luxury office space available for lease terms of _only_ 4 years.
I can imagine it too, and I'm sure Netflix can as well. But nearly everyone making high quality/premium video TODAY requires DRM.

Edit: To clarify, if someone wants to make a service like Netflix and have it actually ship today (or any time in the near future), then yes, DRM is "needed."
I don't think it's as much about ease of implementation as it is about the finality of it and formal verification of completeness of any implementation. But of course, those are very much related :)
hahaha holy shit this is the most misinformed conception of what lsd is i've ever read, fucking incredible. 'weapon against unsuspecting populations' what the fuck? it's not a fucking nerve agent it makes you think weird for 12 hours
They're ditching Intel and the discrete GPU chips that it needs.

This is the reason Metal isn't introduced on Mac. They're waiting. Waiting until their Macs run on ARM.

I'm not saying it'll happen tomorrow. It may take a few years.
Keep in mind, that Microsoft, Apple, Samsung, nVidia, AMD, Intel, will keep having support for OpenGL (ES or other versions). And it is still the simplest way to write code for multiple platforms at the same time.

Of course, each of them tries to "bind" you by offering some extra speed or features and make it hard for you to publish to other platforms. But at the end, I believe that OpenGL (ES ...) is the only thing that will survive :)

It is very much like client-side web apps. Adobe wants you to use Flash, so you would have to buy Adobe Flash. Microsoft wants you to use Silverlight, so you would have to buy Visual Studio. Oracle wants you to use Java, etc ... But at the end, Javascript remains. It is not prefect for everyone, but it is "open" and free to implement, free to develop without paying anything to anybody.
Provocative title, but probably overstated. SceneKit uses OpenGL directly with shaders and deferred rendering. Metal seems likely to become more mainstream as engine developers adopt the tech, but there are going to be lots of developers who are overwhelmed with writing glsl shaders, let alone significantly altering the render pipeline.
Perhaps, but this language comes from Netflix, not Apple:

http://techblog.netflix.com/2013/04/html5-video-at-netflix.h...
For me, AOT compilation is not about shipping binaries vs. source. The software I write is mostly used for internal research, so it's not going anywhere. It's difference between getting compilation errors from 'make' or having to pull them out of the OpenCL C API at runtime. Setting a breakpoint in an OpenCL kernel... I remember Intel's stuff basically working fine, but you had to pass a vendor-specific option to hint at the file path. In all these little ways, the workflow is just sucky. Much of it can be worked around, but I'm too lazy to write more application code to do all the chores that the CUDA toolchain takes care of already. I'm glad to hear that 2.0 is fixing this.

What's your alternative to templates for generic code, exactly? C macros? Scripted pre-processing that further screws up the already marginal tool support for debugging and profiling? Copy+paste? Templates are completely orthogonal to "complex computation" -- I just want to use a device function on different data types without run-time overhead.

On the topic of complex computation, I'm constantly surprised at the kind of features NV adds to CUDA and how well they actually work. I'm also surprised at the kinds of things people do on the hardware. If someone implements a high performance lock-free data structure on the GPU, you can't look at that and say oh, that's too complex, you shouldn't do that.

Also, until we're all working on computers that look like the PS4 with a unified global memory, there's a huge incentive to cram the awkward bits of your program onto the GPU any way you can, even if it drags a bit, because that's where the data is.

NVIDIA has really gone to some extremes. malloc in device functions. vtable support. Dynamic parallelism. Metal has none of this stuff.

<EDIT: Just now saw your other replies downthread. I'm leaving this comment because it reflects my personal experience and opinions, but don't feel like you need to repeat yourself to clarify your position re: templates, etc>
San Francisco, local, full time.

Tech: Ruby (Rails, RSpec), JavaScript (JQuery, Backbone.js, learning Node.js), HTML5, CSS, Git, SQL (SQLite, PostgreSQL, HiveQL)

Website: http://www.tpeguero.com (linkedin & github at bottom of page)

Contact: contact [at] tpeguero [dot] com

Hoping to find a small shop where I can work with sharp, driven people to solve interesting problems.
Gonnado (http://gonnado.com), Bern, Switzerland. Fulltime Python/Django Developer

Gonnado is a funded startup located in Bern, Switzerland which develops the online leisure acitivities platform
Gonnado.com. Gonnado is the worldwide first meta search engine for leisure activities and
has more than 400'000 leisure activities in its database. Using Gonnado you can find the perfect
leisure activity and meet ip with friends or new people.

To further develop our platform, we're hiring a Python/Django Developer with the following responsibilities:
* Backend development (data import from different sources, automatic online ad generation, data mining,
generating recommendations and much more)
* Frontend development with Python, Django, HTML/CSS/LESS and jQuery
* Integrate external services like Facebook Ads, Google APIs or the Salesforce API
* Hack on our Mobile App (Django Rest Framework + Angular.JS/Phonegap)

If you are interested or have a question, send an e-mail to jobs@gonnado.com.
In-person Swift/iOS8 training in Seattle
were you running wordpress? i think the traffic that HN sends crushes wordpress specifically. who knows... maybe it's just our wordpress config. we're gonna port it over to a static site generator anyway.
YouTube appears to require Flash when playing a video with ads from the YouTube site. Embeds of the same video show the HTML5 version ad-free.

Here's a tip I've found useful: if you run into the "Install Flash" message, you can usually edit the URL to play in HTML5 instead. Change "watch?v=" to "embed/" (and if there are other querystring arguments starting with an ampersand, just strip them off). There are a few YouTube gateway sites that do something similar, but I remember the 'embed' trick better.
Critical new bug in crypto library leaves Linux, apps open to drive-by attacks
Announcing HDMNode: a Node.js based HDM Bitcoin wallet
I live in Green Bay, WI. Not huge like Madison/Milwaukee but a decent size (IMO). Maybe I have just been really unlucky or oblivious. I only just found out last year that every year, for a long time now, ships come and port here, like galleons and stuff] for a few days as part of some event. So I could see me just not spotting one if it did happen.

Not sure why a train would actually come through here though.
> Performance

largely myth

> legacy code

using OpenCL is not like OpenMP, you don't just add a few pragmas and you're set. C code needs to be rewritten for OpenCL. this is largely copy and paste, due to the syntax being so similar, assuming you have mathsy things in your kernels, but the same is true for fortran. replace array access brackets with square brackets, replace power operators with the built-in power functions, etc.

porting legacy (usually fortran) codes to OpenCL/CUDA is actually what i do for a living.
Internet Brands (Model Mayhem, CarsDirect, etc) gets acquired for $1.1B
I didn't have to hand over private information beyond my address -- I sent them my incorporation records and a way to verify the company existed in the public register. I completed the entire business validation in a single night.
Because extraordinary circumstances (becoming ill, or bad weather making it impossible to arrive at a meeting) are by definition not ordinary or normal circumstances, and so holding both to the same standard doesn't necessarily make sense?

If you're not going to hold to a schedule, why make a schedule at all? Why not just say "We'll talk sometime" and let it happen when it happens?

edit: And just because I'm not able to rearrange my schedule literally at the arbitrary whims of the person I'm meeting with doesn't mean that I'm too busy? It means that I have plans for later in the day, and not all plans are fluid. If I'm planning to get dinner with my fiancee at 6pm and you show up two hours late to a 1 hour meeting that was supposed to start at 4pm, is it my fault for having the indecency to schedule dinner with my family, or is it your fault for being two hours late?

I'm not trying to be combative, even though I know it reads that way. I just think it's a weird thing to say "if you can't rearrange your schedule, then probably you're too busy; if you can move one thing, why can't you move all things" and I'd be interested in having a discussion about that mode of thinking.
Tom Tunguz wrote my favorite article on churn. If you're interested in the subject of retention, read this and get where he's coming from with the numbers. He's a quant guru!

http://tomtunguz.com/churn-fallacies/
Kottke.org launches Boost, a service for Kickstarters
My project is the guinea pig for the service, so happy to field questions!
Just finished watching that show, and (unrelated) it seems the show puts forth only two sides: you're either accept the corporations lording over you or you're a violent terrorist.
I'd think the Wii1 provides the best model here - a really accurate and solid pointing-device controller that turns sideways into a gamepad, combined with the minimal media nav buttons. There's your perfect console controller / media device hybrid interface.

Of course, the problem is that everybody also wants to stick a keyboard onto the darned thing, and that's where the slickness goes away.
well...then c,c++, then learning to code secure-then reverse engineering and exploit writing- it kinda makes sence, dosnt it?

:)
On the other hand, the Turing machine (a machine capable of universal computation.. ie a computer) was invented as a method of solving a highly theoretical, seemingly useless mathematics problem called the Entscheidungsproblem, in Hilbert's list:

10. Determination of the solvability of a Diophantine equation. Given a Diophantine equation with any number of unknown quantities and with rational integral coefficients: To devise a process according to which it can be determined in a finite number of operations whether the equation is solvable in rational integers. The Entscheidungsproblem is solved when we know a procedure that allows for any given logical expression to decide by finitely many operations its validity or satisfiability ... The Entscheidungsproblem must be considered the main problem of mathematical logic.

Computers may seem obvious in hindsight but it was formally defined to solve a theoretical mathematics problem by the mathematician Alan Turing.
Introducing Spring Cloud
EU launches largest civilian robotics programme – 240,000 new jobs expected
Eh they'll likely have to keep silverlight as a fallback for at-least half a decade.
I'm not sure where you're getting your "better battery life" from. DRM adds computational complexity, which directly decreases battery life.
Here is what popped up as I was scrolling through the post (zoomed) on my phone:

http://i.imgur.com/gSUNzUU.png

Here's what it looks like zoomed out:

http://i.imgur.com/mTPE6uH.png

Didn't really bother me as much as the parent though.
Yeah, I don't have a problem with that. In fact, product announcements (especially brand new, first launch products from new startups) are exactly what a Show HN should be in my opinion.

The ability to expose your new thing to a knowledgeable and diverse crowd like this, and get quality feedback on your project, is (or was) a big draw to posting stuff here. But now the "Show HN" posts disappear off the front/new pages so fast, they tend to generate very little actual discussion, more often than not.
Keep in mind that the choice you have with Netflix is not "DRM" or "No DRM". It's "Microsoft's old unsupported (or soon-to-be unsupported?) Silverlight" or "Something new that will be maintained going forward and doesn't rely on Microsoft to keep it alive."

Also, this is for rentals, not stuff you own, so for me, at least, it's not a big deal if there's DRM on it.
My case against RequireJS/AMD
I know that EME is a sticky wicket for a lot of folks, but what freedom have you lost here? Netflix was already encumbered with DRM requirements from their license terms. They just chose to go with a more standards based and performant solution.
My project is the guinea pig for the service, so happy to field any questions!
I use the "click to flash" plugin on Safari to block flash. On YouTube, the html 5 video version loads 100% of the time for me. I also have no problem with playing them full screen.

Am I missing something or do I just not watch enough YouTube to come across the problem you are describing?
I would still go for cables on the ground ... or underground.
From what I remember from various posts, most other changes could be done gradually on the 2.x branch. Unicode couldn't.

I may be mischaracterising it :)

That said, I suppose it's wise to base MicroPython on the "live" branch of Python (3.x), not the legacy one (2.x), even if Unicode support is too costly for them.
The point is that, if your treating all the appointments in your schedule as life-threatening events, you're doing it wrong.
The way I'm currently doing it is to have two buttons: The Hamburger Icon and a context-sensitive button on the right.

This way my two most important pages get heavy traffic without removing the ability to access the other pages which get used less often.

Hamburger icons are great for large numbers of pages no one uses particularly often, but are necessary for the app to work (Settings, Profile, etc.) and as a fail safe to always be able to navigate to where you want. The way to access you main pages should be baked into them (links, buttons, action bars) on the page itself.
Hello! I'm one of the developers for the Online Academy. We decided to do this because we had a lot of interest for our in-person Summer program but not enough room for everyone who wanted to join. Rather than turn a bunch of really awesome people away, we decided to offer a smaller online version that anyone can take.

I'm happy to answer any questions!
To be fair, the Metal API is a lot more straightforward then OpenGL, and OpenGL is far from being "write once run everywhere". Each OpenGL platform, GPU and driver comes with its own set of quirks and problems. I do not think that vendor-specific APIs are the right way, but the current OpenGL situation isn't that much different. I would have hoped that Apple shows some real progress on their OpenGL implementations instead of writing their own API though.
I hate the revolving door as much as the next person, but it's really hard to find people who are both qualified to regulate an industry and completely neutral in their politics and employment history. I'm sure a lot of us would prefer someone with a history of lobbying for net neutrality, but that is only better from a political point of view on our side of the argument, not from an ethical point of view.

You can't write a law that says "only hire regulators who agree with John Oliver's and SchizoDuckie's and sanderjd's politics". You can write a law that says "never hire any regulators who have been in any way involved with the industry they are regulating", but would you want to?
I noticed that too! Why don't they sell it as a service instead of trying to sell open source code?? Anyone who knows enough to use it knows enough to make it themselves
Oh weird, I'll let Andrew know that it would probably be best to turn that off on mobile. Thanks.
Integrate Gulp And Grunt Into Your Maven Build
Show HN: Simple Swift TODO App
No, Swift isn't under NDA

This is based on a SA thread posted by a Swift team member that I linked in another HN thread, the post is available here:
http://forums.somethingawful.com/showthread.php?threadid=363...

and the relevant quote is from the second post:

Is this under NDA?

No.

Is this open source?

Not yet. It probably will be, but I can't make promises. Right now, our repository still has a lot of history that we don't want to make public, and we have a lot of work to do before we release.
I was expecting to see the ten-year process involving teaching assistantship, employment, marriage, and children, all illumninated by the light of a candle at 2 am in a basement office next to the crib.
Nice! How much of this optimization can be ported back to CPython, keeping compatibility but improving memory usage and speed?
Yup, need to pour enough water to find out all those leaks.
I think you misread my comment. Apart from the UI polish, I wasn't impressed --> I was impressed with the UI polish but less so the rest.

I'm aware that implementing this well is a difficult problem and I have utmost respect for those who figure out how to make it feel seamless.
Probably should switch to static content, a Raspberry Pi could handle the traffic no sweat.
I'm not sure I understand your point. If your controller logic ensures that users will always be logged in, why would you need to test for the presence of current_user?