skysight-inc/HackerNews huggingface dataset:
I thought about this before, since it seemed like a good idea to me too. It's not that simple though, there's tons of problems you'd hit and the result wouldn't be what you want. The bottom line is that Rust is simply not a drop-in replacement for C:

You can't just pass a Vec<> to some C code and expect it to work. The reality is that you're going to end-up writing a lot of C-like Rust - Which either acts on C types directly or converts them to Rust types and then does things to them and converts them back. Either way, the safety is largely lost due to this because C types are not going to be safe.

You also can't use any inline C functions or preprocessor macros in your Rust code, meaning that the interop between C and Rust isn't really that good - FFI lets you call functions, but functions only make-up a part the C API. The rest would have to be duplicated in Rust and kept up-to-date, which is a huge development burden and very error prone.

And when you're finally "done" and all the C code is gone, what you're left with is just a lot of C-like Rust, communicating with each-other through the C API using C types with unsafe code everywhere. Essentially C but in Rust form. You'd have to do a ton of refactoring to turn this into anything like idiomatic Rust, and you can't do that refactoring till all the C code interfacing with that Rust code is completely gone so you can stop supporting interop with C.

The bottom line is that it you could do it, but it won't work well because it's missing the big picture - If you don't write Rust code like Rust, then you don't get the safety guarantee's, and you can't do that if you're trying to recreate a bunch of C interfaces in Rust. C interfaces are not safe in the way that Rust would want them to be safe. It's the same reason why you can't write a converter to convert from C to idiomatic Rust - You have to design the system differently to get the gains from Rust, which is a non-trivial thing to do. Rewriting small parts in Rust isn't going to result in the design differences that you need, and the interop between Rust and C isn't very good, leading to lots of problems while you're dealing with both languages in the same code base.
What you can do for mmap is have several abstractions (or one using generics and phantom types), one for each different set of usecases, with different access modes.

Examples would be:

* read-only: &ROMemMap -> &[u8]

* read-write: &mut RWMemMap -> &mut [u8]

* write-only: fn set(self: &mut WOMemMap, i: usize, b: u8),

or more generally: &mut WOMemMap -> &mut [WriteOnly<u8>] where WriteOnly<T> has fn set(&mut self, T)

Now for the shared case, consider this: aliasing rules can be avoided with atomic operations, i.e. Arc<AtomicUsize> is shared and can be safely (atomically) read/written by multiple threads.

In the multi-process case, you could provide an atomic API, although we don't currently seem to expose byte-level atomics (likely not present on some platforms) so if you wanted to write a demo you'd need to use the unstable intrinsics atm.

FWIW restricted to single-threaded code, this results in the Cell get/set API which is not hardware-atomic but cannot overlap with other accesses to the same memory, as Cell doesn't implement Share so any threading abstraction will block you from doing any kind of sharing of Cells.

That is, you can share &[Cell<u8>] pointing to any bag of bytes that sits in read-write memory, and anything in the same thread can read or write to it, safely.
This sounds horrifying, less is more.
Um, is the price really $4,000!? Am I the only one that thinks nothing costing that much is a "travel camera"? The one of several cameras I own that I toss in my bag when I don't want or need capabilities of my "expensive" gear.

I wouldn't carry something costing $4000 on me anywhere I wasn't very familiar with / felt safe in.
As far as I know, they don't really use SSD's because of the higher cost/GB. So they probably don't have much to say about them :/
Andrew Sutton's C++Now 2015 Keynote: Generic Programming with Concepts
I recall reading about recovering writing that had been effaced from a palimpsest and overwritten. The ink from the first writing had iron oxide in it as a pigment. This allowed the former text to be detected magnetically, even though it was no longer discernible to the eye.

Carbon black and iron(ii,iii) oxide would certainly be very long-lasting pigments, and would likely remain legible until the substrate disintegrates.

It's the color printing that is hard to preserve. Gold leaf, of course, lasts as long as the page. Organic dyes tend to fade over time and with exposure to heat, oxygen, and UV light, whereas inorganic pigments are more stable.
Calling all fines as fines, ignoring the origin of them, is also disingenuous to the point of propaganda.

Also, the core problem of debtors prison applies in the case of fines (how can you pay while you are in jail/prison).
I have not studied the content yet but after your comment I checked and also found this reddit thread[1] claiming it is old. But not sure if anyone has actually validated the content and confirmed that it is indeed old.

Also not sure if @CthulhuSec is actually Anonymous. It was @YourAnonNews who picked up the news and made it look like it was Anonymous responsible as far as I can tell. Thomas White (CthulhuSec) also has pointed out that it has nothing to do with Anonymous.

[1] https://www.reddit.com/r/worldnews/comments/462lce/hacker_un...
That whole newspaper site seems pretty low-brow and clickbaity.
I was there too.
C was a common language for developing from-scratch DOS applications in the 1980's. Sometimes portability was a consideration, often not. Mark Williams and Microsoft C were two popular compilers.
It also helps the idea that the highest administration at the time brought about their own downfall with something as trivial as a pr stunt.
Yes! I like that idea, and I have nutrition information...just not integrated into the site yet.
> We’re planning to start a massive marketing campaign of XDSD at the end of this year. We will be the only provider of the methodology and its instruments. Thus, we are not afraid of any mis-applications. We will help companies adopt XDSD and will train and consult them. Until then, we are still in R&D mode, making final improvements to XDSD, making sure it works perfectly in commercial projects.

Wow what a cocky article. There are a number of innovative ideas but largely the author seem to be unaware that while he criticizes agile that he continues to apply many of its principals.

Believing that he will arrive at a position where it "works perfectly" is a fools errand, and having this mindset leads one away from continuous improvement and towards enforcement of a locked version of the process.

I'm interested in the experiment but would personally bet against this working. Agile isn't the reason developers he meets want highs income, personal growth and a good lifestyle, it's a reflection of the market demand for skilled, educated developers.
Not Dark energy, but perhaps Dark matter.

Basically , they are speculating about a new type of neutrino which is being indicated by a loss of neutrinos we cannot account for.

Neutrino Loss = Inability to detect = New type of neutrino = Dark matter?

Or it is just a instrument error :)
So basically any startup with an iOS only product (disclaimer our's is iOS only).
Upwork and www.Freelancer.com I think the leaders by the number of available projects. There is also a lot of buzz about www.toptal.com (but have not tried it yet).
Even more: 32,000,000,000,000.
The Whale Dying on the Mountain
How complete should the published documentation be? I see the headers I defined, but not the query params.

Also, I define the OAuth2 security in the version, but it shows up nowhere else except for the exports. It would be nice if you define which resources are secured by what. For instance all of my resources require apikey as well as an OAuth2 token.
Lead melts when they burn down your library.
It looks like there are even earlier ones than this current one. There is one here from 1963:

https://www.youtube.com/watch?v=RocLdMyUG-4

and this wikipedia page lists a Swedish animation from 1961:

https://en.wikipedia.org/wiki/Timeline_of_computer_animation...
A sample size of one makes for a worse rule of thumb then a trend based on hard reality.

Speed is all that matters, I actually learned that from Graydon's blog:

http://graydon2.dreamwidth.org/233585.html#cutid1

Rust sacrificed the majority of its runtime and adopted C's memory model late in development so people wouldn't have to pay a performance cost or depend on confusing heap allocation semantics. That's why it has a really good chance at disrupting the embedded space.
Performance reviews: not dead yet
Well, the term "zero cost" is just borrowed from C++, where it means exactly the same thing: more expressiveness, more features, and a higher learning curve with no runtime performance cost. But I do agree with you that there is a learning curve, and some things that are more easily expressible in C are not as easily expressible in Rust (and vice versa). It's undeniable that writing a doubly linked list from scratch in Rust is more involved than doing the same in C (which is a tradeoff I'm glad we made, but like all tradeoffs it has a downside).
For a broader overview of Stuxnet and the surrounding situation, I would recommend the book "Countdown to Zero Day" - http://www.amazon.com/gp/product/0770436196
Which candidate do you mean will stop it?
It's not defensive to ask for evidence of a claim. If your statements are too general to be backed up without narrowing the scope or clarifying your intent, it's hardly the other person's fault for requesting clarification or evidence.
Their hardware vendors already wrote drivers that support vulkan for other platforms. If Apple is so resource constrained (despite sitting on billions of dollars in cash) why do they insist on building it themselves when they can't keep up?
It can be incredibly convincing too, for example using the steam controller with headphones. I've had it for months and only just realized what I thought was a physical detent in the trigger was actually adjustable haptic feedback.
Thanks for the info, much appreciated for a hardware noob like me.
Ultimate privacy solution to disable all spying on Windows 10
They had some in some of their other reports but too small a population it would seem...
EECS 3/495: Concurrent Programming in Rust
https://news.ycombinator.com/item?id=9941712
Just use a damn credit card so that you have the option to contest the charge. Visa/Mastercard/Amex don't fuck around with this shit.
Thanks! Can't edit the original post now, else I would throw it in there and credit you.
I can't speak to it as a company either... but as an observer I'm pretty disappointed with it.

Unaffiliated people are prevented from commenting, meaning that every posting has a flood of positive, and completely useless comments.

Great site for astroturf, terrible for actually vetting a product.
HGST and its cousin HDS don't get nearly the recognition they deserve in the North American Enterprise storage market. Their products have, in my experience, always offered phenomenal value and rock-solid reliability at very reasonable prices. HDS arrays in particular are pretty great at outperforming 'big name' storage vendors at far lower prices.
When to stop dating and settle down
Q&A: Which Unicode character should be used for an apostrophe?
Now this is innovation.
Interesting, query params should be published - could you send me the link to the docs you published?

In the "settings" tab for each endpoint, you can mark which security schemes apply to the endpoint. It's kind of hidden, we're moving it to the general definition tab. Also, that info will be exposed in api-docs (which security schemes an endpoint requires/supports) in an update later this week!
SSH bug leaves devices vulnerable
but a "real" leica is a film camera.

I strongly doubt that they even design their own CMOS sensors.
No, I wouldn't.

Even assuming a union would bring most of those benefits, it would only be for a short time until the company could move my job to somewhere without a union. There's no protection from having your job off-shored beyond providing good value to your employer.

Beyond that I don't want to deal with union bosses and union dues and the fact that part of my paycheck ends up supporting politicians I don't want in office. I don't want to work in a place where the company can't get rid of underperformers, or where seniority is more important than ability. I don't want to work in a place populated by people who are comfortable working in a union shop.

If I wanted all that I'd work for the government.
I apologize for my bad behaviour on this thread. I'm in a bad place, mentally.
What do you find so scary about the linked video?
You know, I think the Roku remote comes close: https://image.roku.com/blog/wp-content/uploads/2014/11/Roku-...

Unfortunately, their remotes are inconsistent between Roku devices. For example, some come with this layout: http://ecx.images-amazon.com/images/I/41WCaJRUARL._AC_UL320_.... Why the hell is it a good UX to include these proprietary buttons on there? I have an older version of it that includes Block Buster!

They also have a phone app that I use frequently. It's not bad, but lacks the * button, making it impossible to turn off subtitles.

Lastly, their remotes really need a way to control the TV power and volume. I hate having two remotes, one of which is just to turn the TV on/off. I believe the new Apple TV does have this feature, but of course it doesn't have Amazon Video so that's a no-go for me.
Wow, thanks for the link! Something that was lost in the trimming (to fit in 2000 characters) was that my girlfriend is doing pretty well now, because I've figured enough out to make a difference.
Wikipedia is wrong. It is not naive.

Yes, this does not solve every possible stack overwrite. But look at the number that have actually happened in the field and whether this would have dramatically reduced vulnerability in those actual real-world cases. Most times it would.

Most notably, for overwrites happening within the local stack frame, you completely remove the possibility of overwriting the return address. This is a fundamental difference in the level of vulnerability of that kind of code.

It's called "reducing the attack surface". Well-known idea.

Maybe my post was a bit hyperbolic, but I chalk that up to being so annoyed at this.
This is great advice for people with respiratory and heart problems, but in my experience there are other reasons someone's stupid jerk of a body might not know how to sleep properly.

For narcolepsy, circadian rhythm disorders, and other life-ruining sleep disorders that don't have a clear solution, a) a pulse oximeter won't show anything useful, b) if you're in the U.S. your insurance company will fight tooth and nail to keep from paying for a sleep study, and c) a diagnosis is only a small first step towards managing sleep.

When you're so sleepy that you can barely function and your doctors can't help very much, it's easy to justify spending a lot of money on any tools that might help.
That is not awesome :(
Introducing Ember Engine
Oh! There it is. Email incoming!
The simple reason why the military lost control of a giant surveillance blimp
Titles on HN are like acupuncture needles: you want them to go in without a reaction. Actually, I just made that up about acupuncture, but I'm sure it's true about titles. There's no more reliable effect on HN than the dreaded title fever.

Even here, the discussion of how Vulkan relates to OpenGL would be better if not hung up on the word "successor", and would naturally have come up in the thread.
One thing I noticed is that the command under "Clean remote repo" doesn't actually do anything to the remote, it makes purely local changes. Is that an intentional description?
Why couldn't someone write a "Vulkan backend for OpenGL" that combined proper standards conformance with actual hardware acceleration?
Isn't that a good thing? £8 is not that much if you are really in distress, and it is enough to keep spurious distress signals from clogging the channel.
I find it hard to understand how we can be justified spending so much money and effort trying to find the wreck. What is there to gain? The only benefits I see are:

- Giving family members (maybe a few thousand people) closure.

- Understanding what happened, and potentially making a few improvements to plane safety as a result.

Given the very slim chance of them even finding the plane and learning anything useful out of it… I don't see how the search justifies a 9-figure price tag. (I don't mean to be insensitive)
Why Software Isn't Eating the Art World
If you fail to comply with a court order, can't you be held in contempt?
UPDATE: Moving from CodeIgniter to Lumen
iptables -t filter -A INPUT -p udp --sport 53 -m connbytes --connbytes 512 --connbytes-dir reply --connbytes-mode bytes -j DROP

iptables -t filter -A INPUT -p tcp --sport 53 -m connbytes --connbytes 512 --connbytes-dir reply --connbytes-mode bytes -j DROP
If it were "yesterday's battle", I would have a good programming language to use in my domain, without having to make one. But I don't.

Experimenting with model-based programming or whatever other future programming paradigm is healthy. I think we should do a lot of that, because the way we program hundreds of years from now hopefully doesn't look that much like today. BUT, you have to also be aware that there's a reason why these are future paradigms and not current paradigms, and that people building real programs today need to do something that works today. There is no way we could have built The Witness in any model-based system known today.
Technical writing with sphinx
I don't quite understand what they're used for. Who buys these things and what are they doing with them that can't be done with other cheaper alternatives now? The article says they're over $100k.
So how common have network externalities that affect revenue turned out to be?

The classic Metcalfe's law stuff means that a messaging service or marketplace with more people is more attractive to users than one with fewer, but not that those users will spend significantly more money or time on it. Certainly not linearly more.

How does the number of Uber cars in a city affect the frequency with which passengers use them?

And how many network externalities are there that don't rest on advertising dollars?
Japan, as government policy, not that I recall. Certainly Japanese companies have harmed the US. https://en.m.wikipedia.org/wiki/Hitori_Kumagai
I was watching an interview with a famous street photographer[who I can't remember], he was saying why he liked leicas,

one was the viewfinder position, and the other was the silent shutter (I've never used one so I can't comment)

The pentax 67 is a medium format monster, with a solenoid actuator. I have used it and its a wonderful beast.
Uber CEO: history repeats itself when we resist transportation innovation
> VC investing in U.S. companies dipped to $9.3 billion in the first quarter of 2016, down from $17.6 billion in the fourth quarter.

How is the first quarter of 2016 measured? We're only half way through it.
Hyperbole in the news happens all the time. At any rate, the quote is also inaccurate because according the May 2014 article that I posted, we have been able to track a jet for free for almost 2 years. I wasn't trying to start a discussion about how easy or hard one of them is.
First Flight
> The US gets less than what Israel gets out of the relationship.

That's like saying having a hamster is an unfair relationship because the hamster gets a lot more out of it than you do.
While this is true in some sense, there are also advantages. A ruby gem written in Rust via C FFI was one of the earliest production uses of Rust; the Skylight people still thought (and think) that it was very, very worth it.

https://www.youtube.com/watch?v=2BdJeSC4FFI is a further exploration of this idea and how it works. Yes, you do need that small layer, but future libraries will make it even easier. There's the Neon work, for example: http://calculist.org/blog/2015/12/23/neon-node-rust/
Ask HN: I am in a dilemma regarding my career. Stressed out. Need help
I am in a dilemma at work regarding my career and am having tough time deciding what my next steps should be. Thought I would get some clarity and advice over here on HN.

In a company for 4.5+ years working on uninteresting/career killing projects. Was briefly into a new dev project 'A' which was exciting, had good learning opportunity and exposure to new framework/patterns etc, but unfortunately was halted quickly by the client. Soon moved to another uninteresting project 'B', where I have been a for few months and I decided its high time to switch company/job owing to low salary/career prospects. But, until now I have made zero progress on job switching because of lack of preparation time/confidence etc. Now, recent project will soon be coming to an end and will be "on the bench" for other projects within company. At the same time, the earlier interesting project 'A' will be resuming someday and my old lead was trying to contact me since they were aware of my disinterest in recent project 'B'. But I am confused about whether I should contact 'A' manager and express my interest in joining project 'A'. It might cause delay in completing my notice period which is upto 90 days, as they will then have higher expectations from me, since I already have experience in that project. This long notice period will have an effect on any upcoming job offers. But not joining the resumed project 'A' could mean that, I might be moved into another useless project for an unknown period of time until I get some job offers.

This whole situation had made me very anxious, sleepless and edgy, and I am having a difficult time deciding my next steps. I had experienced anxiety/panic attacks a year back due to work related stress (mainly uncertainity in my career prospects). Sometimes I feel I might be overthinking this and end up getting really confused. Thoughts of "what if" are worrying me.

Detailed situation: https://gist.github.com/throwaway658r4r/9792da3c944d0a4ac183
$9B for a 580MW plant is _expensive_. For reference, most photovoltaic plants cost less than $3/W. Of course, PV stops working as soon as the sun goes down.

I'm curious how much additional capacity this thing gets by using solar heat instead.
Surviving Whatever Comes Next – Danielle Morrill
Again, I'm not talking about performance. I'm talking about low level safety and the difficulties in achieving that in any meaningful way. I wasn't talking about just Rust when I said abstractions cost you speed. It was a (perhaps unclear) general statement about programming. As an aside, unsafe rust is faster than safe rust for a lot of cases.

I re-read what I wrote and I fail to see where I attacked or even (God forbid) criticized Rust.

So far IME, the rust community is extremely defensive and antagonistic to anyone they perceive to have made the slightest criticism. It's immature and irritating. It's the only thing that really turns me off from fully embracing it.

I can't participate in a community that's fundamentally hostile to skepticism.
A train trip across America to fund small business
Or maybe people think that Israel is the only liberal democracy in the middle east and surrounded by nations and terrorist organisations that want to wipe it out.
The internet allows for encrypted communication, yet you can talk to me, a stranger. Allowing encryption doesn't mean that all traffic necessarily needs to be encrypted.
Kotlin 1.0: The good, the bad and the evident
When I worked at $HugeHealthCareCompany they had a ton of Z systems. Mainly used for data crunching on huge data warehouses.
serious question - why not just get a $4.99 fully functioning VPS from digital ocean or something?