skysight-inc/HackerNews huggingface dataset:
.split_at_mut is a method on a slice ... one is free to implement their own abstractions that ultimately terminate in an unsafe { block } that enable multiple mutable borrows.

fn split_at_mut(&mut self, mid: usize) -> (&mut str, &mut str) {
// is_char_boundary checks that the index is in [0, .len()]
if self.is_char_boundary(mid) {
let len = self.len();
let ptr = self.as_ptr() as *mut u8;
unsafe {
(from_raw_parts_mut(ptr, mid),
from_raw_parts_mut(ptr.offset(mid as isize), len - mid))
}
} else {
slice_error_fail(self, 0, mid)
}
}

this is literally the src to .split_at_mut Make your own version. Rusts power isn't what it enables, it is what it removes, undefined behavior, false sharing, etc. Frankly, I am tired of C/C++ programmers complain about Rust. This is a non-starter. I am happy to convert the F#, Haskell, OCaml, Scala and Clojure devs to Rust. Systems programming isn't magic.
Sure - if we imposed across-the-board tariffs on Chinese goods and Europe and Japan did likewise, that would be a very, very long lever.

Outside of FantasyLand, that will never happen. And Amazon leaving China will have even less impact on China's polity than Google's leaving China did.

Don't get me wrong - unlike Apple who really can't leave China and continue to make smartphones, Amazon could and should leave China. Amazon, like Google, will have to comply and cooperate with Chinese authorities in uncomfortable and unethical ways that I think will make it hard for Amazon to retain their best and brightest employees in the rest of the world. And Amazon will never be allowed to gain marketshare or influence in China at the expense of a local company - the deck will be sufficiently stacked against them until they lose, much like what Google was facing.
Yes. Also, not germane to the topic discussed.
I have the same sensation, I moved to systems and mobile development but I would feel a bit lost if I went back. I catch myself reimplementing xBase-style utility functions like date and string manipulation in other languages, since they felt so sane in comparison. But I wonder that part of this nostalgic sensation was the result of an era that was simpler - no Internet, Web sites were a luxury, security was a distant concern, etc.
You'd need to read up on it but the TL;DR i got from previous comments was that previously it was being funded by a company that wasn't 100% aware of the entire situation around it (they used it in their commercial product, management didn't fully understand it was being released as open source, though I also understand they didn't own the rights to the entire code base so basically that was necessary effectively). The person developing it left that company and is seeking his own funding for it but that generally the development was significantly stunted as a result.

It seems a bit here-say-ish though, so please don't assume I'm entirely correct on all fronts there and I'd encourage you to research it further!
It's OT but how many people actually use RHEL? Or CentOS (more likely).

I'm not a fan of systemd, but have really loathed CentOS/RHEL compared to Debian/* for years.
What ruse? "Kent C Dobbs" published the `cross-env` package, not the `crossenv` package. In this case, the attacker is the legitimate owner of the `crossenv` package; the problem is that's not the package I actually want. If I had typed `npm install cross-env` instead of `npm install crossenv`, I would have gotten a non-malicious, perfectly legitimate copy of the package I wanted; no GPG key required.
There is the perfectly functional tree style tab extension. That's another waste of resources.

Really, Mozilla resource allocation is a mystery to me.
Fullstack Academy (YC S12) is hiring developers in Chicago who love teaching
Just like a normal tooth, except the surrounding part of my mouth is a little "bulkier" at the back where the cadaver bone was placed.

No complaints at all.
Can people from outside US apply ?
Any tech bigco will probably have something you are uncomfortable with, it pretty much become inevitable at that stage.
> How many practical type systems do you know that are not Turing-complete, yet powerful enough as development aids?

Dart has a pretty sophisticated type system — generics, generic methods, function types, subtyping, etc. — but isn't Turing-complete as far as I know.
Though I realize/suspect you're making a joke, I was curious and looked it up – there are numerical codes defined for countries:
https://en.wikipedia.org/wiki/ISO_3166-1_numeric

Macedonia is 807 and Greece is 300.
Yeah I was thinking about something like that, might do it for the next project. I know a guy who buys 'high quality tea' from China and resells it with a fancy modern website.
Looks neat. Nobody uses it though and LKML has zero discussion on the announcements.

However, HN has a previous thread on it here: https://news.ycombinator.com/item?id=12410798
This seems pretty easy though.

When you parse, you parse to the same JS AST.

When you show it in the browser, you show the text form of the JS AST. Source maps like normal.

It's a reasonably lightweight proposal, though IDK if it will be compelling enough.
Velux designs and manufactures fantastic windows. We had them in our German apartment and in few windows of our Swiss one. Folks in North America don't know what they are missing. Makes the highest quality windows available in the U.S. feel like they were bought at Wal-Mart.
That is so infuriating. If the site goes down permanently Soundcloud should swallow whatever costs this incur to pay for their failure of stewardship.

By honoring SC's request Archive Team has allowed the indie Library of Alexandria to burn...

That's what pisses me off about VC. Everything's a fucking product...
Microsoft Pulls Keyboard App from iOS App Store
Viking Education | Course Mentor | Remote | Part Time | http://www.vikingcodeschool.com

Viking Code School is a 100% online development bootcamp driven by the mission of launching a million high-growth careers around the world regardless of a student’s location, prior experience or economic standing.

Our mentor-led Flex Program pairs students with industry veterans who perform weekly code reviews as part of the learning process. It is a great chance to pass on your knowledge without leaving your day job (or your house). As a mentor, you work with your mentee(s) during their full time in the course, which typically takes between 6-12 months to finish. You meet with your mentee 1-3 times per week for code review and can work with anywhere from 1 to 10+ students, depending on desire and ability.

As a mentor, you have access to the course materials so you can get up to speed on anything you aren't firm on.

Check-ins are compensated.

Requirements:

* 5+ years of professional development experience as part of an engineering team, specifically in JavaScript, SQL, NoSQL, testing and frontend frameworks.

* Strong grounding in CS fundamentals like Data Structures and Algorithms.

Email careers@vikingcodeschool.com with your CV, links and anything else that would prove your development or teaching ability and general awesomeness.
I am curious as to the same. The document says

> Red Hat will continue to invest in future technologies to address the use cases of our customers, specifically those related to snapshots, compression, NVRAM, and ease of use.

but it's unclear what this means exactly.
If a large swarm of autonomous cars were taken over because of a software vulnerability, and were roaming the streets threatening people for charge-ups, would we hold the car manufacturer liable?

We’re experiencing this with IoT devices, except that “threatening” for a rogue IoT device means a denial-of-service attack (sending information over a network connection).
The Setting of the Sun
> That package was just something you googled that hasn't been updated in two years because maven has required signed packages forever.

That something hasn't been updated in two years because it's feature complete and does what it's supposed to: verifies the integrity of dependencies for Signal [1].

> If someone gains access to my account and tries to modify my package without my private key it will not be accepted into the repo.

This isn't true. Sonatype/Maven Central requires PGP signatures on all new artifacts, but there is no requirement to use the same key. It will happily accept a signature from _any_ key for new releases.

[1] https://github.com/WhisperSystems/Signal-Android/blob/ae9303...
OT, but I think you meant "hearsay-ish"
I'm not American either, I'm Bolivian.
This is why I fully expect the digital dark age to become reality.

https://en.wikipedia.org/wiki/Digital_dark_age
I'm pretty surprised nobody mentioned proguard. Almost noone enables that, unless they have to, and that's part of the problem.
Worst Kickstarter game ever made
>without having to kill something

I think even vegans/vegetarians have to acknowledge they are killing plants to eat. I suspect the better for environment/health argument is more prevalent (why I eat little meat).

At some point somethings going to have to die to feed yourself (until we can gene edit photosynthesis into humans..). I take some consolation that I'll be feeding bacteria when I'm gone.
New favorite alternative term for deep learning: "nonlinear interpolation"
>I'd encourage you to research it further!

On that note, their Patreon is a better primer than the website is: https://www.patreon.com/bcachefs
My problem with video/audio chat solutions has never been the hardware, generally it can be chalked up to flaky networking somewhere along the line to one of the participants - solutions were usually rebooting a home router or switching to 3G/4G. Best effort packet networking is just not ideal for real-time streams.
Federico Musto has stepped down as Arduino CEO
XFS - the workhorse that keeps on running.
Pursuit of positive cash flow for it's own sake and before the time is right can also be a stupid decision.
3 day notice? Did you check your emails from coinbase? I got an email on 7/19 warning about the fork.

The email laid out the process if you want access to the fork.
My best guess is XFS coupled with Permabit (which they just bought and will open source) compression and dedupe services. Probably layered on an enhanced mdraid too.

I'm guessing that the ZFS licensing hairball is a bridge too far for even Red Hat, so they'll cobble together equivalent-ish functionality - even if it's not anywhere near as elegant as ZFS's integral data production and reduction.
Many of these specific laws are very directly anti-free-expression. Complying there while accepting a free expression award is about as clear as possible an example of "doing almost the same thing as what he's fighting against".
The typical answer here is "It means the type checker might run forever". That's a sort of scary worst-case scenario, but I don't think it's that relevant in practice.

I think the more motivating reason why this might be a bad thing is it implies the type system is pretty complex and that complexity can be a problem. When users are reading and writing programs, they are running the type system in their head to decide what code to write and reason about how it behaves. If you can create types that cause arbitrary computation to be performed, then you're forcing the user to run a pretty complex simulation in their head.

Worse, unlike the dynamic runtime behavior of their program, they need to do that reasoning before they can even begin to run their program. It's not like "well, sure, you can maybe get the program into a weird state". It's "you won't be able to even run the code at all until you understand and fix all the type errors."

Given that, it's important to keep the type system simple where you can. The challenge is balancing that with the need to make the type system sophisticated enough to not prevent users from writing programs that are dynamically correct. All type systems are inherently pessimistic — there are programs you can write that would do the write thing but where the type system can't prove that so it generates a "false positive" error.

A few of those are tolerable. Most users don't seem to mind adding a seemingly pointless cast here and there, or reorganizing some already-correct code to please the checker. But if they have to do that too much, they start to feel like the language is stupid or getting in their way. See, for example, the perennial complaint about the lack of generics in Go.
"It is difficult to get a man to understand something, when his salary depends upon his not understanding it!"

In Elon's case, it's brand/profit/investments instead of salary.
> which will not clutter up your distribution, it will just clutter up some apps.

Not necessarily. Distributions have to build everything, and in openSUSE we have an integrated build system[1] which has a lot of very useful features (rebuild when dependencies are updated, and automated QA runs before releases). Those features require you to have all of the dependencies of a project in an RPM package. Even if you don't end up shipping that package, the package is used for tracking security issues and backports and so on. You can't pull anything from the internet during a build, you have to depend on your BuildRequires.

Now take any average JS application that has over 800 dependencies. Ruby was already bad enough with ~80 dependencies, but adding another order of magnitude is just not maintainable. One of my colleagues gave a talk at LCA about this problem[2].

[1]: https://build.opensuse.org/
[2]: https://www.youtube.com/watch?v=4ua5aeKKDzU
We Become What We Behold – a game about news cycles, vicious cycles
I don't like the part that explains the motivation for implementing binary encoding:

> A brief survey from July 2017 of the uncompressed JS payload sizes for some popular web applications on desktop and mobile:

> Facebook	7.1 MB

I think Facebook should just remove the code they don't need rather than invent new compression methods. There is no way a social network with a chat needs so much JS code.
Basically. Those steps should be done regardless of FS. I heard this on a podcast recently but if you are not doing that you end up with "schrodinger backups"
The original version of the article has an actual picture of Walt, and also the "majestic, elegantly curved Millau Viaduct with its cable stays spread like sails":

https://mondaynote.com/a-salute-to-walt-mossberg-e3c562288f0...
As a counterpoint, PowerPC has at least 3 mutually incompatible ABIs for C.
Showpo Lawsuit Exposes Need for Tighter IT Security in ECommerce
The Stripe advantage over PayPal is that
Stripe operates more like a merchant account ...

Stripe is an ISO with First Data Merchant Services (FDMS, I believe now owned or controlled by Wells Fargo) doing the actual processing and, as such, assumes a different legal role than PayPal (which is a VAR for Paymentech). This is how Stripe is, as you say, "basically a white label."
Easy to say. Care explaining? These signatures seem like exactly the thing to prevent mitm attacks. I trust signature A; i won't load the package unless it's signed by signature A.

Most people won't be that strict in informal development, but that's not really what this is about.
Bullet proof:

mid = lo / 2 + hi / 2;

Well, that is, if your algorithm can tolerate a mid == 6, for hi == 7 and lo == 7. :) :) :)

Cough, cough; seriously though: here is a variant based on the above idea which takes care of the remainders, avoiding that problem:

;; TXR Lisp
(defun mid (lo hi)
(tree-bind ((lq lr) . (hq hr)) (cons (trunc-rem lo 2) (trunc-rem hi 2))
(+ lq hq (trunc (+ lr hr) 2))))

trunc-rem has toward-zero truncation, with a remainder that is harmonized to that.

Based on my testing in the REPL, this is behaving sensibly.

Adding the quotients, and then adding to them the sum of the remainders, truncated by two, seems to be doing the trick.

(mid 7 7) is 7, (mid -7 -7) is -7 and various other cases are all sensible. (mid k (+ 2 k)) is yielding (+ 1 k), for both values being negative, either being zero, and zero-crossing cases. (mid k k) seems to be k for all k.

I think as of ISO C99, the / and % operators truncate toward zero. Unless I'm gravely mistaken, this is then nicely expressible in C as:

lo / 2 + hi / 2 + ((lo % 2) + (hi % 2)) / 2;

It's mathematically well founded: we have added the truncations, and then continue working with the remainders. This is because the following expression in fact expresses the exact result.

trunc(lo,2) + trunc(hi,2) + (rem(lo, 2) + rem(hi, 2))/2

where / is exact rational division! Dividing the remainders by two just continues the inexact division, completing it to exactness. What we're doing differently in the machine calculation is using truncating division on the sum of the remainders, which we need because mid is to be an integer result.
Simple touch screen is definitely enough for me. I don't feel I need tablet. I have Ipad and I hardly use it.

I find myself touching the screen when reading, on actionable wizards etc. So, it is mostly usability bonus for stuff that I could do in mouse. Funny thing is that I really didn't notice first that I started to touch screen.
Outside of taxation, a buy back is essentially equivalent to a dividend that you're forced to reinvest. At the end of the day, all of your shares are worth a smidge more of the company. Certainly, the price could go down after a buyback, same as if you reinvested the dividend.

The benefit for shareholders is that the shareholder can decide when to recognize that as a capital gain; the negative for shareholders is that they can't recognize only the portion of their capital gains related to the buy back.
They rightfully banned "prude".
If the vulnerability was a result of gross negligence, then oh yes, absolutely.
>It's OT but how many people actually use RHEL?

Hopefully a lot because, like it or not, RHEL puts a ton of work into the linux kernel and other userland linux tools. We need them to stick around.
What if the attacker instead advertises `some-totally-different-person@gmail.com`? How are you even supposed to know who wrote the legitimate version of the package in the first place? And if you _do_ know who wrote the package, you don't need a GPG key to verify that; just their NPM username or even the actual, real package name will do fine for preventing this specific attack.
No bullshit: interface{} is almost the same level hack as void*. And is not well, no matter how much Stockholm syndrome you have.
If I didn't know what Square was I'd be suspicious too.

Swiping your credit card into a dongle attached to the audio jack of an iPhone/iPad. Seems legit.
Found this paper useful: "The Case for Writing a Kernel in Rust" (https://www.tockos.org/assets/papers/rust-kernel-apsys2017.p...) linked from the "tock os" blog post: https://www.tockos.org/blog/2017/apsys-paper/
Beyond Catalyst: Enigma's Vision for the Future of Data
You forgot the other top 5 companies. Although Apple has plausible deniability.
There is still a variety of valid use cases and design though, no?

Say your site offers English, Chinese, Japanese, and a number of other languages. Your user's HTTP header says they can accept Japanese. So you default to Japanese. Their IP says they're in China. Wouldn't you want Chinese to be the 2nd choice on the language list to choose from, because that's a more likely choice for the user (if they were to have to switch) rather than English, French, Spanish, etc.?

I'm sure it doesn't take a lot of imagination to think of a lot of other use cases. At the end of the day, it just gives you one more data point to act on. ;)
https://en.wikipedia.org/wiki/Inedia
1. How do you know it's a firefly? It's just a bright spot.

2. The diameter of the ball increases dramatically, as if it originates from the clouds.

3. It seems to disappear behind the trees, suggesting it is far away.

This isn't to say that it isn't a firefly; I just have no idea how you can be so sure.
FWIW, you're one of a short list of HN participants whose comments I frequently read. If you start blogging again, I'll read your posts with great interest and provide only constructive feedback.
Ok. I remember my got-it-with-my laptop mp3 player and my brothers Creative something.

I'm sure both used USB. Mine was actually a glorified usb stick so I just plugged it into my computer.
Wisconsin company holds 'chip party' to microchip workers
Mathowie transfers ownership of MetaFilter to cortex
Because even the largest companies (especially the largest companies) rely heavily on the organs of government to help negotiate and solve issues which are geopolitical in nature.

A cursory reading of some leaked state department cables or any analysis of how statecraft works shows that business and government work together to pressure and negotiate over things which affect multinational companies.
Sooo... mass and composition are irrelevant? Because Pluto (and its fellows, like Eris) are smaller than a half-dozen moons. Pluto has less than _five percent_ of the mass of the smallest planet, Mercury. It is also mostly _ice_ unlike the inner (rocky) planets and the gas giants.

And variety of solar-system bodies are geologically active, from the inner planets, through numerous moons, down to comets and asteroids, and probably many other Trans-Neptunian Objects like Pluto (many of which also have moons). Your proposed criteria fail to be useful.
WordPress is Maximum Cool
Sounds to me that Btrfs is done for long-term. So now what?
GSuite has unlimited storage (until enough people do things like that I guess).
The ADL, which fights Antisemitism, has also included advocacy for Israel in their agenda. See f.e this report in which several peace groups are wrongly accused of being "anti-Israel": https://www.adl.org/sites/default/files/documents/assets/pdf...

The ADL is of course free to propagate for whatever they want, but it being included in the Trusted Flagger program might lead to more news stories like this one: http://www.aljazeera.com/news/2016/09/facebook-blocks-accoun...

The reason for mentioning this is that it is not only right-wing ideas that will be censored. Groups working for ending the occupation and advocating peace between Israel and Palestine are generally associated with the left-wing. They will equally be at risk of being silenced with programs like this.
Given how few of those posting tonight appeared to understand the import of what Joshua Bloch wrote, I wouldn't take it personally. I'm slightly shocked by it, but I wouldn't take it personally...
> Every time you use your credit card, the store takes money from you.

No, precisely no credit cards work that way. That's why they're called credit cards.
When cash was gold and/or silver the central authority might do some minting of coin but you did not need to trust them with a ledger or not to print huge amounts of paper currency. Gold and silver were currency for thousands of years. Soon all the people who lived under that system will be dead. It will be interesting what the system of global fiat will bring in the future.
Reflecting on My Failed Y Combinator Experience
So how many companies does it take to be a free market decision? 5? 20? A third? A majority? What if those active investors had taken advice from a single company, like a ratings agency?
As do others and they were one of the main systemd backers. Still doesn't answer the question.

If I'd left out my preference, probably would have had fewer downvotes.
All gay internet content is illegal in China[1].

By blocking VPNs, Tim Cook is helping to ban all gay content.

[1] http://fortune.com/2017/06/30/china-homosexuality-internet-w...
It's also possible to dynamically, lazily load some parts of the JS code. Surely not all the code is needed all the time. For example, you may not need to load the code for the settings page until the user actually goes to edit the settings.
Are you looking for Android Developer? If yes, then I'm interested.
mcveigh was a decorated product of the US military, I'm not quite sure he's the example you're looking for