skysight-inc/HackerNews huggingface dataset:
On top of the sibling comments pointing out that Rust doesn't use LLVM coroutines, which allocate each coroutine frame by default, you misunderstand the control flow of Rust async functions:

A Rust future is also "responsible for making sure that it gets resumed appropriately if it suspends." Rust's await is even cheaper than C++/LLVM's- it doesn't do anything with an event loop either; it just returns, without atomically messing with any coroutine handle (which doesn't exist).

Further, Rust futures are poll-based, not callback-based. Your bullet list looks like this:

* Function call to the main entry point (which is really more of a constructor)

* The future creates its frame as a value type (not as a heap allocation) and initializes it with the call arguments

* Function return (not a suspend, because it returns an initialized future rather than Poll::Pending- so again more of a constructor return)

* (sometime later, often immediately) Function call to `poll` (initial resume)

* `poll` executes until a suspend point (function return)

The initial call to `poll` can happen because the constructed future was put on the event loop and scheduled, as you describe, but it can also happen merely because its caller is also a future that is already running somehow.

Also, note that "the event loop" is a rather loose concept here- it's just "the thing that calls top-level `poll` functions." The language doesn't ever submit anything to it, or signal it, or anything. Each call to `poll` receives a handle to that top-level caller, and each leaf future stashes that handle somewhere that will signal it when it's ready to resume. This even works in embedded microcontroller scenarios.

And finally, your eager execution example is addressed in Rust in two ways:

* First, ownership and the borrow checker prevent dangling references like this statically. In your particular case, the caller would increment the refcount as part of cloning an `Rc`, and then move the clone into the future. (Unless, of course, the future was short-lived enough, and you decided to take advantage of that to pass in a `&'a Value.Fn` instead.)

* Second, because future construction (the first three bullet points) and future execution (the last two) are decoupled, you can write your own function that does any extra construction work in the cases that it's actually necessary. For example, using Rust's syntax for async blocks:

pub fn render_to_llvm(.., fn_val: *Value.Fn, ..) -> impl Future<Output = ()> {
fn_val.base.ref();
async {
defer fn_val.base.deref(comp);
// ...
}
}
Blockchain can solve IoT concerns?
Nuclear please.
Trying to win the lottery is not a good life goal.
I have opened myself to almost everyone near me.

No one can help but me.

The shame and guilt is deep inside me. It's me who's lost now. They try to be there but still...
> Then they can say "Yeah man, SAP sucks, soooo inflexible, I argued against it but what are you gonna do, changing it is really expensive, I guess we'll just have to do it their way" and message boards fill up with complaints about how inflexible and expensive SAP is. Funny how that works!

Scapegoat as a Service. I wonder just how common this is in practice.
Almost nobody here is interpreting this correctly. Debt gets sold, and buyers are signaling that they believe they will be repaid in an adequate manner (stable government, currency) and that maintaining reserves to the currency of that nation is desirable.

This is exactly what you expect to see happen as China further eclipses the US as the world's largest economy and the renminbi supplants the dollars as the choice of reserve currency.
> As someone at hopefully an early enough age who hasn't had any (known? -- since there's never any certainty with it) outbreaks

Not sure what you mean by “there’s never any certainty with it.” You can get tested for HSV1 as part of an STD screening. You just need to ask for it.
Twitch replaces TV and competes with YouTube and Netflix time for me. I watch it in a lossy manner, where it's usually on while I work from home. The only time I'm watching Twitch in a lossless manner is when a Starcraft tournament is on, and in that case it feels exactly like watching back to back hockey games: about 5-6 hours of competition on a weekend.
Yeah I absolutely agree that in many cases tests become more of burden than a help, but I think that isn't a problem with testing but with it's application.

It's just an extension of your code, if you are going to throw some code away to change an interface, then throw the tests away too. If you are afraid to do that because of the time spent, then you probably spent too much time on writing tests.

While I am dogmatic about tests, I also believe that around 50% code coverage is normally enough in most application codebases. Cover the important parts, the parts that are hard to test manually, the "core" pieces that lots of other areas rely on, and some tests for bugs that you want to prevent happening again.

If you want to quickly iterate, go for it! You shouldn't have all that many tests in the parts you are changing frequently. But to change a core aspect of the codebase, or a really complicated aspect of it, then the extra work of rewriting the tests shouldn't be all that bad.

I'd shorten your last statement. It's foolish to prioritize dogmatic beliefs. Everything has a time and a place, and moderation is key.
No, that’s some nut who lives in the urals. The proposed state of Jefferson has been ongoing since a while. The last serious effort was before wwii, so it got derailed by a national emergency.

The current three way split is funded by some billionaire guy. It’s actually not a bad idea. The rural interior has way different needs than the coastal areas. Kind of like the downstate upstate dichotomy NY suffers.
Sometimes I see people playing an old indie game I love and watch it for like 20~30 min. I don't want to invest in playing it again; I've already played it several times before..so with twitch I can watch someone play for a few min to burn some time.

I worked with one guy who'd keep StarCraft competitions playing in the background on his third monitor while he coded all day.
Also advanced, but quite readable: https://www.amazon.com/Discipline-Programming-Edsger-W-Dijks...
Thanks for correcting me on quality. I'm getting confused because often the H.265 releases have low bitrate 2.0 audio compared to high quality 5.1 in the bigger file releases. They're optimizing for size, not fidelity. (I'm blessed with a tin ear and tin eye.)
I'm a huge fan having used HMR&C web portal from overseas, the sea-change in how good the UI is, and data collecting on what we want from the UI is also impressive.

I set myself low-bar goals measuring government engagement. The Australian whole-of-government portal is abjectly awful, it has well done 2FA but continually nags me with badly designed 'do we have your permission' and 'remember you're talking to government' intersititials.

State government planning web, uses a web design method which is simply unworkable on touch: the 'permit us to say we want you to agree to terms and conditions' overlay won't scroll. when the underlying page does, so the [agree] button can't be pressed because its off-screen. Gak!
QA let's you build a robot to tighten a bolt, then build a robot to test the bolt is tightened and repeat as needed. It's inherently output focused.

However, the lady designing the factory in the first place should know if tightening bolts or using an arc wielder has more issues. So sure, QA should include checking the oil level inside a robot in the factory to avoid problems in the first place. But QA is not all inclusive it's not for example part of the collage education that's training your workforce other than perhaps a requirement that they have said degree.
Our Los Angeles cloud region is open for business
The first case there is even officially sponsored by Twitch. Their live dashboard page, by default, embeds a muted output of your stream (among chat and other controls).
> I do. C++ is an excellent example of accidental complexity got out of control. Actually, C++ complexity has been a main reason of why Google created Go. And Go embraced pursuit of minimizing accidental complexity at its best.

Fair enough, but every HN thread about C++ isn't flooded with non-C++ devs crawling out the woodwork to complain about it being too complicated from a position of ignorance.

I've been working in and out of the web industry for 14 years. Until 2014 I was a Adobe Flash designer. I learned modern JS and web development in 2014, before that I had never written a line of JS or CSS commercially, and never opened a unix shell - it took me half a year or so of effort while working other freelance gigs. Other devs that complain about it are either are ignorant, or not willing to put in the required effort to learn something worthwhile.
I think this is important. One of the most career oriented people I know, call him a mentor of mine, kept entire binders full of everything he did. Every accomplishment. He prepared for performance reviews like he was going to war.

As a manager I suggested to my reports that this in addition to proving your work, it also helps as a way to understand whether you are stagnating at work, or continuing to learn and evolve.
You can live like a king on $72,000 a year in the midwest, and the bonus is that the northern part gets so cold in the winter that there's not much else to do but work and stream!
The fruits of the paradox of choice. Many despised (not me) the limited choice of TV curating content. Now every god damn group on earth can have it's tiny little channel in the background.
Thanks for your review! I passed along the goods words to the designer of Cheee, I am sure he is delighted.
Interesting story on Adobe Type history! The good old days!
I think you're referring to this: https://jgthms.com/web-design-in-4-minutes/
>> a very market oriented approach, not a silly idea.

Market approached only make sense where they work. They quickly become silly when the market no longer supports the end goal. A dramatic reduction in the cost of some fossil fuels, which could happen should we all stop burning gas in our cars, may make any market approach seem very silly.
Yes, even my better half liked it who is not into SF at all. I'm not a huge fan of SF either, but I love Philip K Dick, and Ubik is probably the best book to get started with his work as it is quite funny.
Unit tests can be hard to maintain for several reasons. When you refactor your code (renaming methods, changing parameters, splitting methods up, etc), you will need to update those tests. Also some types of unit testing can be more brittle then others. For example if you use mocks to invocation counts, refactorings can be even more costly.
Just curious, what's the memory footprint on the encoder in real life?

Do different video encoders, for the same codec, and input produce different outputs, or is the algorithm specified in a way where it produces the same results for two given inputs, no matter what?
Yep. I get almost no one finding me when I play hearthstone, but I always have ~10 viewers when I stream speedrun attempts of popular snes games. It really is a matter of finding your niche when you start out.
Can it be shared to a non-Mac, or is it a bundle (directory) that Safari has special support for navigating?
If you use Akamai's CDN you can get per-browser auto image optimization (size, quality, format) as an add-on service via Image Manager.
Maybe ads are slightly more effective if you spend less time on the screen. Less ad-blindness, etc.
I'm not seeing a strong indication that this is a scam, though. Prices vary and some sales are better than others.
Another thing about the TV analogy; when TV was only broadcast, many people (well, at least I...) would end up not watching an entire series. You turn on the TV and find out it's episode 3 airing tonight. What do you do? Just watch it and figure out what's going on via context, or try to hunt down someone who has a VCR and already taped episodes 1 and 2?

Twitch in some ways is more like those old days. I follow several streamers fairly closely. And by "fairly closely" I mean "they stream several hours a day and I probably watch 20 minutes of it, amortized over time".
If it's not in archive, you will NOT find the old HTML at all, whereas old PDFs are usually easy to find because someone will have it.

In addition saving web pages is a huge pain with all the scripts and CSS to save as well, so then you need to compress that.

At last, saving and browsing saved HTML is a pain on mobile and similar devices without a specialized tool.
Typo-fixed.
A Photonic Circuit for Quantum Computers
Show HN: Timely – See how much time you're spending on Facebook in real-time
The vast, vast bulk of things that people own they use a small percentage of the time. To be sure, cars are expensive, their storage may be expensive in some locations, and at least some people are fine with just renting a generic car. But just observing that something isn't in use a high percentage of the time doesn't really tell you anything about whether it makes sense to own vs. short-term rent.
This one finally made some things about how fonts play in the web more tangible to me. the bounding box and three choices of rescaling/sizing made this much more clear to me, felt intuitive.

Felt like the font catalog was small. Some back info about what fonts this can play with, and why, and how to add more would help

(not a typography or font expert.)
What specifically would be easy for you to call progress?
At least it used to be said by China experts that the army was built to suppress internal dissent and not to repel foreign invaders, and certainly not for foreign wars. Since then China has invested heavily in rebuilding its military but I don't know how that mission of the army has changed.

China's geography, size, and population makes a foreign land invasion very unlikely, beyond some strips of land disputed with Russia and India or a tide of refugees from North Korea. Think of how expensive and difficult Iraq and Afghanistan are for the U.S.; China would be orders of magnitude beyond that.
If you expect to get it right (in this particular prediction, Clinton to win) with 95% probability, what does it mean to say that this 95% is with low confidence or with high confidence?
> So, the reason because the US doesn't invest in infrastructure is because the ROI is not high enough?

The reason the US doesn't invest in infrastructure is because the benefits go to everyone instead of a specific party interested enough to lobby for it.

The ROI is the much the same in the US as it is elsewhere, provided the investment is made where it's needed rather than on pork barrel projects. For example, the value of building a bridge is X, but that's also the value of maintaining/replacing it because if it collapses or has to be closed for safety reasons then you no longer have a bridge. Moreover, you can productively build things like new subway lines in cities that are growing because that's where the demand exists to justify the cost.

The lobbying problem is where we've started to see this "public private partnership" scam show up. Then you have a specific party interested enough to lobby for it, but it's because they intend to rent seek on public infrastructure by taking the public's money and then putting up a gate and charging them a second time for admission. Because $100 is a lot, but if you pay $75 in taxes and $75 in tolls then it's less, right? And if that discourages productive use of sunk cost infrastructure and is a regressive tax on the poor, let's try not think too much about that.
No tax revenue != no revenue. They also have assets.
I've toyed with having a "Watch me Linux" stream where chat shouts out things they want to know about Linux and I show them / help people with their Linux problems.
This. I also enjoy video games and often read up on trends and news... unfortunately I have little to no time to really meaningfully play them. I enjoy watching people who have gotten really masterful play the games I have read about. Not unlike sports.

I also watch things like the Games Done Quick marathons. Those are mostly people who have dedicated themselves to a few games and are mostly interested in completing them in insanely short periods of time. People often spend years dedicating time to shaving off minutes... I would never do that... but I am glad someone does.
Umsatz means revenue not profit
Same boat. I find a chill streamer that doesn't talk much and plays a game I like. I set the TV to 30 minute timer and watch for ~10 minutes before falling asleep. This is similar to people that fall asleep to shows they like -- see https://www.reddit.com/r/Futurama_Sleepers/
Sometimes I visit a project and drop all public images (logos, icons, stock photos, whatever) in the project in imageoptim. 75% reduction in file-size for some images is not uncommon.
Also, slightly less advanced:

A Discipline of Programming

https://www.amazon.com/Discipline-Programming-Edsger-W-Dijks...

For more practical fun, consider Frama-C, SPARK, and Dafny.
Reading the answers to your comment is kind of depressing (and that's a depressive speaking :-)).
I took a look at Koka and it doesn't look like what I want because I have to correctly specify the effects whenever I write a function signature. What I am looking for is a type system that would track these "implicit dependencies" but not force me to pollute all my type signatures with them. In other words, if the compiler knows the type is

function square3( x : int ) : div int

My code should be allowed say

function square3( x : int ) : int

Basically, the problem is that in most typed languages, if you add a logger dependency to a function, then you have to rewrite the signatures of all the functions that depend on that function. That sucks.
Chinas GDP is higher than that of the US if you take Purchasing power parity into account.[0]
[0] - https://en.m.wikipedia.org/wiki/List_of_countries_by_GDP_(PP...
I recently started using Twitch for poker streaming channels, but I also like to watch the video game play, since I don't have to go through any learning/skill curve to play any game myself - I can sit and watch play, and be entertained (team battles) or depressed (Assassin's Creed) with what players are doing with their time.

I'm definitely out of the target demographic for Twitch, but I consider it an additional entertainment channel when I'm bored of content in traditional media such as Youtube TV and Netflix.

Cheers
> Having watched the development of Rust closely I really think that the design team just didn't understand the theory side well enough to be able explore the design space here.

You might want to do a Google Scholar search on Niko Matsakis and Aaron Turon before making silly claims like this.
No idea. The few times I've used it, it's always been sent to other Mac users using Safari because their IT department doesn't let them use Chrome.

I'd be surprised if there isn't a similar Chrome feature. Chrome and Firefox usually have all the bells and whistles.
Customization is key, you CAN't customize. I worked on an SAP implementation, a Fortune 500 company, complexity like crazy, sub-companies, of sub-companies, of sub-companies, federal, state and local compliance for what the company did, operating in 50 states, with an International supply chain, and our integrator was nothing special.

We held firm to the NO CUSTOMIZATION rule, we re-engineered our processes to fit SAP. Other than a few hiccups when integrating all aspects of a company that has 100 sub companies, and is under federal, state and local regulation the project basically went off without a hitch.

They are still taking upgrades 6 years later, without issue.

Most companies think they are unique, and special, and feel justified in needed to customize, all those companies are wrong.
The Grateful Dead had a similar issue with trying to find gear at festival shows, so Owsley "Bear" Stanley and friends came up with the Steal Your Face logo.

http://www.thebear.org/GDLogo.html
You anticipated where I was going, which is mutable state + multiple copies of packages seems like a recipe for trouble.

So, I'm not sure how happy I would be as a user if my package installer bailed out and asked me to choose!

Out of curiosity, how do you mark your package as "only once" in cargo? I tried googling, and didn't find an answer, but did find a bug where people couldn't build because they ended up depending on two different versions of C libraries!

It does make wonder if MVS will solve real pain in practice. :-)
I'm fairly new to Twitch, and I do this. It didn't hit me until I had decided to take a break and play off-stream, and then something really cool happened, and it made me kinda sad that I didn't have a record of it. I would have had I been streaming...
But twice as long and articulated.
For at least some (perhaps many) businesses (especially small ones), leaving Facebook is not an option. Perhaps even more so for Google.
You can engage much more directly with smaller streamers. I used to seek out streamers of a certain strategy game with a dozen or so viewers and offer play suggestions. Usually little enough is going on (chat wise) that you can talk to the person about the game and specific decisions.

It can also be fun to just chat with like-minded strangers while a game is going on in the background.
oh come on, surely you are not suggesting the crash was deliberate?
Beats a lawsuit.

https://www.w3.org/WAI/bcase/target-case-study
I think the point is: it's harder to do those things properly in PDF format.

Also, I'm not sure how 'not designed for reading on screens'
is subjective. PDFs are paper-document oriented and don't display well for reading on anything other than a large size monitor in virtually every case I've seen. When delivering content in a web browser, why on earth would someone prefer to view PDF vs a reasonably well laid out HTML version?

I think PDFs are common in gov't websites because much of the internal culture is paper-document centred, and having those nicely printed PDFs solve internal problems for gov't employees, not because they are actually any better for the users of the website.

Canadian Gov't websites are full of PDF content too. :(
https://en.wikipedia.org/wiki/Jefferson_(proposed_Pacific_st...
A feedback control system, aka a "closed-loop" control system is one in which the actual output is sampled and compared to the desired output and the "controller" adjusts the system gain to reduce the error (difference between actual and desired outputs).

i.e., a portion of the output is "fed back" to the input to obtain that difference between actual and desired output.

Does that help?
ERPNext has been around for a decade now and doing quite well! https://github.com/frappe/erpnext.

Founder here, happy to answer questions.
KaiOS on the new Nokia 8110 runs old Firefox 48
The idea is that I want to add an implicit parameter (say a logger) 10 layers deep in some call stack. I don't want to update all the signatures in the middle 8 layers, but at the root level I should get an error if I haven't satisfied that logger parameter.

The idea is that the type system knows everything, but allows you ignore these implicit parameters if you want.
This is ... not even basic test engineering 101. This is remedial: understand the testing pyramid.

If you can take a 5ms unit test and verify with 80% confidence for a given feature, run that first before running at 5s system integration test that verifies it with 100% confidence.

You run both, because you run unit tests with a build/linting stage (something that can run synchronously with every commit, or close to it) and you run the integration test less frequently because of time/cost constraints (stable branch merges).

Even though they test they same thing, they serve different needs.