skysight-inc/HackerNews huggingface dataset:
The part that you're missing is that code like this in Scala is totally unnecessary and it never happens:

case ns : List[Int] =>

Worst case scenario, you can always do the following and it would be more idiomatic, no type erasure standing in the way:

val listInt = listAny.collect { case x:Int => x }
val listDouble = listAny.collect { case x:Double => x }

But even that is totally unnecessary. You know why? Because your function does not make sense. What could you possibly do with a function that takes a List[T] and returns a String?

The only way this would make sense would be if you are talking about a List[Any] deserialized from somewhere (like some shitty JSON library). But then in Scala we don't really work with Any, that should never happen and if you see libraries that use Any in their API, drop them like they are hot ;-)

> Which is purely because of a JVM runtime limitation

No it's not. Talk to compiler authors. This is actually a freedom, because by introducing reified generics in the runtime, then language designers either have to deal with inefficiencies due to boxing because of extra conversions, or to limit their type system, so for example you can say goodbye to higher-kinded types. A runtime that has reified generics is not a multi-language runtime. In fact many languages are doing type erasure. Haskell is doing type erasure. And why shouldn't it, I mean, type casting and isInstanceOf checks make no sense in Haskell.
you can do

x = malloc(sizeof x + <variable_length))

x->zero_array points to the variable_length.

The advantage is that you get contiguous memory access and do a single malloc.

As opposed to:

x = malloc(sizeof x)

x->ptr = malloc(<variable_length>);

x and ptr are not necessarily contiguous.
That assumption may indeed be false.

See here[0] in the FAQ "What does this mean for downstream users of the Firefox code base?"

>>> The solution consists of three parts: the browser, the CDM host and the CDM.

>>> However, the CDM will refuse to work if it finds itself in a host that isn’t identical to the Mozilla-shipped CDM host executable.

At first, I interpreted this to mean Mozilla, not Adobe, had implemented the restriction due to some particulars about the deal with Adobe. But I was wrong...

>>> This leaves downstream users of the Firefox code base with the following options:

>>> 4. Making arrangements directly with Adobe to get a non-Mozilla CDM host executable recognized by the CDM.

In other words, the CDM can discriminate on the CDM host.

My only hope is that this is non-standard temporary behaviour while Mozilla finishes EME. Otherwise, this is extremely terrible.

[0] https://hacks.mozilla.org/2014/05/reconciling-mozillas-missi...
Demo reproduction guide to be published in next few days.
I think you made a small mistake: an "incomplete array type", as allowed by the clause you cited, is one with empty brackets (int foo[]). Per 6.7.5.2.4:

> If the size is not present, the array type is an incomplete type.

This is different from specifying the size as 0, which is still not allowed, per 6.7.5.2.1:

> In addition to optional type qualifiers and the keyword static, the [ and ] may delimit an expression or *. If they delimit an expression (which specifies the size of an array), the expression shall have an integer type. If the expression is a constant expression, it shall have a value greater than zero.

Oh, and for the record, while you may be alluding to this in your last paragraph: another advantage of flexible array members is that indexing them is actually well-defined per the spec (if enough space has been allocated, of course), while AFAIK the spec has never added a special case for length-1 arrays, so accessing the "extra elements" is technically undefined behavior. However, common compilers like GCC do treat length 1 specially, as an exception to optimizations that generally assume you won't index out of bounds, so 'technically' really is 'technically' - it's not something that some random future version of GCC is likely to break your code if you use.
It's not at all arguable, by definition each instance of a commodity is equivalent. Each CEO's value is not equivalent, nor is the music on any CD or each degree program available at every university.
I made the same switch as you. However, no Android app, and no plans of Flexibits ever making one, is making this transition hard! Any suggestions?
Did NYPD refund fines from erroneously paid citations?
> In a statement to KSL, Tesla says that Summon "may not detect certain obstacles, including those that are very narrow (e.g., bikes), lower than the fascia

May as well rewrite that to read "May run over bikers or children". If you can't implement a feature properly, then don't implement it at all. If that means current Teslas can't do it because they lack the proper sensors, then they shouldn't do it.
I do? When you're collecting two million dollars a year from ticketing legally parked cars, at less than $200 per ticket, you're not making a minor one-time error. That's a systematic practice (or, depending on your point of view, a minor one-time error that happened to be repeated 10,000 times every year).
IIRC this is exactly what the reload button used to do. You had to hold down what I believe was the Control key while pressing the reload button to do a "force refresh". Now it would seem it's the default behaviour. That, or maybe a normal refresh does the revalidation checks (which return 304), while a Control-refresh does a full download of all resources?
bound checking would act okay I guess. You usually alloc such a struct this way :

t_packet *packet = malloc(sizeof(*packet) + payload_size);
My understanding is that research does not in fact show a strong correlation between outcomes and class sizes, so I doubt that this would work.
> (better than) the expressiveness

You should say more rather than better, because better is very debatable when it comes to expressiveness. That expressiveness can often come at the expense of accessibility/readability, and IMHO that's the case with Scala.

A lot of the popularity of Go comes from its explicit lack of expressiveness. I barely use the language, but the one thing I remember most from my time learning it is that I could easily understand every Go source file I found. From Hello, World! all the way up to distributed applications/libraries, Go code was long/verbose, but explicit and easy to understand.

Meanwhile, I've never found Scala code to be very readable. It almost requires that the code be written with the same coding conventions that you're accustomed to using. Even when common conventions are used, we found Scala to be counterproductive in larger teams. Code reviews were significantly less thorough for Scala projects than either Java or Node projects were.
We're are going to have an official guide on licensing in next few days.
Also, the commenter's suggestion is not a great way to benefit from market forces:

> Mandate at least two providers at each prison and let them charge whatever they want. Let them race to the bottom so you get the same cheap voip rates the rest of the country has access to.

If you want market forces to work, just make the most profitable deals with phone providers. Let phone providers pay the prison to be able to sell their phones in the prison.
There's a distinction between being a signatory vs having ratified the treaty.

The US is a signatory (the treaty was signed on 22 March 1990) which is why they are on the list, but it's not ratified since the US Congress has never passed legislation which would make the treaty "the law of the land"

The Basel Convention joins a distinguished list of signed but unratified treaties including the Convention on Discrimination against Women (CEDAW), the Convention on the Rights of the Child, Comprehensive Test Ban Treaty, and the Anti-Ballistic Missile (ABM) Treaty.
I learned about this through a classmate doing a presentation on his work for this project (at MIT).

Iirc, they used modified android devices with larger batteries. The devices mostly slept and occasionally woke up to check in so they lasted awhile. I don't remember the specifics of how they communicated unfortunately. I'm somewhat surprised this article is out. When I heard about it (~1 year ago), I thought they weren't going to release the data because it technically acquired illegally with the tracking devices.
well, the programs are faster to develop
Are you talking about AutoPilot or Summon?
This problem is waiting for the Netflix of publishing.

Some people think .05 per article is low when Netflix provides unlimited movies for $10/mo.

Netflix recognizes that the cost of distribution has dropped out of sight. Publishing needs to do the same.
The problem is that DRM is incompatible with an open computer, and leads us to the situation we are on mobile, where users can't control their computers at all.

Content producers have the right to rent their content. They just don't have the right to cripple the entire economy and everybody's infosec doing so.
I don't know what Adam Smith meant by all work, other than the plain language, but I think it's reasonable to say that all work for the government ought to support a family.

The government shouldn't engage in work that isn't worth supporting the employee's family.
1. That's our long-term goal, but don't expect that to happen overnight.

2. @extern objects are an easy way to call C code. There is no C++ interop at the moment.

3. Not yet.
Azure Platform Interactive Map
Oh I see. That does change things then
No, that would mean admitting wrongdoing by their officers and that will never happen.

It's also a nice revenue stream and would expose the internal pressures to raise money through ticketing by management and administrators.
No it wouldn't have - we'd just continue on the existing path of multiple different plugins with their own incompatibilities and security holes, which is strictly worse for the user.

Furthermore, you imply a level of informal cooperation between the browser vendors that doesn't exist. It turns into a game of prisoners dilemma, where the first person to defect gets to claim a massive feature that none of the others do, and the others are left in worse shape.

I'm no fan of DRM, but again, it's the world we live in.
While I agree with the ideas you are expressing, I just want to amend your opening:

> If you give out monopolies, then this is what happens. Here's a simple idea to fix this: COMPETITION.

Monopolies aren't some market externality that only occur outside of capitalism (private ownership of the means of production).

Don't mean to split semantic hairs, but I just don't want to perpetuate the mainstream editorializing of "capitalism" into a buzz word meaning something akin to "for private corporations" and that privatization is always better for the market and society.
Btw, discovered something trying to update my research collection for memory safety and static analysis. Turns out, a prior technique for analyzing C that looked promising also has a Haskell project. That's Liquid Types.

Links describing it & to various projects
http://goto.ucsd.edu/~rjhala/liquid/haskell/blog/about/

C verifier download
http://goto.ucsd.edu/csolve/
This article makes a fundamental error, and its sad they never even acknowledge it.

You can't talk about the value of a good teacher without mentioning supply or demand. Yes, I know, here we go again. But this is basic economics. If the United States decided to train 100,000,000 good teachers, you can bet that the 100,000,000th teacher will not add the same value to the country as the first. There likely won't even be anyone for the 100,000,000 teacher to teach! Yet this is what the author here assumes. That the value add of a good teacher is constant. No mention of supply or demand whatsoever.

Fortunately, there's a clever trick we use to incorporate supply and demand into value-determination. It's called the market.

Unfortunately for students, teachers unions have done their best to destroy a free market for teachers, school are usually not even allowed to pay better (in the schools eyes) teacher more as per union contracts. And this country has no doubt suffered for it. All for a few extra thousand in the average teacher's pockets, its sickening.
As I pointed out above, on Firefox they can't "do anything on the host system" as they'll be sandboxed and allowed only the necessary mechanisms to do their job.
> The driver had to specifically disable that protection to use the feature the way he did

It shouldn't be possible to disable safety features. I can't press a button to disable the brakes on my car, for instance.
I hope they realize that copyleft and protection of users is a prereq for this bit, "to ensure human wisdom exceeds human power, by inventing and freely sharing ideas".

I am waiting for the days when some big names wake up and say "RMS has been right all along, we need to copyleft everything asap!"

I'm getting tired of hearing about $NEXTGREATTECH and then finding out it's a SaaS or proprietary etc.

Heres to hoping this group does something productive and free as in beer and speech.
I'm interested to see that they only found 3567 open servers, whereas a scan I have from a couple years ago shows 7573 entries.

Now is it just a difference in scanned ports or a genuine improvement in security, I can't tell, but I can only hope.
And what of the fact that you likely agreed not to do in in exchange for access to the service?
I read it as meaning "we can't be expected to understand the car's algorithms well enough to be able to predict what the car is going to do and react to the output of its computations in real time."

Which as a general sentiment, abstracted from the particularities of this case, is entirely reasonable.
The fact that they thanked him means exactly zero if they don't give back the money that they got from people who were lawfully parked, but still got erroneously fined by the department for reasons that directly contradict existing law.

It is easy to give verbal apologies (especially using hedging words like “....recent, abstruse change in the parking rules.” If the police are so confused by abstruse changes in the parking rules, how are normal people supposed to understand and obey them?). Monetary ones are more difficult to come by.

[EDIT: To make it clear, I'm not saying the work of 'iquantny hasn't resulted in positive change. It obviously has. Just that the department's response is, in my opinion, not positive enough.]
> There's a very specific reason Perl opted for '.' to concatenate strings instead of +

I don't see making string concatenation ambiguous with property access being a real improvement. At least use `..` or some other unused punctuation.
> $42k a year

Any comparison of teacher pay needs to use total compensation (which includes the value of benefits). With teacher pay, the fact of summers off also needs to be accounted for.

A more elusive construct is that traditionally public school teachers were paid less, and received in return much more job security than in the private sector.
Servo might save it the c++ codebase for firefox is a nightmare but servo could wind up taking back the crown from chrome.
Alan Kay's whole MO is noodling around with interesting stuff, and history shows it's pretty good when he does.
> The Basel Convention joins a distinguished list of signed but unratified treaties including the Convention on Discrimination against Women (CEDAW), the Convention on the Rights of the Child, Comprehensive Test Ban Treaty, and the Anti-Ballistic Missile (ABM) Treaty.

Except that the ABM Treaty was ratified in 1972; the US, under the mechanisms in the treaty, withdrew from it (terminating its effect entirely) in 2001, but that's a different issue than not ratifying it.
gcal highlighting the current date and '.' are nice features for me.

$ brew info gcal
gcal: stable 4 (bottled)
Program for calculating and printing calendars
https://www.gnu.org/software/gcal/
/usr/local/Cellar/gcal/4 (81 files, 2.8M) *
Poured from bottle on 2016-01-13 at 17:03:09
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/gcal.rb
==> Dependencies
Build: xz

2016

April May June
Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa
1 2 1 2 3 4 5 6 7 1 2 3 4
3 4 5 6 7 8 9 8 9 10<11>12 13 14 5 6 7 8 9 10 11
10 11 12 13 14 15 16 15 16 17 18 19 20 21 12 13 14 15 16 17 18
17 18 19 20 21 22 23 22 23 24 25 26 27 28 19 20 21 22 23 24 25
24 25 26 27 28 29 30 29 30 31 26 27 28 29 30
I would guess it is because of the whole thing where a treaty can be agreed to but isn't ratified unless the Senate approves it https://en.wikipedia.org/wiki/Ratification#United_States
I live in NYC so riding a bike is cheaper wrt time than driving a car. It also doubles as exercise whereas driving doubles as rage propellant.
We need this in SF. SFMTA ticketed my car for no reason before; I tried their "appeal" process, only to get a response that sounded like they didn't even read what I said.
Man, that is some nice looking UI.

Having participated in a few CTFs, they are a bit intimidating up front. Having this more visually like a 'game' (which CTF is, really) will garner a lot more attention to get people to dig in and learn.
I agree with this, but the main point that stuck for me was: how can it possibly be argued that what the U.S. has is a free market, if it's unusual to even seek prices? Forcing providers to reveal their prices beforehand doesn't solve whatever issue brought us here in the first place.
If you want a job at a startup, contact a recruiter/talent partner at a VC firm. You will have more interviews than you know what to do with.
I have tried implementing NPAPI loading in a standalone C++ app to load Silverlight, but failed horribly. NPAPI is badly documented. Anyone here with any tips? :-)
The common API is called "EME". Chrome and Firefox's API's are different because they're unfinished.
The company has an expectation of privacy with respect to those emails. Its employees aren't third parties with respect to it.
First SLAC (homebrew computer club fame more than the linear accelerator part) and PARC (so many innovations... where to start... right, ask Alan!)... and now HARC.

In good company!
I like the idea. Always wondered if there wasn't room for another EE CAD program. I always find myself frustrated by something when I use one.
While I do agree that Linux is partly to blame for this fiasco, we are also in a different world.

Who is responsible for the fact that an active I2C device prevents entering sleep state 0 but an active SPI device does not? Where does that information get recorded? And who needs to act on it?

On the RPi, you can change pin direction without being in supervisor mode--that's not true on the BeagleBone.

These aren't easy questions, and the Linux architecture makes it even harder.
After three years Linux, Munich reveals draft that could decide its future
On Software and Hammers
Startup Words Wednesday: Incubator vs. Accelerator
Google Planning Massive National Expansion of Google Fiber
Maybe it's just me but I find the fact that Tesla has ready access to such detailed logs to be extremely creepy and pretty much a showstopper for me ever owning a Tesla.
If I go to a page with a video on it that uses flash, the rest of the page works just fine if I don't have the flash plugin installed. This is identical behavior to not having the CDM. If the rest of the page also uses flash, that's entirely separate. It is even possible that the rest of the page could be flash, while playing a video with either the native <video> tag or through a CDM.

Integration between the video and the rest of the page is going to break without {video tag support with the necessary codec,flash,EME support with the necessary CDM}. Again, there is no difference.

You're trying to pretend that there is somehow a more usable page with EME+CDM over flash, when most of the time the video was the goal.

> having spent the last decade founding and building a premium content streaming service

You're fighting against the General Purpose Computer. Sorry, you don't get to run code on my computer without my approval. You don't get to turn my General Purpose Computer into an appliance. If you care at all about preserving any control over your own General Purpose Computers, stop. You've already spent a decade building the seeds of technology that lock down the web. Now John Deere has used the same ideas to take away property rights. You are adding difficulties to legitimate users while the pirates ignore your CDM and go straight to torrents/etc. Was the delusion that you're protecting anything worth these costs?
Big difference between adding the kitchen sink buzzwords vs. adding things you have some notable knowledge or experience with, but not mastery.

Also, since you represent about 0.000001% of the people who might make decisions based on what's on my resume, it's not really optimized just for you. It's unfortunately optimized for something like the average, and I'd expect you to be mature enough to understand candidates really can't afford to do otherwise, even if they also don't like trying to do SEO on their own background and experience.
Definitely...it's easy for a bureaucrat to say "Thanks for the help, we'll do better next time!" if no one's getting fired.
If you view it on desktop, there's a sidebar with more info
There is a popular tool for this approach:

https://github.com/nvie/pip-tools
Scala.net didn't die because it was academic. It died due to lack of interest, as nobody cared about a Scala for .NET
If you can construct an attack out of it, relying on people doing sane things is dangerous... (I'm not sure this is interesting enough as an attack vector, but "but nobody would do that" is a bad answer a lot of the time)
That hasn't been updated in years, had it?
Wow, pretty expensive for something you can do with VoIP.ms for much cheaper. Their toll free numbers are $1 a month, and 1.9c per minute incoming. The outgoing rate to the number that answers would be 1c a minute in the US.

So, for the RouteRelay $50 plan with 400 minutes, it would cost $12.60 a month at VoIP.ms. Granted, it doesn't have as beautiful of a dashboard...
Didn't they release an expansion pack for AoE2 recently?
On top of that, you've just concentrated all your focus on one employer. When things go bad, or they leave, there's far fewer other employers to buffer the shock.
He's also produced a number of working systems though, right?
Especially because your phone is likely to... ring... which tends to pre-empt anything else going on in the UI and in some cases is quite modal.
Last week VPRI[1] published the final "STEPS Toward the Reinvention of Programming" paper[2].

Although it is 2012, it had been unavailable publicly until now. A great way to catch up on how FONC ended. It was worked on by many individuals being cited as part of HARC.

[1] http://vpri.org/html/writings.php
[2] http://www.vpri.org/pdf/tr2012001_steps.pdf
I know most can't do it but this is essentially the argument for higher density communities, enabling walking/riding to go to work and run errands. It is the reason why NYC's carbon footprint is so small (and conversely why the suburbs surrounding NYC have such a large CO2 footprint).
I love Python, but managing dependencies and dealing with pip really is a mess compared to the Ruby gem tool/ecosystem.

Tools like pur, pip-compile etc. should have been included a long time ago.
>> I agree with the various safety folks that the existing anti-collision features should take precedence over the summon feature

Well actually this is like executing something as a sudo user. The question of safety precedence doesn't arise because you have explicitly asked for it to be disabled. Now complaining that safety features should have still taken precedence is naive, its actually more like trying to dump the blame on somebody else's for what is very clearly your mistake.