skysight-inc/HackerNews huggingface dataset:
For that specific example it's hard to be expensive but here's a loop from one of my crates that compiles down to efficient code:

pub fn decode_12be(buf: &[u8], width: usize, height: usize) -> Vec<u16> {
decode_threaded(width, height, &(|out: &mut [u16], row| {
let inb = &buf[(row*width*12/8)..];

for (o, i) in out.chunks_exact_mut(2).zip(inb.chunks_exact(3)) {
let g1: u16 = i[0] as u16;
let g2: u16 = i[1] as u16;
let g3: u16 = i[2] as u16;

o[0] = (g1 << 4) | (g2 >> 4);
o[1] = ((g2 & 0x0f) << 8) | g3;
}
}))
}

The "decode_threaded()" call is a function call that passes in a closure with the inner loop to a generic function that is used to multithread a bunch of similar decoders, instead of repeating that code. And the for loop is actually describing what I want (process every 3 bytes into 2 output values) instead of having me manage some iteration variables and have off-by-one bugs. "chunks_exact" and "chunks_exact_mut" are recent additions that allow me to say that I only want to receive exactly 3 bytes and output exactly 2 values, so if the array is improperly sized the extra at the end just gets skipped. This not only matches the intention of this code (I only ever process 2 pixels from 3 bytes and nothing else will work) but also gives the compiler a better way to lift the bounds checks out of the inner loop and make the code significantly faster (by 2x in some decoders).

Now let's see "decode_threaded":

pub fn decode_threaded<F>(width: usize, height: usize, closure: &F) -> Vec<u16>
where F : Fn(&mut [u16], usize)+Sync {

let mut out: Vec<u16> = alloc_image!(width, height);
out.par_chunks_mut(width).enumerate().for_each(|(row, line)| {
closure(line, row);
});
out
}

Besides allocating the image it uses "par_chunks_mut" to make the code threaded. That's a function that's provided by the rayon crate which manages a threadpool and it's scheduling for me. So I'm even using code written by other people, to build something that's apparently deeply nested even though it needs to be fast. And yet after all this indirection and syntax goodies the end result is efficient machine code that matches or is even better than the original C++ code and not the dynamic runtime like behavior of Ruby/Python that you'd expect from such code.

That's what zero cost abstractions are. After memory and data race safety I think rust shines because it gives me a lot of the ergonomics of Ruby with the speed of C.
the people who would bother to do that could probably just ask Google for your wifi password instead..
A bit irconic that this comment got immediately flagged and deleted...

Edit: looks to be back now.

Edit edit: gone again
Ruby CVE-2018-8778 Arbitrary Memory Disclosure Vulnerability
Looks like YT wrote back to that post to say that's not true?

"...Channels will not get deleted if you re-enable comments--can you send us the post where you saw that?"
I'm currently learning simple computer fundamentals as I work through Ben Eater's Build an 8-bit computer from scratch program [0]. I remember seeing the initial videos and thought I remembered him saying he had no plans to make schematics/plans, but I looked it up recently and saw that he had kits/tutorial videos. A week later and I'm working on the clock module and enjoying it so far!

[0]: https://eater.net/8bit/
Homes are heated with communal hot water, wood gassification (pellet burners), heat exchange with the ground or deeper bore-holes, or electricity. Not much gas, heating oil was gone by the 80's sometime.
I was speaking about social media scandals in general. This is one of many.
Agreed.

That company was unusual in that there always seemed to be a tension between the board and the company (distrust). And both sides (CEO and board) seemed to have a short-term view of everything (we were going to "flip" the company to a large pharma), which caused a lot of bad decisions to be made.

The other (more successful) start-ups that I worked at had a much more harmonious relationship with their boards (e.g., "We are in this together and we are here for the long-term.")
An other very informative thing to get done is thermal imaging of the walls (from inside and outside both). Very good at uncovering damp spots and water infiltration too.
Proof Wiki
Tangential note that I thought was interesting: I have an eye condition called Keratoconus. It developed mostly on one eye before I had a procedure done to stop it from progressing, but my vision on that one eye is affected permanently.

People tend to wonder why I don't wear glasses, and I tell them it's because they don't really help since I don't "blurry", I see "smudged". It's as if you took a picture with a camera with long exposure and moved it, but not quite.

The pictures taken with this lens are a surprisingly good approximation of how I see with that one eye (perhaps sans the whitewash).
I will say I miss meta-moderation. That was a neat feature.
Over time it will probably become a large fraction, as YouTube stabilized rules, increases automation for monitoring the rules, and, frankly as channels that want integrated comments but still can't meet the rules leave YouTube for alternative platforms, or abandon creating the affected kind of content for some other pursuit.
It's not quite as bad as it looks, people say and do things online they would never do in real life.

Might want to consider requiring permanent irrevocable identities, linked with their real-world identity, for certain forums. By removing anonymity a lot of this type of behavior is suppressed.
> Uses script to copy programming course.

That's a little meta, don't you think?
Both type inference and borrow checking have also received a whole bunch of small improvements over the past couple years. Subtle enough that you probably wouldn't notice them except in that the language just takes less effort to use.

If you use Rust 2018 now, non-lexical lifetimes are a bigger recent improvement: https://doc.rust-lang.org/nightly/edition-guide/rust-2018/ow...
In English sure, but I don’t have a six-year-old’s grasp of English.

Given my childlike comprehsion of German, a better comparison would be if I heard the German translation (“Zieh die Slips”, says Google, making exactly the same incorrect assumption I would’ve made). If someone asked me to transcribe “Zieh die Slips”, I would probably write “Sie die Slips” or “Sehe dies Lips”.
I don't, actually. One microbenchmark isn't conclusive (never mind that Go is outperforming C# according to The Fine Microbenchmark).
I'd call this a personal attack; maybe it would be more productive if you rephrased your comment so that it wasn't so?
Yeah, sorry about that. I don't know if it's possible to change the title now though.

Glad you like the wrecking ball :)
Stabilising Experience Replay for Deep Multi-Agent Reinforcement Learning
Mammalian Near-Infrared Image Vision Through Injectable Retinal Nanoantennae
If the right doesn't like being censored by private corporations, maybe they shouldn't make deregulation and allowance of this sort of behaviour a core part of their beliefs.

Me, I love seeing these guys deplatformed.
It's mind boggling that a criticism of the narrowness of a monoculture is being called superficial.
It's basically an RSS feed of people rather than sites. I get a lot of tech and programming info from it, as well as networking with high profile individuals.
What a ham fisted reaction to the controversy. Now all content creators have to ensure that no kids are ever in their videos, which includes background footage and movie clips.

I think this is a major problem with our current centralized model of the internet where giant corporations make all the rules. Large corporations have no ability to rationally judge situations or inject nuance into discussions. They simply take the easiest and most expedient pathway to make the problem go away regardless of the long term consequences. This is not behavior we want from the few major building blocks of our modern life.
>That being said, states like Colorado and California are some of the few areas with solid protections for LGBTQ people.

For sure. That, and similar aspects, are what we really enjoy about living here.
There's no law making creepy comments like these illegal, at least not in the US. (I can't speak for other countries, and US law is what's relevant here.)
They have a >40% profit margin, so it would take a lot to bankrupt those bastards.
> Not really "just", of course

For C++. Tons of languages do the type paramaterization and it solves more than 80% of the common problems. 80% of the remaining 20% can probably be covered with compile-time code generation (or runtime code generation), for which templates aren't the only solution (D, C# and Lisp have different examples of how to solve this). The ultimate remainder of problems are likely really obscure, and are probably indicative of code smells (e.g. VectorF<3>).
Why the MPL license? Have you thought about releasing under the same license as Go instead/in addition?
Ask HN: How do you do career planning?
I'm 24, software engineer at a huge company that has roles for doing everything. They have a culture of holding career conversations, and give their people a shot at identifying and fixing what they want to do. I am due to go through this process soon, and I am really interested in advice on how others have handled their career planning. I personally don't like the idea of breaking my role into the Level I, II, III ladder, and I don't want to bind my professional life to that scale. I feel motivated towards understanding the business side of things, but I lack any background that would help me there. I want to have an educated roadmap (even if I don't follow it to script), and I would really appreciate advice on going about it. Thanks!
> Ban comments is an important step IMHO, but how about putting the people making the comments behind bars?

That's...out of YouTube’s legal authority.

> They will keep watching these videos.

Watching the videos itself is neither illegal nor harmful to anyone, even if it may correlates with conduct that is either or both.
Any demo sites already available to try out?
> does all the work to track down where my wifi network is in the city

The light would store the (B)SSID of your network, so you could just use something like wigle.net to go from that to a lat/lon coordinate.
What Voltaire said is entirely irrelevant, this is a legal question.
The Hollywood exploit would be to take out the light bulb with a BB gun through an open window, and then go through the trash THAT night.
For real Beginners to programming Rust can be hard, because concepts like pointers are hard in most languages that use them.

For Programmers that try Rust out Rust can be hard because they are stubornly trying to program Rust as if it were Python/Java/C/C++/Foo – but it isn't.

Rust as a language makes certain types of approaches (or anti patterns) nearly impossible. In the beginning it happens quite often that after a day of struggle you will erase a Rube-Goldberg-Machine that does something simple and replace it with the right line of code that does exactly the same while beeing way more extensible.

If you find yourself building more and more elaborate structures just to get something very simple done, the problem is very likely your approach (e.g. trying to implement a OOP structure instead of solving the problem) – at least that is what happend to me a lot.

Rust's borrowing and ownership concepts, as well as traits and generics make it extremely powerful, but these concepts lend themselves better to certain ways of structuring code than to others. Learning something is in my opinion always about allowing something to change your perspective. If you are not allowing the thing you are learning to change you, chances are that you are not learning, but judging.
I extensively watch music videos and live music performances on youtube, comments are fun to read. Not sure they are completely necessary but i've learned some interesting things and been turned on to good bands from YT comments!
> Many of the more (in)famous public redesigns in recent years went for "open" and "spacey" UX because they erroneously tried to make their main design a mobile-first design, when that wasn't their core business need.

The Internet Archive redesign is a great example of this.
I wonder how long before they totally disable all comments. I mean I mostly watch all my YouTube on my smart TV, and as far as I know, I can't read any comments on the TV. Additionally, I can't even read the description of the video, or the tags, or even the number of likes/dislikes. So I guess that is the direction YouTube is headed to.
How do you find them? Are you going to start forcing everyone to log in to view videos? And forcing everyone with a google account to verify themselves as a genuine person, with personally identifiable information?

Anonymity brings out the worst of some people, sure, but the damage of taking away anonymity is substantially more dangerous IMO.

And really, yeah, these people are complete creeps... but how does that affect anyone?
How exactly do you propose to fix these problems that you've listed?
The common theme in every discussion about moderation is that Google, Facebook et al have a division of literal wizards who can wave magic wands to enforce arbitrarily nuanced moderation policies at scale.

This just isn't in touch with reality, but public opinion and pressure has no incentive to be rational, so blunt, restrictive policies like this one are the only path left open to these companies.
One of the reasons you are probably seeing this happen are budget cuts. Major university systems have seen their funding be cut by state governments. Elsevier charges an obscene amount of money to access information that is often publicly funded.

If money were no object, you'd probably see less university systems rejecting Elsevier. But money is becoming a bigger issue.

Ultimately, this is starting to put major university systems in line with individual users, and we should see an explosion of open-access information in the next decade.

Remember when Harvard University said it can't afford journal publishers' price: https://www.theguardian.com/science/2012/apr/24/harvard-univ...
That high efficiency envelopes are brittle is something that concerns me. Cold air and water needs to be kept out, but more importantly water needs to get out or you get major damage that will completely negate any energy savings.

In the Midwest there is an utter catastrophe where modern high efficiency houses are rotting away because construction and design errors let water in or water to condense with no way out.
I always assume the opposite.

They have at least touched Elixir code but most of your time will be spent maintaining and/or writing Ruby apps.
If you could establish a secure channel, perhaps?
I'm 19, i am still studying as xybersecurity specialist but i am not sure i would work as this. I am going to try myself in any different working style
Paedophiles were making sexualised comments to children in Youtube comments. Advertisers were unhappy. That doesn't seem particularly overblown.
> It is really shitty that there is no credit or attribution whatsoever

As pointed out on Twitter, the Footpath app isn't complying with the attribution guidelines for the OpenStreetMap data that it uses:

https://twitter.com/iamnunocaldeira/status/11011052697933086...

OSM requests that "for a browsable electronic map, the credit should appear in the corner of the map". Footpath doesn't do this. It hides it away on a credits page.

Using the volunteer work of thousands of mappers, then refusing to comply with their stated attribution request, is really low. I had a lot of sympathy with Footpath before I realised this.
This very much depends on what part of YouTube you tend to be in. Much like any online massively-used portal, different segments of videos will attract vastly different users and types of comments. There is somewhat of an over-generalization of YouTube comments, where the description of toxic comments seems more accurately applied to truly /viral/ videos: those that have broken beyond normal segment boundaries, and where the 'best' comments are perceived to be those that draw the greatest reaction, as opposed to genuine commentary on the video itself.
Well, the people leaving the comments aren't actually doing anything illegal. Nor are the people that aggregate these videos with the intent to appeal to pedophiles. That's what makes this such a difficult issue to combat.
That doesn't mean they can't or shouldn't be investigated.
1. YT has problem that generates a lot of bad press and loses money/face.

2. YT develops either easily-gameable or far-too-heavy-handed automated solution to said problem, because they can't afford to actually police their content.

3. Passionate creators (that don't get struck down mistakenly) have to jump through ever more hoops, while ad $ flocks back to YT.

4. Repeat steps 1-3.

Granted, I don't really see a solution, as their's just straight up too much content and it's ever growing as the barrier for entry is just an internet connection.
Ah, thanks for pointing that out!

It appears that he saw demonetization and mistook that as deletion.

That said, for some channels, demonetization means effectively shutting down the channel.
Nice article because threads about Blockchain systems are very usefull
This is actually a decent article.

> "
If a deeply good person crusading for a better world enters Silicon Valley, she’ll find herself surrounded by deeply good people crusading for a better world. She’ll see mobile apps that track tropical diseases, clean energy startups that fight global warming by directly sucking carbon dioxide out of the air, companies bringing microbanking to poor Nepalese villagers, and boutique pharmaceutical labs searching for cures for orphan diseases.

If a futurist enters Silicon Valley, she’ll find herself surrounded by futurists. She’ll see neural nets and deep learning, reusable rockets and flying cars, high-throughput genome sequencing and CRISPR, metamaterials and nanotechnology.

If a social-media-obsessed narcissist whose view of the world begins and ends with his own Instagram page enters Silicon Valley, he’ll find himself surrounded by social-media-obsessed narcissists whose view of the world begins and ends with their Instagram pages. He’ll see a bunch of streaming video services and Uber-for-hair-products apps and elite pay-to-play dating scams and people trying to disrupt the gymwear market.

And if one of those people who talks about “the cloud” all the time enters Silicon Valley, he’ll find himself surrounded by people who talk about “the cloud” all the time. I have no idea who these people are or what they’re doing, but they all seem really happy with each other and I’m glad they’re enjoying themselves.

They’ll all have their blind-men-and-elephant view of what kinds of things Silicon Valley “does”. And they’ll all be sort of right.

(thinkpiece writers: “Can you believe that Silicon Valley only makes products for shallow elites obsessed with the latest fads? It’s the strangest thing!“)
"
It seems to sit somewhere near Dreamweaver did in the before-times. That had a big following among people who didn't want to code but were up for learning a fiddly, slightly technical tool that was at least broadly wysiwyg.
This is true everywhere in the sense that there's absolutely no upside to giving someone a bad references. About all you can do for someone terrible is confirm factual data and refuse to comment on any opinion based questions. The requester can't even interpret that as a negative endorsement because lots of companies only do the same thing for good candidates.
That child does things that are far too dangerous for not having parental supervision.
I am somehow disappointed that the lens was actually just "your average lens size", and not really ... an iceberg infront of a camera.

I don't know what I expected.
Technical lessons from building a compiler startup for 3 years
I appreciate the honestly in this answer, and your willingness to accept how people see something you clearly seem to care about.

As for commercialization of Ayurveda, I see this as exactly what's happening now with Patanjali etc trying to cash in on people's trust in their culture without providing a proper research base for their claims.

Another reply to your comment above makes very good points about research funding, and in my experience, funding is to a large extent non partisan, and free from industry influence. There are even rules on disclosure of funding about major studies, which makes it possible to criticize them.

I only wish that Ayurveda is held to the same standards as other medicine, and passes through the fire of testing the same way all modern medicine has. It's how we know that antibiotics work, or about interactions between medicines, or about side effects and complications. It will ultimately benefit the field, and medicine as a whole.
For what? They haven't done anything illegal.
Honest question: Has there ever been an example of mass internment, non-activists "disappearing" and other things like we're seeing in Xinjiang that wasn't followed by genocide?

Edit: Genocide is probably the wrong word but the point is that events like we're seeing in China tend to be followed by other event that leave a lot of people who'd done nothing wrong dead.
Write your advisor a brief note of thanks, would ya?

Sticking one's neck out for a thing like that, even with a bunch of other necks, could be a harrowing thing to do. I appreciate their courage in sticking up for this.
YT also ask for referns so they can correct the faulty information.

If i understand the twitter thread correctly, he referens that ads can decrease, and this somehow in his mind means that YT will delete his channel...

Edit:
In my world, that is called a lie.

And well, who wants to advertize if the comments is full of pedophils?
I heard about mokacoding site and this article was too interesting especially for me so i will follow and wait for the next one about software optimization
The politicisation of white evangelical Christianity is hurting it – Flocks away
I will give you a few examples. My knowledge of Ada is insufficient, so I'll let you tell me whether Ada can solve that without using an external prover (note: being able to use an external prover is great and I haven't seen this done in Rust yet :) – but that's not the topic at hand).

1/ Consider a file `f` (or a socket, etc.). Using the standard library, Rust will statically ensure that, once the file is closed, you cannot attempt to, say, read from it. This is nothing special to files, just an aspect of the borrow checker.

2/ Consider a communication protocol. You need to send a message `HLO`, expect a message `ACK`, then send something else, etc. It is pretty easy to design your objects such that the operations of sending the message, receiving the message, etc. will change the type of your protocol object, ensuring statically that you never send/expect a message that you're not supposed to send in the current state.

If you're curious, I wrote a blurb last year on the topic: https://yoric.github.io/post/rust-typestate/

3/ I quickly googled "Ada spark phantom types" and didn't find anything. Does Ada support phantom types?
You can't easily retrofit spray foam though. Either the drywall or sheathing needs to come off, unless the cavity was empty, and even then it doesn't fill evenly if sprayed in a single hole.
What? Is it 2006 again? I mostly watch photography videos and vines/weird videos, and the comments sections are often fun and sometimes informative.
The World Is Losing Fish to Eat as Oceans Warm, Study Finds