skysight-inc/HackerNews huggingface dataset:
Inheritance is not necessary for OOP.

For example, if you have:

struct Cat {
meow: String
}

impl Cat {
fn talk(self) {
println!(self.meow);
}
}

fn main() {
let bob = Cat { meow: "Mroowwwww!" };
bob.talk(); // Prints "Mroowwwww!" Good job, bob.
}

Cat lumps the data and its associated functionality together into an object. This is object-oriented programming even if you never bring inheritance into the picture.

Both Go and Rust have objects, they simply go by the name struct. Haskell does not follow the object-oriented approach.

I think the confusion surrounding OOP is that people associate OOP with a particular implementation of it, like Java.
I like to show you the immense beauty of the Agda standard library: http://agda.github.io/agda-stdlib/html/README.html (all clickable and…you'd better have proper unicode fonts).
There's a special irony to the fact that this high fidelity audio format is being promoted by Neil Young. Young's a rock musician. He's been around loud noises (e.g. rock concerts) most of his life. He's also 69 years old. Our ability to hear high frequencies decreases dramatically with age and exposure [1]. If anyone were able to discriminate 24/192 from 16/44.1, it sure as heck wouldn't be an elderly rock musician.

[1]: http://www.patient.co.uk/health/presbyacusis-hearing-loss-of...
Yep! There's a link at the bottom of every email receipt for recurring billing donations to cancel the recurring charge.

I totally agree that adding some text to the effect of "you may cancel at any time" would be perfect -- we'll get that in there!
Far from me the idea to defend them, but $350/m is about 3 times higher than Monster's most bullshitty bullshit cable. Even their "2000HD HyperSpeed HDMI cable" only had a $115/m MSRP in 5ft, falling to $32/m in 35ft: http://www.monsterproducts.com/Monster_Video_ISF_2000HD_Hype...
You likely to leak a fair amount of information simply from cache misses, but also things like branch prediction. Constant time operations in x86 is surprisingly hard.
Horizontal, cableless elevators to enter testing in 2016
Yes, timing to video frames :D
Adblock Plus can now prevent Facebook from telling senders you read the message
This makes no sense. Say we shut down The LAPD or the VA. What would it be replaced with? The idea of a private sector police force is a little scary, and what private business would perform the function of Veteran's Affairs?

The point is that there are some things which only government can and should do. Shutting down vital services isn't practical nor popular. People wouldn't stand for it. If a the leaders of a city the size of LA decided to shut down the police force and replace it with something different, they would be immediately voted out of office. The government isn't some external actor forcing its will on the people. The government serves the majority, a majority that prefers that not to have basic services shut down because they aren't performing optimally.
Next milestone: 19th January 2038 03:14:07 GMT
Nifty example. Billionaires, trillion dollar budges, billion-view celebrities, fast CPUs, and large memories: all reasons I am done with 32 bit architectures (old article of mine, but only on large memories http://www.win-vector.com/blog/2012/09/i-am-done-with-32-bit... ).
uint_32 strikes again! And one day we'll stop using it in favor of int_64, and all unique identifiers will be string, and all will be well.

I remember when Twitter had rolled over their tweet ID's because they were using an int type that was too short. Should have gone with variable length strings to avoid that problem.
I don't understand: why not write the function to take a predetermined (or even slightly random) amount of time to run, and have it just sleep at the end of execution until the timer's up?
Fascinating article. Is there any reason to believe that upsampling an audio file should produce a better analog signal than playing it at its native sample rate?

I find that playing high quality mp3's through an upsampling DSP filter and a 24/192 DAC seems to produce a better listening experience. (As the article points out, this could be due to confirmation bias, or the filter making the music a tiny bit louder.) Intuitively it makes sense to me that the DAC sending signals twice as frequently to the headphones would produce a smoother analog signal, but is that actually true?
Game developers have been big on data oriented design (http://www.asawicki.info/news_1422_data-oriented_design_-_li...) in recent years. It's funny, because data-oriented design examples tend to look like the original ("bad"?) array of values example in the blog post. Most of articles on DOD focus on performance, which seems of least concern to most software engineers,
but I think it helps with understanding how your data is transformed and results in easier to understand code.

I don't see how OOP is any more applicable to games than it is to other software. In a typical business or social CRUD app you can represent things in the same way you could in an OOP game. "Hero" becomes "User", "Monster" becomes "Friend", "Inventory" becomes "Account", etc.

Otherwise I strongly agree with you. I think all software should be written in a more functional or data-oriented style. The biggest reason I'd write OOP code now is that many game designers and programmers, and most popular game engines and frameworks, prefer OOP.
Today's NASA has little in common with the organization that put men on the Moon, but they can put rovers on Mars so they have some ability to get stuff done.
Yes, way too imperative. "map" and "reduce" are imperative; they order something done.

With true declarative forms, you can treat them as data and do something other than execute them. It's hard to do much with an imperative form other than execute it. A scene graph or a game level file is a declarative form; you can view it from different angles and positions. The programs that plan actions for NPCs look at a game level and decide what to do. CAD files are declarative. Spreadsheets are mostly declarative.

The usual problem with declarative forms is lack of expressive power. If you need to express something the declarative form can't handle, it's tempting to bolt on some kind of imperative gimmick. This is how we ended up with Javascript.
Come to think of it, America was/is that highly advanced trading partner colony.

The exploration of this side of Earth had its own share of danger and uncertainty. Remember, people back then think the Earth was flat. Traveling far enough is doomed to drop off the edge.
"100% of proceeds..."

What about that 2.9%+$0.30 fee?
If it's any consolation, I'm a pro sound engineer and I entirely agree with you. I do like 24 bits (although I'd be satisfied with 20 bits) but I can't be bothered recording at anything higher than 96khz and even that is mainly wiggle room in case I want to do extreme pitch-shifting or suchlike. Most of the time I use 24 bits/48Khz.

Sometimes I think I'd like to buy some expensive measurement microphones and record at 192Khz for Science, eg to find out if there are tunes in cricket stridulations or whatnot. But then I get over it.
No mention of mysql, postgres or sql server. Neet graphic none the less.
This has been available since the feature was implemented into facebook.
Umm, nope, there's absolutely nothing on asteroids that's valuable enough to justify mining them in near future. Even being made of solid platinum or diamonds wouldn't make it profitable. Everything that can be gathered from asteroids can be mined from, for example, the Antarctic or the floor of the ocean which are both simpler and cheaper to reach.
So it seems this does the same thing as putting the subquery in the list of columns to return, except more efficient.

i.e.

SELECT a, (SELECT b FROM ...) b FROM ....
What really bugs me is the many indoor lights in our world that are not (or cannot be) dimmed in the evening/nighttime. Especially at this time of year when much of the US is dark at 5pm, it gets pretty unbearable being in an office, or on public transport, at 7pm which is still lit as if it were noon.
don't take it as a personal demonstration, i mean it should be generally true for all

it's a small individual sacrifice for the most significant accomplishment yet of all known life

i can't think of anything larger or more important to support
Maybe it's just a better DAC overall? Even at the same bitrate, I think a better DAC can make a difference.
vsChart – The Comparision Wiki
Saying "You" when not addressing anyone in particular is a classic dog whistle technique. Everyone in the audience knows exactly who you're talking about, and plausible deniability is preserved for future accusations of racism/bigotry.

Of course, silverstorm did not actually explain anything at all. All he did was repeat a few standard dog whistle arguments used by racists with a couple of geek culture references thrown in to pander to the audience.

Let's take a look.

1. Appeal to imaginary "social contract" -- an attempt to establish a criteria for who should be accepted into society based on some vague, unspecific standard. Used in various forms by dominant demographic to argue against immigration.

2. "Learn to speak English" -- Good to see this is still being used. Incredibly high reliability as an indicator of racism, almost to the point where I expect it to soon fall out of favor among racists. [0]

3. Warnings of radical change to society ("attempt to create Little Elbonia", "completely reshape government") -- A common, highly effective technique based on natural human fear of the unknown and preference to status quo.

And of course, silverstorm's response to being challenged was equally standard -- repeated reference to "phenomenon" to avoid potential challenges to assertions, it's only a few bad apples ("a phenomenon which sometimes happens", "many immigrants are well-educated"), preemptive dismissal of direct accusation as self-evidently absurd ("I'm a jingoistic, nationalistic, racist dirtbag?").

[0] See, e.g., Lee Atwater 1981 interview for more on evolution of racist rhetoric and its adaption in response to public awareness of true meanings. http://www.thenation.com/article/170841/exclusive-lee-atwate...
Yes, that's certainly a factor.

If US citizens who go to med school are heavily protected by licensing laws from competition, whereas US citizens who go to grad school in engineering experience the opposite, you should expect more US Citizens to go into medicine, and more international students hoping to gain entry to the US to train as engineers.

This, rather than deficiencies in the US educational system or problems with making programming "cool", goes a long way toward explaining why US citizens tend to avoid certain fields. It would also explain why the "shortage" of US citizens going into certain fields is actually a highly rational response to a market distortion created by government policy.
Sure, but it never happens unless you do these early experiments to find out how e.g. to dock with a comet/asteroid, to attach, what energy budget you expect to need once you're there and so on.
Companies that can figure out how to create and manage a distributed team will have disproportionate advantages if the product is successful and they suddenly need to scale. Open-source projects are a good example of this.
I did a very similar project, although I just used the average pixel color and had a randomized list to do a greedy algorithm.

As I was building the concept out, I made a version that output to Excel as opposed to a bottle cap rendering. The results were pretty fun...

http://huksu.com/pixelator/excel/

Sometimes I dump random images into peoples' Google docs.
24bit absolutely makes sense in the age of streaming devices pushing sound to digital inputs on powered speakers. Simply for convenience reasons I want to adjust the playback volume already at my phone. I have no analog volume control (or rather, it's a configuration knob you set up once)

If you play back a sample at 1/8 the volume, you still have 21bits of range from a 24bit sample. Playing a 16bit sample at 1/8 volume is basically a 13bit range, which is bad.
Hi Fr4ncis,
Are you taking any iOS interns in London?

I speak French by the way!
This conversation reminds me of an electronic relay assembly line I once observed over a period of time. The workers hand-soldered relays, their numbers were being measured/judged, so many cold welds were shipped.

QA sent them to soldering classes, where temperatures and flowing of solder were discussed/practiced. They came back with nicely soldered joints, and production numbers dropped to the floor.

Management came back in, exhorting higher numbers, so out came the cold welds again to make the numbers.
Curing malaria also doesn't have a return on investment to whoever is doing it. We're at the point where governments are doing the neccessary things, but private individuals are able to sponsor the visionary but less practical endeavors - simply because they believe that it's the right thing to do and don't have to answer to millions of voters who might quite rationally prefer more bread and circuses instead.
Yes in a Pollyanna ideal world you could choose what worked in hindsight. But we can't know until we try, what we will discover.
You should post the job announcements in the official post: "Who is hiring? (December 2014)" https://news.ycombinator.com/item?id=8681040 (318 points, 1 day ago, 484 comments)
But you can look at it the other way around: the US government is good enough to let you have your paycheck. Why do you assume the money is yours to begin with? The gov't also spends money on police and roads so that you'd be able to earn your paycheck, so it seems to me like it's doing the hard work for you.

And as to voluntary choice, why do you think that voluntary choice by the individual is more important than the choice of society as a whole? After all, you have a democratically elected government, so it represents the set of deals or compromises struck by the members, and various groups of members, that form society. How is that not voluntary? Who says your own individual will is more important than that of society? It seems to me that the current system is a lot more voluntary than the one you're proposing. In the current system deals are formed to pool resources together to achieve common goals. Because pooling resources is required to achieve some goals, how would that be achieved in your system? My guess is that people who have accrued more wealth (thanks to the government's work) will use their influence to advance the goals they desire, without taking into any account the will of most other people. Is that fair?
Or, ...add sleep(rand(..)) to each lookup, regardless of result.
> True. But we DO know the asteroids are valuable.

The only value of asteroid mining in the forseeable future is to support other off-planet operations, since the only time that getting anything from asteroids will be better than getting it from Earth is if you plan to use it outside of Earth's gravity well.
Imagine being able to use a physical magnifier to see more information on the screen. Wouldn't that be great? at least for a curious child?
Configuring server with Chef: fast and easy
My understanding is that the original is the only video that has broken the 32 bit integer barrier though, right?
NASA costs about as much as the Carried Interest tax loophole for hedge fund managers.
You're assuming that an object is always going to be modelled as a heap-allocated struct-like block of memory containing all of its state. There's no reason that has to be the case, though. You could create a system with an object-oriented programming model whose data storage was array-backed/table-oriented. You could probably even code something like that up in a fully GC'd OO language like C#. The way Java and C# manage string intern tables is an example of the kind of specialized data backing that's possible behind externally OO interfaces.
It does depend on the size of the corpus; the literal interpretation could still be the highest-probability interpretation even if it's wrong. So if I have a habit of always using the word "norble" instead of "computer", someone with a large corpus of my speech can manually or automatically infer what I'm talking about (particularly given a knowledge of English, since I'd say stuff like "norble programming" or "reboot your norble").

If I speak an unknown language or jargon or relex or word-substitution code for only a short time -- giving very few samples of each unfamiliar word -- that might not be possible. There's just not enough data to make the correct interpretation more probable than other interpretations!

But yeah, if linguists and philologists can translate languages just from fieldwork observations or inscription corpora, we can be confident that if you use language in a weird idiosyncratic way for a while, people (or machines) who can observe you will come to understand you too.
> Intuitively it makes sense to me that the DAC sending signals twice as frequently to the headphones would produce a smoother analog signal, but is that actually true?

No. Watch the Digital Media Primer and Digital Show & Tell, Monty (the article's author) explains how digital sound encoding works and why the analog signal will be reproduced beyond your ability to notice imperfections either way: http://xiph.org/video/

And that's for native 24/192, in your case since it's been upsampled the 24/192 signal can't have more information than the original 16/44.1, since that's all the information that went into it.
> I definitely would like to upgrade to a better fire department

Then why didn't you? Are there laws against private fire departments? Of course that's not a fair question because public fire departments suppress the demand for private fire departments, but do you think better fire departments would be available for comparative prices without public interference?
I wonder how many people see 24/192 and think "24-bit, 192kbps" sound instead of "24-bit, 192khz sound", getting the units wrong.

MP3s are (often/traditionally) 128kbps, so 192kbps would be better, and 24 is more than 16, so it too must be better.

For the people who do get the units, you still have the 'more is better' problem. We've finally gotten past the point of everyone trying to make ultra-compact 30MP cameras because consumers have realized that their current camera is 'good enough' and that more MP doesn't always make the picture sharper.

Could this just be the same thing in the sound world?
Not sure if he did everything all by himself.

Regardless, it was bound to happen sooner or later as youtube is getting older.
It's just a 2 billion limit crossed, 32 bits can count up to 4 billion. Afterwards, they certainly don't have to change to 64-bits, just add a few bits more.
Most people listen to music using headphones nowadays.
Seeing as I was in my own world today, I just heard about this news. I was(still am) ecstatic and excited by the news just to be bummed down by the comments. I'm with you on this.
This is really cool. I'll have to take a look into it for my personal blog for no other reason than to have some fun with a new technology.
It looks like it also broke the formatting on the number of the viewers: "2151501252". This string does not have thousands separators.

Direct link to the video:
https://www.youtube.com/watch?v=9bZkp7q19f0
No, it means the study methodology is flawed OR the effect is too small to be detected with the sample size.

So you'd have to decide in advance what difference is meaningful and choose your sample size to ensure you can detect it.
I don't understand what you mean, so I can't say you're wrong, but higher frequencies are not more quantized than low.

In fact, you should be very careful about to think about quantization in digital sound reproduction, because it can easily lead you astray. Think of bit depth as a measure of dynamic range. Do look at that digital music primer for geeks posted elsewhere in this thread, it makes for awesome reading.
it isn't a great quote. It gives way too much credit to Stalin in typical manner of idolizing him even if Durov may consciously have not intended to do it. Just like a pretty much any Russian he couldn't resist it subconsciously. (note : i'm a Russian)
Unless you think that <new tech> is somehow detrimental to getting to Mars, I don't see what the cynicism gets you. In fact, I've never understood how cynicism helps achieve anything at all.

We'll send humans to Mars when it makes sense, when we can, and when we want to. If we stop wanting to, we'll never go...we'll never even develop the capability.

Mankind spent a long time--hundreds, maybe thousands of years--using boats before we started sailing across oceans. Going to Mars is way more complicated and dangerous, and that's still only the closest planet.

Enthusiasm for plans might create license for NASA to experiment, but lack of enthusiasm would be far worse. There's no lack of other people who would love to spend NASA's money. And even the private sector spaceflight companies are largely dependent on NASA today.
Cool and needed. But are they anywhere as safe as existing elevators? Technology hasn't changed in 160 years because they are so safe. There's a failsafe gravity-powered brake that activates if the rope breaks. What do they plan to do to match that? Any active braking is vastly less safe, if it depends on electronics/sensors/maintenance.
I'd argue that both the pro and con positions on this issue are correct. Because there are, roughly speaking, two sub-markets within the larger unified whole. Let's call them the upper market and the lower market.

The upper market is about the supply-vs-demand of the best engineers/programmers/techies. The lower market is composed and driven by the supply-vs-demand for the cheapest people who can ostensibly fill those roles, however poorly, as long as they are (or appear to be, in near term) adequate for the need at hand.

Therefore speaking in broad strokes: yes, if you're a US citizen/resident whose skills/talents/accomplishment are effectively in that lower market, then globalization is likely to hurt you in terms of employment prospects in a tech field. However, if you're in the upper market supply-side, globalization is more likely to help, esp if you market yourself very publically and globally, and independently from any specific employer -- for example, get yourself some kind of top ranking on some forum or in search results on a given topic, or write a book on it, create/lead or contribute to a popular FOSS project, etc. You may not have full control of your destiny, we each have different mixes of strengths or handicaps, but to some extent you do have a choice as to whether to put yourself into that upper market's supply pool, or the lower. And there are lots of people world-wide desperate for money or to get their foot in the door, thus they flood that lower market, even if later some percentage of those same folks may transition into the upper one. And a new "sucker" is born every second, world-wide.

The OP's author is clearly writing from the POV of that upper market's demand side. He's correct for his segment. A different conclusion about the impact of H1B visas (and off-shoring) can also be correct, if about that lower market's supply-side.

All good. No conflict.

disclaimer/caveat: obviously speaking in broad strokes, and thinking at strategic level. (And I wish I never had to point that out on HN.)
Toronto is the biggest city in Canada and the industrial center, lots of different sectors and jobs, thriving start-up scene, and all the things other major cities would offer.

Biggest problem you'll face is that we mix-use metric and imperial units, i.e. pounds for weight, feet for height, celsius for temperature, meter for distance.
CSS3 border-radius lands in Servo
I don't understand what you mean. When I said 'train' I did mean as an employee doing actual work.