skysight-inc/HackerNews huggingface dataset:
Ask HN: Procedural music with Web Audio – any libraries out there?
Howdy all!

I'm wondering if anyone knows what the current state of web audio procedural music libraries is? I have a mate who's looking to code up an in-browser generative music page and I'm not sure where to start re- easy to use libraries.

I did a ChucK course some time ago and was really excited to see ChuckJS and the Emscripten port of ChucK, but for the life of me I can't get the thing to build and it kind of looks abandoned (latest version on Git won't compile for me; it appears to be in a half-merged state). Would have loved something like that -- (see http://chuckdemos.com).

Would be interested to hear what others have come across.
Why is it hard to understand that islam and western values just can NOT coexist?

Why is it hard to understand that "real" muslims are convinced that western values are simply weaknesses that must be quickly exploited to destroy the western civilization?
Docker Flow: Proxy – On-Demand HAProxy Service Discovery and Reconfiguration
Fuzz testing distributed systems with QuickCheck
I'm not interested in being a manager, executive or a founder. I've had opportunities and pass. I like being a developer. It's not stuck.

As far as being an "influencer"; do you see any links on my profile? Again, that's something other people find appealing, not me.
Intelligence maybe, but sentience? We haven't made any progress in that. We don't even know if science will ever be able to figure that out. See: the hard problem of consciousness.
Self-taught people know how to teach themselves anything they need to know. If a problem takes them in a direction that they don't understand, they know they can understand it with some effort.

This is an extremely optimistic view of self taught programmers. While these type of self taught people certainly exist and I have worked with a few, they're definitely not universal or even, I would say, the norm. Most self taught programmers I've dealt with will brute force any problem they have into the one thing they know and are just barely scraping by on frantic googling and copy-and-pasting in random code from stack overflow.
This is a great pain in smaller shops that have lunchtime rushes.

Queue of 5-6 people. One customer nearer the front gets out their phone, locates the correct sub-app, scans, waits for confirmation, cashier gets confirmation.

This process, involving phone from pocket, unlocking screen, pressing screen, pressing screen again, scanning QR code for purchase, cashier getting confirmation, takes around 20 seconds (mainly latency on the physical interaction with phone part).

A cash transaction takes much less time.

There are 'bounce' apps that just mean you need to bounce against (hit) someone else 'bouncing', but they reduce the latency little.

Faster than card, but marginally.

/rant (stand in queues a lot)

And then scanning QR codes to add the shop as a 'friend' for a 1 Yuan discount (or demonstrate you've been a 'friend' before, more like a 0.2 Yuan discount). Wow. This can take over a minute.
Where's the lane? Self-driving cars confused by shabby U.S. roadways
Free trade's costs have been amplified by policy failures
next: how I printed PCBs by printing P, C, B and s.
amazing waste of time that is, of everybody, the commit authors and the people spending time looking them up and making slides out of them. And lets not forget the waste of space on HN regarding this referral post.
Lamark got it right XD
So does this mean that creating a process (or forking one) can be fast if you omit the Win32 state table and initialisation for the new process? And if so, do you think it would be possible to get fast forking by using Native processes instead of using the Linux emulation layer (assuming that NT actually has an API to CoW-map an existing process' memory, which might be internal to the Linux-on-Windows subsystem)?
Nutanix and Rubrik – “Ready” to Make a Splash
And C is at the very top. Should we now proceed to heap scorn upon C programmers?
Yeah, I'd say that this is actually a piece intended to try to prevent any political fallout with a close ally of the US (Israel) at the expense of the nuclear whipping boy (Japan).
A bit unfair since "pinball machine" used to refer to exactly what a pachinko machine is for a couple of hundred years before the "modern pinball" arrived.

(https://en.wikipedia.org/wiki/Pinball has the first bagatelle spring plunger around 1750 and flippers around 1947)
I wonder if their approach only works on iphone5 and not the 6? I thought I read somewhere the 6 has more advanced security features?
I upvoted the original post only because of this comment, which gets to the heart of the matter with a simple example anyone can understand.

If the functions aren't commutative, function order definitely matters!
If they're busy saving us from ourselves, who will save them from themselves?
A FAQ: http://maul.deepsky.com/~merovech/2038.html
The Universe is expanding, and some parts will never interact with other parts, because not even light could make the trip. One could say they are now in separate universes. So that's one limit I can think of.
Stepping into the Mind of Marcus
Yes, they are.

http://www.engadget.com/2016/02/03/apple-legbacore-thunderst...

"All was quiet after the researchers' announcement, and for good reason: Apple purchased their security firm -- LegbaCore -- just two months after news of Thunderstrike 2 broke. According to the company's founder Xeno Kovah, the team is going to be working on "low-level security" at Apple, which we'll take as shorthand for making sure that OS X's firmware is less susceptible to attacks in the future."
G.P.República Argentina: Repsol Honda Team Ready to Tackle Argentina Challenge
sounds like a solution looking for a problem.
If you want to read about evolving life in a computer, have you tried Greg Egan's short story Crystal Nights - http://ttapress.com/553/crystal-nights-by-greg-egan/ ? It's fiction, but it's good.
What is the recommended reading (learning) for someone who is just starting out with AI based bots? I understand that a basic Machine Learning course is required, but what else?
Well, the religion and religiousness are very complex concepts in Turkey. We (in this case you, the westerners) tend to treat the other as a homogeneous entity, with prejudices based on the extremes (like treating the Catholic curch as an organisation of paedophilia because some members are guilty of it).

Erdogan and AKP do not have that much of actual support, but the conjecture helps them. An oppositional government can only be forced with these: The secular CHP with about 25 percent support, the nationalist-racist MHP, with about 15-20 percent support, and with the kurdish-nationalist, leftist HDP. Last summer the outcome of the elections allowed these to form a government, but MHP, on the night of the ballot declared that under no circumstances would they have an accord with HDP. And somehow, the sleepy, cease-firing PKK started tumultising southeast again, out of nowhere, and people voted for AKP instead of a crisis in which we live with temporary minority governments or with no actual government at all.
That's a poor idea, because they're trademarked, Nintendo is notoriously litigious, and you will forever have your business confused with a Pokemon.
The Web's Grain
ops, sorry for that. Issues are enabled now ;-)
OP did a very good job at explaining. My point is rather that, while some circlejerk about how important comments are, this is not a good example how they should be done in a professional environment. In a pure learny way it's really well done.

Personally i find the comments distracting.
MotoGP: ENEOS signs personal sponsorship with Valentino Rossi
Sometimes you have to satisfy the compiler because it has less information about a situation than you do. Ideally this would be captured in the type system, but limitations (language, project, politics, time, etc) may prevent this. As another comment mentions, it's a kind of invariant check.

For example, based on external information you might know[1] that a condition inside of a loop will always be hit exactly one time. Your compiler or tools might not be able to determine that same thing. It may try to force you to do something like assign a value or whatever you did in that condition, that it can't guarantee has happened. In such a scenario, it might[2] make sense to have something like "this should never happen" after the loop, with a brief comment explaining why you've done this.

[1] I think this is the crux of the issue. We programmers often think we "know" something, but it might be an incorrect assumption. IMO part of being a good programmer is examining your assumptions at every step. The chasm is vast, between "the framework strongly guarantees X" and "the function that gets called before this one has done X already". The former is OK if you want to get work done, while the latter is much more brittle and possibly dangerous, depending on the level of coupling you're willing to accept.

[2] Nine times out of ten, a reorganization of the logic makes more sense. However, I do think there are scenarios where this pattern is the best choice given the options.
If you don't need something as super-tiny, but don't want to go all-out Dragon book, Niklaus Wirth has released an updated copy of his classic "Compiler Construction" for free, now targeting a subset of his Oberon language. All in 130 pages. No fancy functional methods aimed at a language high in the Chomsky hierarchy, but all the basics are there.
(I consider it one of IT's biggest losses that we don't follow Wirth more, go notwithstanding)

http://www.inf.ethz.ch/personal/wirth/CompilerConstruction/C...
If you need a cheap PCB prototype more quickly (2 days), the PCB Train service is always a good source.
Creating a Virtual Machine
I think the hate for lead-free solder is either a bit much, or outdated. I've used nothing but lead-free for both hand-soldered PTH and toaster-oven-reflowed SMT and get reliably excellent results. This is with cheap solder, dodgy HASL PCBs and a consumer toaster oven.
There. Is. No. Data. Flow. From. Phenotype. Back. To. Genotype.

It just does not work that way. Mutations could be favorable and unfavorable, but there is no mechanism that "adaptations" are encoded back into genome.

Some random mutation which persisted in one population and wiped out in another has been selected due to environmental factors, such as climate and availability of food sources, does not imply that it is necessarily better or advantageous for a different environment.

And, of course, a diet could not cause genetic changes. Mutations could be selected in a population within some particular environment or wiped out in another.
...and now it begins.*

* Officially, because presumably it's been going on for a long time but not publicly discussed to the degree that it is being discussed now.
Good for them! I used to have some similar magnets around my office. I can't recall the brand. The only issue I had with them was that the outer plating of the magnets would wear off very easily and made a huge mess. Did anyone else have this problem?
There is a disturbance in software delivery channels
> "Well, it is listed under "Ramblings""

My issue was with the word 'made'. If I see a title for 'I made x' I expect a little more than 'I ordered x'. I'm not going to make an article about 'How I made an iPad' if I just ordered one from Amazon.
Maybe I'm reading too deep into this, but something about how the writer put this story together makes me think it is an allegory for what could happen if Trump becomes president.
I've wondered about this for a while, particularly with cars designed outside of the US. Much of (western) European[1] road infrastructure is in much better shape than in the US. Since this development started to surface I've thought Michigan would be the perfect testing ground for the technology. Drivers not only have to contend with poorly marked roads, but roadways that for 9 months out of the year significant portions are under resurfacing/construction, requiring one to carefully hug the roadway due to lack of shoulder or any number of one-off situations that would be difficult to account for in software.

Then there's the pot holes. On M-59, an 8-lane non-highway state road, you have to constantly adjust your position in the lane to avoid them. In many cases they are bad enough that if you hit one at a reasonable velocity, you'll suffer a full-on blow-out and run the risk of completely losing control of the vehicle. Parts of it are like playing a video-game (but with real life, costly, consequences).
There are better (aka more creative) ways of inducing rage in fellow cow-orkers. https://twitter.com/noahlz/status/709961243277332482
> Nintendo is notoriously litigious

I disagree, especially compared to their counterparts Sony and Microsoft, but the rest of your point stands
The idea that Miami will be gone in 20 years and not 200 is a ridiculous one. I live here on an island by the sea, I guess that doesn't make me a geotechtonista but it gives me some perspective other people in their basements in middle America might not have.
http://whatthecommit.com/
Thanks again. You did something right that I can't remember having seen before in the threads I have participated in.

Now that I have hopefully established myself as an uninformed but intelligent sceptic, not denier, here are two pointers as to why the explanation kind of worked this time:

* links to the actual report, and the intro part. Most people, even in technical forums, assumes malice right away, starts telling me how "2500 scientists can't be wrong" and that I should read the report, all while leaving me with a not-so-subtle feeling that they never read it themselves.

* actually, to a degree at least, answer my question about Greenland instead of immediately assuming malice and bringing out the troll hunting gear. This is, IIRC, the first time I have seen a serious answer that partly covers that question.

On my side I might read a bit more in the report, note one AGW person who isn't all torch and pitchforks and possibly change my mind. (I already live kind of carefully but because I don't like wasting resources, not because I have believed in AGW so far.)
What do you cut your stencils from? I've spent a lot of time mucking about with various plastics and never gotten particularly good results - 0.5mm pitch pads tend to start melting together into a mess. The good stuff is meant to be Mylar, AKA PET. I've bought plastic advertised as Mylar which has not been particularly good, and I suspect it may actually be PE rather than PET, as apparently the two are often confused.
From the other hand, we as Greeks, have enjoyed a time of relative peace of mind during the Erdogan rule. In the past, every time Turkey had internal instability issues there was tension in our relationship which even brought as at the brink of war (notably the Imia/Kardak incident in 1996).
Have you got an algorithm to produce my production database?

Philosophically you can reduce them to the same thing, but practically speaking you wouldn't really want to.
How to Deploy Rails with AWS CodeDeploy
IllegalStateException already exists. Why would people make their own?
It would have been funnier with context. Most of the references they're making are related to the assigned problems, I assume.
You were able to pay for cab rides using AOL in the 90s? Using which device and which software?
Two reasons:

1. Harmonic intervals in 12TET are good enough to sound okay with no obvious sour notes.

2. Hand and finger size.

Factors and primes aren't the issue - it's how closely the octave divisions approximate perfect whole-number interval ratios.

12TET hits the sweet spot. The tuning is close enough for practical keyboard and fretted instruments to cover a wide pitch range but still fit human hand and finger sizes. So they're not impossibly difficult to make, tune, and learn, but you can still make complicated music on them.

Finer subdivisions like 19TET - or more - are closer still to the ratios, but you need computers and electronics to make practical instruments. Or highly skilled string players:

https://www.youtube.com/watch?v=MPHLS5mJrJk
I never said it was.

The 'fairy tale' is the way media and especially, advertising, portray the benefits of consumption. The selling of this idea is a key part of capitalism, not as a concept, but as it's practiced today.
That may be true, but it's irrelevant to my point, which was that the Rundfunkbeitrag is a matter of state (Land) law, and thus even further away from the hands of the federal foreign ministry.
CB Insights Top 100 VC's – Curated Twitter List
To be fair, someone writing a ThisShouldNeverHappenException may not be the kind of developer that knows about an IllegalStateException.
That jab at Sun haha!
void(int a, int b)
{
const int i = 0;
int result = a + b;
if (i > 0)
{
// This will never happen ;)
result = result / 0;
}
}
Hahaha, I went through the masters of comp sci program there. Those commits mentioning Borja cracked me up, and I swear "i love the smell of segfaults in the morning" was written on the wall in the big lecture room in the physical sciences building. Gives me flashbacks - that program was brutal (though really good).
A Text-Based MMORPG Game based off Mccode Lite

Is there a live demo?
http://www.commitlogsfromlastnight.com/
you can deny holocaust in many european countries...
Today Parse released the Push feature. Awesome! http://blog.parse.com/announcements/push-and-config-come-to-...
Incorrect -- they requested an "instrument", which carries with it all sorts of legal requirements beyond creating an in-house tool.

Source: http://www.zdziarski.com/blog/?p=5645
> (You can create systems for enabling median folk to accomplish things, even if they are disinterested. We call it "bureaucracy", and it sucks, but a lot of the time it kinda-sorta works. A bit.)

Yeah, it's true. And the kinda-sorta might be just enough to some companies (which are too big to fail and have enough leverage to push mediocre stuff to the market).

On a side note, I've been feeling, lately (and within the context of all this Agile BS my company tries to indoctrinate me with), that management is really the art of accomplishing stuff without making large assumptions about your resources (in software, without assuming any kind of talent, commitment or responsibility from the team). And, although it seems horrible to me, there's really a lot of knowledge and value in achieving things even when you only have a bunch of uncaring, undedicated and uncommitted monkeys which only care about collecting their paycheck.
When you mix with operative/intelligence crowd - the work is incredibly fun, the access you have to all kinds of info (and people and gear) is unprecedented and the generous compensation is a nice side effect.

Apple can top the compensation, but not the first two parts.
Also interesting considering there are over twice as many Java repositories (>200,000) as C++ (<90,000) [0].

[0] http://githut.info/
US 2016 Elections Through a Twitter Lens: How We Did It?
Like you said, Shell is really into gas, and a part of their business is moving gas via large ships. In Netherlands, gas is the biggest source of energy, which those cars will drive on. So that is why I do not see it as a big problem.
I tried this on my phone (via Chrome for Android). The keys didn't do anything when I pressed them.
That's absolutely correct, come to find out. For some reason I thought the SE was responsible for holding some of the keys and the wipe counter, but instead it's a section of the NAND flash called "Effaceable Storage".

Their own whitepaper defines it:

A dedicated area of NAND storage, used to store cryptographic keys, that can be addressed directly and wiped securely. While >>it doesn’t provide protection if an attacker has physical possession of a device<<, keys held in Effaceable Storage can be used as part of a key hierarchy to facilitate fast wipe and forward security

(emphasis mine)

However, it appears that the FBI attack only worked because the people in question used the 4 digit pin. A strong passcode is the way to go and protects you from these kinds of brute force attacks.
Not sure what the downvotes are for.

I'm not saying that order doesn't matter with pure functions (which is wrong).

I'm saying that the notion that "order doesn't matter" (without qualifications) has been touted as a benefit of pure functions and FP -- and indeed it has. Wrongly, but it has -- and that's an impression many people get from reading such "introductions to FP".

In fact, the author of the original post we're discussing makes the exact same observation: that order was supposed to "not matter", but he shows how it does.

And if you want some more example of what I said, here's a very lazily collected sample, I just used "pure function" and "any order" etc. in Google:

"A pure function is also robust. Its order of execution doesn’t have any impact on the system.".
-- http://www.nicoespeon.com/en/2015/01/pure-functions-javascri...

"Finally, and here's the coup de grâce, we can run any pure function in parallel since it does not need access to shared memory and it cannot, by definition, have a race condition due to some side effect".
-- https://drboolean.gitbooks.io/mostly-adequate-guide/content/...

"Another consequence is that it doesn't matter in what order functions are evaluated — since they can't affect each other, you can do them in any order that's convenient".
-- http://stackoverflow.com/questions/4382223/pure-functional-l...

"Pure functions may be run in any order, so it's more easy to parallelize their execution".
--http://leonardo-m.livejournal.com/99194.html?page=1

"Pure functions can be evaluated in any order, the result is always the same. Therefore, pure functions calls can be run in parallel".
-- https://medium.com/@yannickdot/functional-programming-101-6b...

Note how all examples don't bother to give any qualifications for input data dependencies between some of your pure functions and race conditions based on them...

What do newcomers to FP learn from those?
Ok. Couple of points: (1) A vegan diet can't "cause" genetic changes. My diet is a part of my behaviour, and short of exposing myself to lethal amounts of radiation or carcinogens, I can't modify my genes with my behaviour. (2) However, if we modify an organism's environment (by, say, restricting what is available to eat), then over many generations, we should expect that organism's descendants to adapt to that change. I guess more experimental confirmation of evolution is nice, but it's not really very exciting. [Edit: Minor grammar picks]
Execute($_GET[])
Why lockitron didn't work out?
Webplatform.org dead?
I knew it was a work in progress but I checked it today and this project seem abandoned (last blog entry is from 2014! [1]). It's a shame... it looked like a good initiative and I had great expectations given the number of sponsors involved.

I guess MDN is the best alternative.

[1] https://blog.webplatform.org/
A cab company couldn't sit on AIM? I would pay in person once the cab arrives. Having all your shit in one place isn't exactly a new paradigm.
Learning platform CLANED has raised €4M and is still in stealth mode
They should have analysed Pakistanis with the Indians many of which few generation ago were vegetarians before converting to Islam. Would really show how many generation it takes for the dna to change etc
Likely Buckyballs. Here's Zen Magnet's video comparing quality: https://m.youtube.com/watch?v=S7Tka4NUmUo
Yes, I'd absolutely agree that pure functions are declarative, so "functional" is a subset of "declarative".

But it's a strict subset: config files are declarative without being functional. Raw data is declarative without being functional. One could argue that imperative functions are declarative too: "This C code is the declaration of what steps to execute in what order". So the definition of declarative can be a little fuzzy around the edges, but pure functions are most certainly declarative.

Anyway, QML is most certainly declarative, however it's still not functional because there's no functions.
Is it not just ℶ^1?