skysight-inc/HackerNews huggingface dataset:
I've had just a cursory read through the C++ vs C version. Constructors can never fail? Nope, exceptions. If you think constructors should never fail, I think you haven't used malloc.

Templates are complex? Compared to preprocessor they're child's play. They're meant to replace most uses of preprocessor.
Other compile time code like constexpr is not mentioned.

Exceptions are not mentioned yet are actually the most complex C++ machinery.

Scope changes are not mentioned but are critical to RAII and other useful anti-bug features.

That you can actually enforce compile time type safety is not mentioned either.

Lambasting the extra visibility keywords when C already has the nastiness of static, extern and inline is very peculiar. They are also essentially type safety measures.

C++ standard library which is strictly superior to C is not mentioned either.

C++ may not be perfect but at least it is being improved. C is the unchanged ancient form where the main gain is that it does not have stack frame unwinding and has trivial ABI.
Since when is "economical" equivalent to "good"?

The whole reason children work in coal mines is that others can't fit down the holes, it's simple economics.

The reason black slaves work the fields is because white folks don't want to do the work for the going rate, it's simple economics.

Economic forces are not guaranteed to produce a just society.
Why is there so much bias? Do these men just hate women? Is it cultural?

I really don't understand this.
Memory management in C is very different than memory management in JavaScript, which throws exceptions when you try to access invalid memory, but will gladly let you create memory leaks inside event callbacks or other loops and keep chugging along gladly until it can't anymore. Writing a safe, efficient, high performing JavaScript app is very different than writing the same thing in C, and although I know both deeply well, I don't think learning C has helped me write better JS.
I could be wrong, as I don't often browse Twitch, but you might want to take another look. From what I heard they've killed IRL and Creative and replaced them with more segmented categories.
Thanks for the constructive response to someone who cannot look beyond facebook.com.

I think this OP's expletive is more appropriate to some applications of FB's AI research and tools in their products.

If they weren't investing heavily in AI research & tools, they probably would've leveraged Google's TF, Microsoft's (since they like them) CNTK, etc.

So, in net, they have a positive impact with PyTorch which is the subject matter. Not facebook.com.
Looks good, but not a big fan of the autoplaying video.

If I could click a button and start playing the video instead that would be great.
> 1. It is possible to write reasonably "functional" applications in .NET. The only problem I had with that is lack of built-in copy-on-write data types and prevalent nullity.

I've tried to minmise that pain over the past few years with my 'functional language extensions' for C# [1].

It's a library with most of the common monadic types (as structs so there's no null issues); Immutable collection types that don't have an unweildy naming scheme like like the System.Immutable.Collections library - which are all structs, so no nulls; A type called 'Record<T>' which when you derive a type from it gives your type value-semantics (equality, ordering, GetHashCode, ToString, serialisation/deserialisation) by default; and tons more.

You still have to do stuff like build your own With method for immutable types. I have written of how these can be achieved _realtively_ easily [2]

C# has made great strides over the past 10 years to make it easier for those of us that want to work functionally to do it. It still has some way to go (discriminated unions, higher-kinds, record types, etc.) but it's already possible to write code functionally - you just need to do some boilerplate every now and then.

[1] https://github.com/louthy/language-ext

[2] https://stackoverflow.com/questions/38575646/general-purpose...
When I started my CS degree most home OS were still mostly written in Assembly, and on my geography Turbo Pascal was the language to go when Assembly wasn't required.

My university introductory classes were Pascal and C++.
Sometimes the bugs don't happen when optimizations are off. (-:
"of course the galaxies are devoid of life. The amount of supernovas is just too great."
Pardon me if I 'don't get it' but is this an OS on top of OS? but instead of hosting native app, this thing hosting sass app?
Superb. Exactly what the world needs now!
We've banned this account for using HN for ideological flamewar, which is against the site guidelines. Would you please not create accounts to do that with?

I'm not banning your other account, but if you'd please stop the incivility that appears in your comments there, we'd appreciate it.

https://news.ycombinator.com/newsguidelines.html

We detached this subthread from https://news.ycombinator.com/item?id=18121239.
Yes, he said that. He also said that leisure time shouldn't be a class privilege. He said both of those things. That was the entire point of my comment — he had a business justification, but he also expressed socially minded reasons for wanting to make the change. I see no reason why you'd only pay attention to the business reason. It was similar with other decisions he made that benefited employees — for example, he paid significantly above-market rates across the board because he wanted his workers to be happy, and he justified this in the business by saying that he believed these happy workers would be more productive and would hopefully want to buy the same cars they were making.
Thanks! Electron indeed has some drawbacks but we are working hard to improve performance as we speak.
Gah, you're right. Too many tabs. Thanks and you're welcome :)
once you know one, learning the other
is very easy. I'd start with pytorch as it's much easier to reason about and debug
I really love the concept and I've used it since August, but I frequently return to the app and it starts "reloading" making me concerned that I'm missing notifications. It's also frustrating that my configuration doesn't transfer between computers which I do frequently.
Please see https://news.ycombinator.com/item?id=18124049.

We detached this subthread from https://news.ycombinator.com/item?id=18121317.
thank you! yeah its really hard to find a cool thing. (but I'm generally bad at navigating twitch haha)
Awesome idea. One thing that would be really valuable to me would be multi-account support even for apps that don't have it built in. Firefox's multi-account containers are how I solve this now.
You mean like this?

var
ptr : pointer to integer;

begin
New(ptr);
ptr^ = 23;
Dispose(ptr)
end;
I don't have direct experience, but I believe that system/360 programs have historically not had stacks, opting instead for a statically allocated 'program save area'.

https://people.cs.clemson.edu/~mark/subroutines/s360.html

XPLINK, a different linkage convention, also for MVS, does have use a stack-based convention:

https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.2.0/...
Why not just use Kong
How does archive.org make money? I imagine their storage costs must be quite high.
The minimum wage has exactly the same effect on labor as the carbon tax has on the energy industry. There are winners and there are losers. But generally, when the government decides, there is deadweight loss in efficiency.
When you say crypto do you mean cryptography or cryptocurrencies?

As of today, I'm not sure focusing exclusively on cryptocurrencies will give you much knowledge in security... the majority of the day-to-day security work I've seen related to cryptocurrencies is detecting and turning down crypto miners.

If you're interested in security, I'd personally start with either web/application security, or infrastructure by picking your favorite cloud (AWS, Google, Azure, ...) and learn their security offerings.
Analysis of every cell-based meat patent
I firmly disagree. While technology is certainly an enabler, either to implement the solution or to enforce it of a particular solution, it is not the tool from which the solution must be derived. The intertwining that you envision emerges when decision-making bodies look at a particular technology and decide how it should influence humanity.
Any insight into what will be your business model?
Sure, C is great in its simplicity but the world has moved on to safer more powerful languages. Yes, I am referring to Rust, and yes, while it can be awkward and annoying sometimes with it's ownership lifetimes, as a professional it gives me great confidence to know that the next crash in the system will not be because of my code.
Transformer: A Neural Network Architecture for Language Understanding (2017)
I'm not going to play anymore metaphor/semantic games. It's nice that you did that project, but it's not at all necessary for someone to engage in that in order to understand performance issues.
This isn't an Electron bash, but I tried this a few weeks ago (found via Product Hunt) and after adding a few apps (G Suite, Trello, Slack, Workflowy), I found the UI frustratingly sluggish and ultimately counter-productive. This is on a well specced 16gb MBP.

Should I try again?! It seems you'd have to move the needle on performance quite significantly to remove the lag. In a non-Station workflow I'd just cull the offending tabs/browsers.
>but most male techies self-identify as libertarians,

Aka "I'm a liberal but a highly visible minority of the people around me who call themselves liberals are extremists who have gone too far so I need to call myself something else to distance myself from them."
From https://news.ycombinator.com/newsguidelines.html : "Please don't impute astroturfing or shillage. That degrades discussion and is usually mistaken. If you're worried about it, email us and we'll look at the data."

The OP is about the exact platform that the software I linked to uses. The OP even links to the exact announcement that I linked to. It is about the first launch of software that's been under development for 2 years.

This seems like an entirely appropriate and relevant HN comment.
> the lever is demanding transparency on exactly what these companies are doing.

I think a even more powerful lever would be having laws that allow consumers easily export their data from one platform to another or make internet companies adopt a common standard for increasing interoperability of users data.
Wrote lots of C once. It’s useful to me in the sense that I comfortably reach for language interfaces to the C FFI or something like JNI but I think learning a functional language contributed more to my development than C ever did.
Little concerning that AMD is not one of the new partners, we really need good competition on the Deep Learning GPU front to push Nvidia.
Lefthanders tend to suffer a higher rate of accidents and lower lifespan, typically attributed to having to operate machinery optimized for the right-handed.

https://www.nytimes.com/1991/04/04/us/being-left-handed-may-...
Someone created a wiki page for her back in May, but it was deleted because a Wikipedia editor decided she wasn't "notable". Anyone can edit Wikipedia, but it still has the bias of the most recent editor.

https://twitter.com/resolvingdust/status/1047135142978801664
deploying: `kubectl apply -f file_with_changed_docker_image.yaml`
AutoRun is dead, long live AutoRun (2017)
This is slightly tangential but I always wonder whether this common piece of wisdom is tainted by bias: Nobody lies on their deathbed wishing they had done more work and spent less time with friends and family

As you grow older, your ability to be productive decreases to the point where 'doing work' is impossible. It's no surprise, then, that most people who sit on their deathbed value friends/family over work. However, this doesn't mean 'doing more work' and 'being productive' isn't a respectable and equally fulfilling value to friends/family when you are young.

Yet, this generic piece of wisdom is often used to diminish ppl who value productivity over all else. I'm not saying one is better than the other, but aren't we getting a slightly biased perspective when we mimic values after old people? Values morph over your life, and the values that are best suited for old age aren't necessarily best suited for young age.
> It's even more useful though, as in the programming language world pretty much everything evolved out of C

Not really, there was a world of computing outside AT&T walls.

Lots of papers and computing manuals are available online for those that care about the actual history of computing.
> digging into "outdated" 80's era

I'd say that's a good idea. A 30-year cycle (say one human generation) seems to occur in many fields, for various reasons.

For instance, some of the first transistors were field-effect (FETs), then bipolar junction (BJTs) ruled the first integrated circuits, then MOS technology made FETs again the standard technology. Some of the design approaches were recycled ...

Sometimes things seem to go in a spiral, and the new level amplifies the previous. I'd just caution that knowing why the previous approach went out of fashion would be useful, but that's often hard to determine - acknowledging failure is not a popular activity. Lack of power may not be the only problem ...
The New York Times is unable to write the truth here for fear of offending their readers: The monoculture in Silicon Valley is that of hyper liberal people.

Hyper liberal people are fine. It's intolerant authoritarian people which are the problem, regardless of where they claim to be on the political spectrum. In activist circles, it's said that no movement can succeed without at least 10% radicals. That's nothing new. What's new in the past several years is the willingness to harass, destroy people's lives and livelihoods, and even to vandalize and enact physical violence.

Most of the tech class in SV isn't doing the things I list above. However, many people here give their tacit acceptance of these things.

So get out of here with this fake monoculture Orwellian nonsense.

The monoculture is a real monoculture. It's also really Orwellian. There's this kind of "seeking out" stance people can take. I remember it when getting profiled from racists. I remember such attention from people questioning my sexual orientation. Now I see it from people I meet here in the Bay Area.
Why is it so shitty to congratulate someone for making a good change even if that change may have been in their best interest?
> If you are looking to live in the US from abroad, you really only consider moving to NYC or SF, maybe LA or DC.

Interestingly enough, Houston Texas now ranks as the US city with the most international diversity. This is leading to all sorts of interesting things, like the development of new 'creole' cuisines (see the recent and rapid development 'Viet-Cajun' food).
The Steve Jobs and Ross Perot Bromance
Adding to @gamblor956 comments, the greater bay area - where I've lived for a quarter century - is still dominated by old money country club types with a separate highly transient population coming and going. The latest waves have been tech.

The european concepts of 'liberal' and the US version (especially on the west coast which is completely different culturally to the east coast) causes endless confusion as like so many words in the English language mean different things on different continents and even places.
The main advantage of this over your approach with HtmlAgilityPack is that Ferret can handle dynamic web pages - those that are rendered with JS.
And also, it can emulate user interactions.
But anyway, thanks for your feedback :)
Can you point me to a RISC architecture that doesn't have push and pop instructions?
Tech is hard, but also unwanted. I don't think what distinguishes people in tech is proficiency in certain tools. It is a drive to optimize their lives that people outside of tech do not have. I think most of them are happier. Not "ignorance is bliss," just contentment with the present.
Isn't that what an economy is?

Are you telling me that if your employer stopped paying you, you would keep spending the same as you do now?
About ShaderGif – Why Is ShaderGif Better Than ShaderToy
If you're not using the type safety and error handling afforded by C++ you're probably not using C++11. (reminder: latest version is C++17 which brings much higher usability at compiler implementation complexity cost)

Where C++ in modern form helps is generally getting rid of unsafe accesses and uses.

I'll take exceptions over checking error codes all the time.
The slightly ambiguous headline might make some think that no woman has won ANY Nobel prize in the last 55 years. That only applies to the Physics prize, many women have won Nobels in other categories.
You are a traitor and an idiot.
Wow. Just the changed mindset (compared to the present, at least) would be amazing.

"Are there others out there? Yes. And they're like us. We should try to meet again some day."

It's almost like a modern day Atlantis myth, but true.

If you want a really interesting setting for a game/book, imagine a major regression on Earth (standard post-apocalypse trope), and the colonists finally find a way to visit again...
Depends how you look at it. The fulfillment centers are intentionally built out in the middle of nowhere where land and labour are both plentiful and inexpensive.

If you live in such a place and Amazon is your employer, it may well be the case that you don't have a lot of other options, especially if what you came from was being on social assistance.
some americans have really weird meanings for some words.

such as left to mean center-right

Political Compass put me at center-left. Some people in the Bay Area have tried to call me a Republican. Differing Points of View can be weird. That's what Diversity is all about.
You're probably better off using Go then. If you like C++ but wish it were better you want Rust, and if you like C but wish it were better you want Go.
The order of words in your message, and the assumption, that you are talking from experience together with my understanding about the state of tooling for Java/C# vs those of Go.
Yep. That's why one speaks of probability density functions and not just probability functions.
Sounds a bit like "Programming from the Ground Up" [1].

[1] https://savannah.nongnu.org/projects/pgubook/
Facepalm. This entire blog post reads like they didn't figure out how to deploy to more than one server with ansible, while ansible is made just for that.
Well, I would say it's more declarative than imperative.
There are few differences that make it less declarative - variables and ternary operator.
I think you meant to say neoliberal, not hyperliberal
120PB is still an insane amount of data.

I imagine at least a million dollars an year to keep the lights on just for the infrastructure.

Does IA have a big endowment to keep it going for a while?
I'm not saying its malicious or deliberate, but any non-diverse population will tend to exhibit some bias.

I don't think its that surprising that a group of men share different view points about worthy posts than a group of women would. The point is wikipedia doesn't have good coverage in this regard. I'd say the same thing for a group of American editors vs a group of African editors. Or a group of wall st professionals vs blue collar workers.

Wikipedia's editors have a diversity problem in light of their goal to be the "world's encyclopedia".
PonyFoo has been putting out some solid books lately. You can read them free online.

https://ponyfoo.com/books
> It still represents many tens of thousands of opportunities.

There are between 3-4 million developers in the US. Assuming 30,000 of these $300k jobs (not likely), that's 1%.

> I would argue that the skill level required in its employees for a startup to not go out of business is at least as high as that at these top companies.

Most startup jobs are just another React or Rails or Node job. You're not going to get a $300k job doing that kind of work.
Excel BASIC, I believe.

https://www.joelonsoftware.com/2006/06/16/my-first-billg-rev...
> We spend a lot of silicon forcing our computers to "work like C does" (the specification for how registers work may as well read "we need to run C code very quickly no matter how much register renaming costs us in silicon"

Can you elaborate? I thought I knew what register renaming was supposed to do, but I don't see the tight connection between register renaming and C.
I think it varies by department and university, but I know that one of the professors in my grad school department had to take on more committee work when she got promoted.
Once you get used to it, it's not terrible. I don't debug on anything other than release builds (but with symbols) so that I know that I'm debugging the actual issues.
I don't think he is correct. The underlying representation of a pointer is not defined by the C standard. You could have a C implementation that works on segmented, non-flat architectures. Look at the C compilers from the DOS days, for example...
One of the goals of the project is to hide technical details and complexities that follow modern web scraping, especially when you deal with dynamic web pages.
That'd be a compiler bug, then. I don't think those would be common.

EDIT: I suppose the other possibility is that the program is doing some weird things, like reading its own machine code from memory.
Ignoring problems has not, historically, tended to make them go away.
...like returning a pointer to the stack:

char *dupstr(const char *src) {
char new[1024];
strlcpy(new, src, 1024);
return new;
}
Or maybe just Professional Assembly Language [1]

[1] http://www.wrox.com/WileyCDA/WroxTitle/Professional-Assembly...
Because it feels bad to concede anything at all. Which is a form of greed in its own right.
For the past few years, the main developers of PyTorch have been working at Facebook with the copyright on the code assigned to Facebook. For years before that, though, it was developed by people working at other companies. It's open source of course so typically this doesn't matter all too much. But you can see the history reflected in the LICENSE file: https://github.com/pytorch/pytorch/blob/master/LICENSE
@matt_d: Thanks for the cross-post!
Does pytorch come with tensor comprehensions built in, or do you have to use them yourself?
A more accurate formulation might be something like this:

positives(C) - negatives(C) + inertia(C) > positives(other) - negatives(other)

There are multiple things on both sides here. The author more or less asserted without evidence that inertia isn't the dominant term.

Also, inertia might not be a good analogy. Things with inertia might move slowly but will move eventually even given the smallest force. This is probably more like energy wells where you can become trapped in a local minimum.