skysight-inc/HackerNews huggingface dataset:
Putting money in a savings account is still investing, which is why you're earning interest. What I meant by "stuffing the money in a mattress" was actually taking it out of circulation. I didn't meant to imply that this would be more profitable than investing, just that it would still be a net benefit to others since you're not using that money to bid up prices on things they might want to buy. Same amount produced plus less money in circulation equals lower average prices.

> How does a company see a direct benefit from already sold stocks?

Normally when you buy shares in the stock market, other than from an IPO or secondary public offering, the company doesn't directly benefit from that trade. The company received its benefit up front when it sold the shares. Of course no one would have bought the shares if they didn't expect to be able to profit from them, either by selling to another investor or through dividends, so the fact that a market will exist is critical to any company looking to raise capital by issuing shares to the public. A high stock price is also beneficial to any company looking to raise funds through a secondary public offering, and may translate into actual revenue for capital investment if the company holds some of its equity in reserve.

What I really had in mind, however, was not buying existing shares from other investors in the stock market but rather venture capital, IPOs, private equity, and the purchase of corporate bonds. In each of these cases the investment directly injects money into the company where it can be put to work enhancing productivity.
Ever since they introduced Career and Science modes, I've been using them as a guide to ease out the otherwise overwhelming choice of engines and fuel tanks. Having to unlock the tech tree not only makes the vanilla game somewhat more pleasant (and suitable for roleplay) - my now unburdened psyche can suddenly deal with tons of more parts coming from mods.
... In that Empire, the Art of Cartography attained such Perfection that the map of a single Province occupied the entirety of a City, and the map of the Empire, the entirety of a Province. In time, those Unconscionable Maps no longer satisfied, and the Cartographers Guilds struck a Map of the Empire whose size was that of the Empire, and which coincided point for point with it. The following Generations, who were not so fond of the Study of Cartography as their Forebears had been, saw that that vast map was Useless, and not without some Pitilessness was it, that they delivered it up to the Inclemencies of Sun and Winters. In the Deserts of the West, still today, there are Tattered Ruins of that Map, inhabited by Animals and Beggars; in all the Land there is no other Relic of the Disciplines of Geography.

purportedly from Suárez Miranda, Travels of Prudent Men, Book Four, Ch. XLV, Lérida, 1658

-- Jorge Luis Borges
I wonder what other sites are seeing this, Reddit and Instagram are pretty obvious Quora perhaps?
Indeed. Vietnam and Africa are the new "cheap labor" hot spots.
this is significant when you consider historical context. this was a common view held in the 50s, but over time, maximizing shareholder value over all stakeholder value became the dominant concern. it's good to see the intent swinging back. sure, it's just words right now. when we see worker salaries grow to take up a larger piece of the pie, we'll know they mean it.
I think this may be a bit of an exaggeration. It's true that people socialize more in the subway than they used to, now that they can send WhatsApp audio messages to their friends instead of reading a novel. But the grocery store half a block away still sells food in much the same way they did in 1994. Bigots still yell at me on the street to go back to my own country. Most of the workforce is still employed rather than gigging, financially independent, consulting, or riding the purple wage. International money transfers still take a significant percentage, unless you use Bitcoin, which most people still don't accept. Elections are still being won by polarizing populists who promise paradise and then pick your pockets; here in Argentina, Cristina Fernández de Kirchner even kept the records of her illegal wiretaps in paper form in the secret vault under her house, facilitating access to them against her will by the police. (And that didn't stop her from getting re-elected last week; her opponent also has a history of illegal wiretaps.)

You'd think that universal access to all human knowledge would have remade society, but actually most of the humans don't really seem to care about knowledge. We got the Arab Spring, which turned into Daesh, the Syrian Civil War, and a new military dictatorship in Egypt. (And we got anti-vaxxers, global warming denialists, and "jet fuel can't melt steel beams.") Wikileaks didn't really move the needle on Obama's re-election. If cheap, ubiquitous, networked computing is rewiring the power structures of society, that's more because of Russian trolls and Twitter bots than anything else.

Probably the changes you're talking about will come. But I'm not convinced that it's a revolution that cute girls on the bus give me their Instagram instead of their phone number.

(See https://news.ycombinator.com/item?id=20741592 for my thoughts on other, more positive possibilities of modern informatics.)
> If you get $10 worth of enjoyment out of a really good chocolate bar, and you can afford it, then it's perfectly reasonable to do so.

I think the insinuation here is that the purchasers of this chocolate are deriving their enjoyment of the product from the knowledge that they paid $10 for it, or from being able to tell somebody they paid $10 for it, not from the quality of the actual chocolate.
It’s random. You might as well read chicken entrails; at least then there’d be less racial and gender bias in the process.
gcc has some attributes to help with that, for example try __attribute__((pure)) on funcs that will always return the same thing for the same inputs (given the same global state) and do not modify said input or state (and thus can be called more or fewer times than programmer wrote). Usually gcc will be quite aggressive with optimizations if you use that.

For even more aggressiveness, try __attribute__((const)) which tells it that the func accesses NOTHING but the params, not even global vars. Of course this is quite limiting. You can also use this as a trick when YOU know that the only accessed global state is itself constant but gcc does not know that. This can produce substantial savings in number of calls of funcs that, for example, do lookups in large constant data tables, like table-based versions of sin() and cos().

In the example the article gives, adding __attribute__((pure)) to constFunc() does produce the behaviour author wanted and then some

LWN has more: https://lwn.net/Articles/285332/
Did anyone else play with the gravity simulations to try to send the moon flying around like crazy?
I laughed, I cried, it was better than "Interstellar"
Thank you, that is an interesting way to look at it, and makes a whole lot of sense! I guess it should be amended by "meaningfully talk about", but I get that from context.

To be honest, the process of writing a CV is mostly painful for me because I have to evaluate myself and feel quite inadequate. At the same time, I have multiple companies wanting me despite not being very good, so my actual chances are really good. Software development in Germany is going crazy at the moment.
Yes, but as I mentioned it is not surprising that there is genuine support even if some of the comments may not be real. There are many Chinese living abroad.

I'm thinking it may also depends on which channel you're looking at. This one is essentially a government one and so may be followed by people who tend to be sympathetic.

There are also quite a few negative comments.
I'm a few pages in and with found it fascinating, humorous, compelling and understandable even with zero background in the field. Thanks for sharing.
Even in 4 year olds, though? And such that it produces the exact opposite effect compared to the control?
AFAIK they switched to a multithreaded physics engine some time ago, during one of the Unity version bumps. Can't test it now, but my vague memory of looking at htop when playing recently seems to agree with that.
"Cloudflare Workers respond very quickly, typically in under 200 milliseconds, when cold starting. In contrast, both Lambda and Lambda@Edge functions can take over a second to respond from a cold start." Also included network latency, and maybe some bias.

https://www.cloudflare.com/learning/serverless/serverless-pe...
Like any ordinary comparison, they are silent about items not included in the comparison.

Please share your comparison of every programming language implementation.
You won't need to read a textbook or anything, but you'll want to invest more than an hour or two before you make orbit for the first time.

The great thing about this game though is that it teaches you orbital mechanics in an intuitive and fun way, much better than reading a textbook full of vector calculus ever could.
Can you describe the ones you most remember? I see the image but I'm more interested in your (memory of your) subjective experience. What level of creative freedom did you have in the interactivity?
And then you pronounce the resulting pile of wreckage the first Mun colony, and set sights on Minmus, which is somewhat more forgiving.
It talks about Google Search and the Google tools pointed to are good at telling you how Google search will react. But, things like the Internet Archive and other search engines are not going to be as good with the Full CSR apps.

For those here who use other systems like DuckDuckGo that makes a difference. I really started to notice this when I visited some sites (not apps) via the Internet Archive to get old versions and found things broken.
Disclaimer: I'm not an expert on the proposal, but have looked at it some, and can offer my impressions here. (Sorry, this got a bit long!)

The C++ proposal definitely attacks the problem from a different angle than Rust. One somewhat surface-level difference is that it implements co_yield in terms of co_await, which is the opposite of Rust implementing await in terms of yield.

Another difference is that in Rust, all heap allocations of your generators/futures are explicit. In C++, technically every initialization of a sub-coroutine starts defaults to being a new heap allocation. I don't want to spread FUD: my understanding is that the vast majority of these are optimized out by the compiler. But one downside of this approach is that you could change your code and accidentally disable one of these optimizations.

In Rust, all the "state inlining" is explicitly done as part of the language. This means that in cases where you can't inline state, you must introduce an explicit indirection. (Imagine, say, a recursive generator - it's impossible to inline inside of itself! When you recurse, you must allocate the new generator on the heap, inside a Box.)

To be clear, the optimizations I'm talking about in the blog post are all implemented today. I'll be covering what they do and don't do, as well as future work needed, in future blog posts.

One benefit of C++ that you allude to is that there are a lot of extension points. I admit to not fully understanding what each one of them is for, but my feeling is that some of it comes from approaching the problem differently. Some of it absolutely represents missing features in Rust's initial implementation. But as I say in the post, we can and will add more features on a rolling basis.

The way I would approach the specific problem you mention is with a custom executor. When you write the executor, you control how new tasks are scheduled, and can add an API that allows specifying a task priority. You can also allow modifying this priority within the task: when you poll a task, set a thread-local variable to point to that task. Then inside the task, you can gain a reference to yourself and modify your priority.
> The issue yourself and others who haven’t used Encarta is that you’re thinking about it as purely a text document store, which couldn’t be further from the truth. Encarta is more like a museum than it is like Wikipedia. It has a smaller curated set of write ups but has all the interactive exhibits, games, and multimedia content that a good museum has. Wikipedia is about breadth of content where as Encarta was about engagement.

I do have used Encarta, and I really enjoyed it. I felt like you were talking about pure content quality, when it was (as I understand) rather about the way that (good) content is presented. If one had the time and tools to make games and interactive interfaces from Wikipedia’s content, do you think it could eventually match the Encarta experience? Some WP articles have videos/sounds/gifs but I find them too rare.
General Electric Patented a Living Organism
cash fuels orders of magnitude more illegal activities. It’s hypocritical to go after crypto to solve illegal activities problem when you havent solves them for cash or at least brought down to crypto levels.

And lastly - “let’s ban bitcoin because bad people do bad things” is the same argument as “let’s ban encryption because bad people communicate bad things”.

If you’re for government control of every aspect of your life, if you’re for asking permission to transact or communicate - we just have completely different world views.

Unfortunately there is no middle ground - either you have security or you are backdoored. Either you have financial freedom or you don’t.

Governments should target bad people not genuinely useful tools used by bad people. I don’t care that it’s hard - that’s what I pay taxes for, not to yield control over my life even further.
> That’s the kind of short sighted thinking that’s going to kill most of us.

No, the kind of short sighted thinking that might cause civilization to collapse is trumpeting gloom and doom based on inadequate knowledge and failed predictions. The climate models on which the alarmist hype is based have been falsified by the data. And nobody even has predictive models for economics on that time scale.
Bitcoin’s chance to proof it’s value in the real world just come
Futures were developed outside Rust core, in a third-party library, before being brought into the language. Working with them in combinator form definitely was less ergonomic, but async/await fixes that.
>You're talking about two different things. In this case, you'd use...

No, I'm talking about the behavior of const.
At the time Unity was a reasonable choice; a mix of decent licencing terms at different scales and cross platform support (even if it used to be wonky, it might still be TBH).

I've heard that Unreal's cross platform support matured in that time and I recall that Unity made some headlines for less progressive changes to their licencing terms... within the last two years I'd like to say?
The key difference between `const` and the `register` and `inline` keywords is that, despite all of them often flagging optimisations that the compiler can often work out anyway, `const` still aids human comprehension by declaring constraints, whereas the latter two do not.

It seems that interprocedure optimisations in modern compilers make a lot of const-by-reference optimisations apply even when the code is mutable-by-reference in the parameter list but the function body doesn't modify it in practice. This would only work if it could deterministically work out which function is called.

Local constant stack values surely can be completely deterministically verified as such by the optimiser even without the `const` modifier. They could be overwritten without a C assignment to it, via the stack from a buffer overflow of an array next to it, but that's undefined behaviour so a compiler is presumably free to assume it is not modified, eliminate unnecessary register/memory loading code, and let the developers deal with the consequences.

As trailing `const` on member functions outlaws modifications via `this`, it would follow that the same optimisation-even-without-modifier process would apply as to `const` local stack values.

As constancy is a constraint that aids human comprehension, there's a good reason for choosing a keyword just as short as the mutable equivalent, such as Swift's `let` vs `var`; if the more constrained equivalent is equally or more convenient, more constrained and thus easy-to-reason-about code becomes more common.
The only thing I really remember was that MindMaze game.
Interesting that it's just an "8-bit look" but not really "8-bit". Code is written in Lua which will be either 32- or 64- bit depending on what platform the Lua interpreter is compiled on.

(From the name, I went to read the docs, because I thought they emulated an "ideal" 8-bit processor, too.)
I hardly ever bother optimizing my code anymore, with -O3 nothing I do ever really seems to make a difference.

The real reason to use "const" is to show intent.

See "Const and Rigid Parameters" in this wonderful article about the Doom 3 source code: https://kotaku.com/the-exceptional-beauty-of-doom-3s-source-...
Does it enforce these attributes or are they just a promise by the code author?
We can dance around semantics, the point is corporations cannot do things that shareholders collectively find as bad for them. For example, corporations cannot benefit employees at the expense of shareholders. If management decided to write a big fat check to employees and shareholders didn’t agree, they can call an emergency meeting cancel the check, fire management and appoint new management.
Yeah, absolutely, if you're only buying it for conspicuous consumption, that's silly. I just felt like mothsonasloth implied that it's fundamentally dumb to pay more than a few dollars for a chocolate bar.
Interestingly,

2017 version: 170 mb

2018 version: 1.6gb
const_cast risk is not why the compiler emits a reload. Indeed we don't even need to pass x to constFunc to get the reload: see line 7 in https://godbolt.org/z/TjmWxL

Consider that `x` may point to a global variable which `something` may modify. That is why the reload is necessary.

edit: I just realized that the reload would be necessary even without an intervening function call. https://godbolt.org/z/QhVzlV

Consider that `x` may point to errno; then printf would modify it!
In 1995-1997, I wrote and maintained an application that was used, during every surgery, in critical ways in every operating room in a large, regional hospital.

This app ran on a regular computer running normal Microsoft Windows 95. It wasn't terribly complicated, but it also wasn't simple. It accessed a database over the wired network for most everything it cared about doing.

It took some thought and care, but it wasn't impossibly difficult to ensure that the app was always highly responsive.

I think it comes down to priorities. I worked closely with the doctors who were actually using this app on a day to day basis, and working with an app that didn't slow them down was quite important for them.
On some microcontrollers, marking variables/arrays as const allows the compiler to access them directly from flash rather than having to copy them into RAM at startup.
I used this to great effect on a PIC24 with 256KB flash/16KB RAM.
Are you offline for the other two days? It may not affect you much but "You can't schedule meetings with me or get answers to questions on Monday or Friday" tends to have an impact on other people in most jobs.

Do you get 75% pay for 50% work? Based on no particular experience, it seems that would be difficult to sell.
Now I want to build a giant tangle of lander modules with solar cells and batteries attached and crash it into the Mun to see how many viable "colonies" I can create at once.
People on rescue ship off Italy at breaking point, say doctors
Overhead Garage Storage
Maybe, but one thing is certain:

For the US they have a unique challenge: they can freely attempt to mitigate propaganda and manipulation by the Chinese ruling party and it's backers because they are not physically in China.
Corruption Across EU 'Breathtaking' – EU Commission
Which means we should be spending resources on making our society more robust: getting more people out of poverty and making our infrastructure more resilient. That will make it easier for people to adapt as compared with those previous times when virtually everyone on the planet was poor and there was no infrastructure at all to speak of.

But climate change alarmists aren't telling us to do that; they're telling us to take all the resources we could be spending on those good things, and instead squander them on draconian efforts to curb CO2 emissions based on models that have been falsified by the data.
Curious: what prompted you to get interested in chocolate making? Anything interesting and not-obvious you have discovered or learned so far?
Looking like a no so far:
https://forum.kerbalspaceprogram.com/index.php?/topic/187315...
People are complaining a lot about how FB are enforcing things, and why they are explicit about their decision to remove these things was not based on the content, but the patterns of inauthentic activity and fake accounts.

Look what happened with Matthew Prince of Cloudflare. Relentless harassment from people who believe he should be more active in censoring his customers, especially after that last shooting. Even when he has reluctantly stepped in on some extreme cases, they still gave him no credit. Defining wrongthink is a slippery slope, and you’ll never make ideologues happy. If you even try, then next thing you know, you’re somehow culpable for everything you didn’t remove, or didn’t remove quickly enough. Then you get accusations of endorsing it, because you removed X but not Y, so you must approve of Y, right?

And where does it end? “Sprint are ‘literally Nazis’ for allowing David Duke to have a cell phone?”

It’s no wonder everyone is deathly afraid of policing based on content. The PR consequences are bad enough, but it’s also likely to lead into legal problems as well.
Shouldn't they replace all the content with, at least, a short note saying what was formerly here was part of a "coordinated inauthentic behavior" and that the individuals representing themselves here were not real?
Heads up that this might get flagged since it's a blog post:

https://news.ycombinator.com/showhn.html
One thing that is super impressive about these protests (other than the sheer number of people) is the lack of looting, violence etc (not counting police violence on unarmed people). Very very impressive. Compare this with French riots etc in recent years - night and day!
Is Encarta open source? Microsoft might be open to allowing it to be integrated into Wikipedia.
I replied that way because, if we moved this to a tech subject, people here would be horrified at your definition of "effective".

If someone produced an insulin pump that you implanted, worked perfectly for life, but killed 1 person in 1,000 randomly, people would be screaming for the head of the CEO of that company rather than calling it "effective".
Actually, considering I'm learning C and pretty much enjoy the process, I'm thinking about doing some game dev for some of the retros. NES and SNES are pretty fun platforms, I'll probably use Assembly for NES but maybe I can use C for SNES?

It's always fun to do some low level stuffs in these days.
I guess you're not familiar with how cloud services work. There's (generally) plenty of excess capacity.
Hour or two is 1-5 "missions", depending on complexity of your craft and planned flight. However, you'll quickly discover you want to do "just one more mission", and suddenly it's 5:00 AM.

As for math, you won't have to read up much - KSP is the ultimate textbook. Watch some introduction videos by Scott Manley or whatever the community currently recommends, and fire up KSP. Make your first orbit, then first transfer to Mun or Minmus, then back, learn to change planes, intercept objects and dock... you won't even notice when you've gained intuitive understanding of basic orbital mechanics.
Popular Courses to Study 2019