skysight-inc/HackerNews huggingface dataset:
I tried it and it's awful. Finger-twisting angle brackets everywhere. You have to balance not just closing brackets but also match the exact formatting "tag", so rather than "* Foo" it's "<li>Foo</li>" (urgh). It's actually even worse than XML because you have to do these "closing tags" even when they don't make sense, so e.g. rather than an embedded image being "![mouseover text](path)" it's "<img alt="mouseover text" href="path"></img>" (yes, really). To make it even more fun, if you "cross tags" like "<b>blah <i></b>blah</i>", rather than giving an error it will silently work most of the time except when it doesn't.

The available formatting tags are a complete mishmash. There are two different ways to do a bunch of things (e.g. "<em>" and "<i>" do the exact same thing but you're supposed to use "<em>" because it's "more semantic" - apparently screenreaders don't understand "<i>" even though it's older??). There are distinct tags for acronym versus abbreviation but no-one uses either of them because they don't display consistently. But for actually structuring your text all you get is paragraph and headings - there's no way to mark a section as a summary. Strikethrough is a mess (early versions had a sensible "
" tag, but now there are two different "semantic" tags that no-one can agree on).

Don't even get me started on CSS. "You can change the styling of your document years later without changing the text" - it seems like no-one working on this nonsense format ever realised what a terrible idea that is. Your text might refer to the figure on the left, but the "styling" that defines whether the figure goes on the left or the right is in a completely different part of the source. Better still, you have to use this ridiculous action-at-a-distance "selector" language to define which "tags" the styles actually apply to, so you cut and paste a paragraph to a different place and magically all its formatting changes.

Version 3 of HTML was just about usable - you could do formatting inline and there was only one tag for how to do a given thing, and it usually had a sensible name (e.g. b for bold, i for italic). The CSS-based versions are just bad design at every level and I've no idea why anyone would choose them as a source format over literally anything else.
CrossBridge is a cross compiler. Where is the open source flash runtime?
I think that's one of the main problems I have toward Musk. He started with a strong 'hard science' stance on problems and all of a sudden he became just another salesman. If he just stated where they were .. I'd be less annoyed. But maybe it doesn't mesh well with PR
C was already hated on BBS and USENET during the early 90's.

You will find my nick on those archives at the C++/Pascal trenches side.
Agreed. We gave a test for an agency a couple of months back. Our junior forntend dev complained about a number of things that we hadn't specified (using typescript for example). I pointed out that it was a bit unfair to mark down on things that were unspecified.
Closer. No supercharging network, tiny screen (7" vs 15"), no AWD, slower (0-60 in 7.6 vs 5.5 seconds). At least the range is close (258 vs 300).

Tesla does pretty well on safety (passive and active) as well.

My main concern was did Hyundai skimp on the cooling and battery management system like Nissan did with the leaf. The result with leaf was rapidly degrading batteries that lost more than 25% in the first 3 years. Tesla's in comparison often manage 92% of new range after 150k miles.

With all that said, it does look like the Kona Electric is the closest model Y competitor I've found.
No, there is nothing specific in linked docs. It seems administration decided to get rid of him, appointed two faculty members to form committee and didn't followed their own bylaws. The tiny glimpse in the doc is that there were some low student ranking in 2018 and few people had negative experience interacting with him - but nothing specific. As per the doc, no one has made any formal complaints.

It's however quite apparent that Prof Charney had issues with liberalism. He, for example, asks why people bowing down to "scientific authorities" are considered open-minded but people bowing down to religious authority are considered closed minded. I think it's a clever twist of the word "authority" in to forcing people to think that religion and science are the same thing. If this is his "research", I don't feel too bad for him.
Williams, Harvey-Mudd, Reed...These places exist. But more people would like to go to Duke, Harvard, Berkeley,... Why is that, I am not sure but the market values the latter better.
When C was created there have been already higher-level, more complex, safer etc... languages. The language ecosystem wasn't much different from today, just with fewer choices.

Having a language that's simple, has a low runtime-overhead and can be implemented in a simple compiler is a quality that quite obviously is still valuable. C would have vanished like a lot of other languages that got out of fashion.

I don't think UNIX has much to do with it, otherwise C wouldn't have survived the 80's and 90's when other operating systems (Windows!) ruled supreme and UNIX operating systems were the underdog.
Comparable to google Nav on a new iphone or pixel 3? If so, I'll definitely have to keep an eye on the future VW electric cars.
Also hypocritical. Mozilla should take responsibility for its part in centralization of the online world, being one of those players with control and pushing even more of centralization into its browser.
I remember seeing the horrible decline in life expectancy when the Soviet Union collapsed.

At the same time, the Soviet client state of Cuba saw a dramatic reduction in economic activity and caloric restriction. Cuban dietary belt tightening led to a massive reduction in cardio vascular disease with a correlated massive reduction in obesity.

I’m not a doctor, nor a data scientist or economist.

But I suspect we will see bifurcated life expectancy moving forward.

In the distant past when there was great wealth divide, one common denominator was similar life expectancy.

Moving forward, that same wealth divide can now be leveraged by those who can afford it to exploit the entire spectrum of longevity incremental opportunities:

Nutrition
Clean water
Clean air
Mitigating physical wear & tear
Sleep
Stress
Well being
Microbiome
Supplements
Pharmacology
Stem cell therapy
Gene therapy
CRISPR

I predict a continued flattening of average life expectancy as developing world life expectancy slowly improves and some developed countries possibly see some attrition from systemic obesity, economic disruption, and continued wealth divide.

But I see the top few % of most wealthy begin to see enhanced quality of life in their later years, as well as incrementally more years.

Longevity tech is the ultimate market.

How much will people pay for a Tesla Model Y(assuming it makes it to market)?

Something.

How much will people pay for an extra 5-10 years?

Everything.

Apologies, social “scientist” talking fiction!
> If they stopped expanding they would be quite profitable.

That's like saying if I stop eating I'd lose weight. Yes, but pretty soon I'll die.

If they need to invest 1b to make 100m we know where that ends up.

They can't scale back in the long term. Well, they can but they're not doing it right. It's hard to fix manufacturing after you're in the hole as deep as they are.
I thought i was doing this by only getting black socks. Now I have a drawer full of very subtly different black socks
If you actually try surrounding yourself with only people that will not see this, I think you will come out disappointed at the size of your social circle. Not to mention that you usually don't get to pick the people you work with. Lots of things in your life touch upon the lives of people that you can't select for. That means it will be inconvenient at some point when you look bad.
I heard that you could embed neovim for that sort of thing, since neovim has an ipc. I don't know how well the feature is maintained though.
1 - string contents and actual length are handled in separate variables without correlation

2 - no enforcement that a null terminator actually exists in the string

3 - C brags about performance and is probably the slowest language to compute string length

4 - manipulating strings requires very carefull handling of buffers, usually forcing everyone to use the heap as easier way out
Check out the course Learning Data Visualization with D3.js on Lynda.com at http://www.lynda.com/D3-js-tutorials/Learning-Data-Visualiza....
> OCR

Hey, dial back the blasphemy there. HTML is not PDF, it's usually made from text in the first place.

I'd guess you could force all text to use a monospace font, with fixed measures and line-height, and limit the width of the page. Then mostly dump the resulting text arrangement into the terminal.

Now, layouts from the various elements and CSS are probably a lot trickier, but snapping all margins and padding to multiples of a symbol's size should go a long way.

It seems that this could even be embedded at different levels in the browser: the layout engine or just the user's JS. (If JS can obtain the exact layout of text lines and elements―likely not, though, especially in forms. Maybe via devtools.)
300 comments on https://news.ycombinator.com/item?id=19742270
Can't wait to control vim using my brain some day
C++ std::string is better and more secure and anything that C ever produced.

As for string processing in general, I do agree that other languages are better suited.
More often that not I find myself missing C-type strings in other languages. Being able to just walk through the characters and manipulating them is something I found rather ugly in python for instance. The NUL character is in my experience not so terrible, you typically have null pointers at the end of a linked list or whatever as well and nobody complains about that. Now I have to admit I had a bug recently that took me longer to fix then I would like to admit because I wasn't walking a string right, but usually I have very little trouble with them.
Again IMGUI. Several years ago there was a chain of videos and blog posts by different authors. People were drawing two buttons and saying "see how easy it is".

In this post the author seems to go further than two buttons, but I'm skeptical. I wish there was a video showing how it works in dynamics - inputs clicked, texts entered, scrollbars scrolled, dialogs dragged around. Or source code available to build and try locally.

From the code in the post I suppose the majority of UI is dead - can not be interacted with.

I think IMGUI can only be convenient for very simple cases.

In real frameworks the lowest level is immediate mode (see WM_PAINT in WinAPI), but real UI needs quickly evolve them into the traditional RMGUI.

BTW, this thinking is my source of doubts about React.
"There are only two kinds of languages: the ones people complain about and the ones nobody uses."
(Bjarne Stroustrup)

I guess that doesn't only apply to C++, but also C. :)
Gold jewelry is a big deal is South India. I know of a maid making $4-500 a month in Singapore. When she went back to visit after 2 years took $8000 worth of gold to give as gift to her family members. In other words 85%-90% of her total earnings over 2 years.
Wonderful to read the Eastwood quote on Lawrence: "he was a mardarse". Nottinghamshire has lots of dialect: mardy means sulky and petulant.
so what? they increase human suffering in proportional amounts. Or are you saying suffering as a human being over how many years of game development(stress/emotional distress) doesn't matter compared to suffering in africa. It isn't an either or situation even though you talk as if it is.

suffering is suffering, you must acknowledge it wherever it happens. people in jobs don't have choices a lot of times either.
> HTML is not PDF, it's usually made from text in the first place.

I don't know, man. Most websites would be smaller if they were replaced by a HD video of someone reading the contents.
And we will be able pretty soon to replace failed organs - anything but the brain itself should be replaceable in 30 years at the latest, I bet. With the progress that is being made right now, I'd say prototypes should exist in a decade, and another 20 years to let the economies of scale work.

What has not caught up with reality yet is society: how are people living 100+ years supposed to be financed? Do we expect people to work in their 80s fulltime? Will we be mandating organ replacements for those above a certain age?

How are we supposed to feed all those people? It's barely working out right now with current mortality rates and only not collapsing because the rate at which resources like fish are exploited is way beyond the sustainability threshold?
Yes - to add to that, Markdown was based on the ways emails were traditionally formatted. Since breaks at 72-80 characters in that context don't reflect a new paragraph, Markdown helpfully reflows them when converting to a variable line width context. This is actually one of my favorite features of Markdown.

So much so that I wish email clients would treat incoming text emails as Markdown, reflowing and formatting them as needed.

I actually set max-width on Hacker News to 80 characters, so I get this (much easier to read) behavior everywhere. :-)
It still comes down to a race between Tesla figuring out the complete automotive supply chain and competitors figuring out EVs.

Tesla had, and I would assume still has, production hell. Now it's delivery hell. Both are solved, controlled and executed constantly by other car companies (VW has an exception with the new Golf 8 that proves the rule).

The competition is still struggling to solve EVs, some like Jaguar and Audi and BMW and others seem to be ahead of others.

Advantage Tesla: EV brand, EV dedicated basis for their cars, software and experience with batteries

Advantage competition: scaling production and delivery, economies of scale

I would argue that the window of opportunity for Tesla is closing now. Which might not be good news for them. And given the ever shorter life cycles in the automotive sector the window ever was max. one facelift / model replacement. Which again is something the competition is doing constantly for decades now. Tesla never did it once.

So I see the advantage on the competition but not by a big margin. Had Tesla solved their production and supply chain earlier the margin wouldn't be there at all or Tesla even be a head of others. The biggest risks for Tesla are a) to miss the window of opportunity they have and be b) to run out of cash before their issues are solved. Both are related and I suspect Elon is much a help regarding the cash side as he is a hindrance regarding the rest.
There is no String class,type in C. You could create a String and make it safe but slower, you need to keep in mind when C was created and for what purpose was it created.
As I said, I have no idea what's going on in the US, but I know 2 facts:

- service providers are allowed to lie on how much a service contract will actually cost, adding/changing extra fees that were never mentioned

- Boeing of the MAX fame was allowed to self certify

One could extrapolate from there...
Indie workers get rewarded proportionally for their crunch though. AAA workers seem to have to crunch for their base salary and good luck ever seeing an extra penny if the game becomes a phenomenon like fortnite did. meanwhile notch is a billionaire now and his employees are all comfortable millionaires
> My own pet peeve in non-fiction, particularly the kind that appears on blogs: the excruciating warmup before the author finally gets to the point of the post.

Pet peeve of mine - If we could eliminate the "I appear to be talking about something happening today, but am actually talking about something that happened in 1840" article setup entirely, that would make me very happy. It was clever at first, but you can now usually see the setup coming a mile off.
It can already interact with the dom and people are working on making this more seamless and faster.

The real question would be: why would you do that when you can instead use any proper native UI toolkit?

Answer: it's now a choice. If you need command line stuff like vi running smoothly in a browser, the DOM is an obstacle, not a solution. If on the other hand you want a wasm application driving the DOM and generally looking and feeling like a web app, you can do that as well. There are several frameworks emerging for rust, kotlin, C#, and other languages that do exactly that and that use bindings for the DOM and other APIs you have in javascript in a browser. Basically, you are writing normal dom/html/css based applications; except it all compiles down to wasm and does not involve any javascript.
From where I see it the right has leapt to the defence of certain kinds of speech, but absolutely not all speech, and certainly not all kinds of employer-speech interaction. I don't think the right is really going to stand up for "you can't fire your employees for their public statements", is it? In fact, the right is more likely to be in favour of "employers should be able to fire their employees at any time for any reason", so why is the highly specific case of university professors (and no other educators) different?

The right is also more likely to conflate free speech with some kind of "unchallenge privilege" - the idea that people using their speech to complain about your speech is somehow bad. The giveaway for this is people going on television and writing in the national newspapers to complain about how they are "silenced". If they were really silenced I wouldn't be hearing about it through those channels but through some kind of samizdat.
free as in beer, free as in freedom (libre), free as in DRM free, free as in freemium... ?
How about: SVN is incredibly slow, checking out larger projects or commiting many files can take tens of minutes instead of seconds with git.

True
Ah yes, that age old showdown: the fundamentals of distributed systems vs a shiny marketing page.

It doesn’t make what they say any more true. SQS is at least once delivery, and the fact you think otherwise is down to great marketing and maybe a bit of Dunning–Kruger effect.
> it's people's actual experiences

First-hand experience gives you unique perspective that you can share with others, but doesn't make you a final authority on the matter. Once you shared your information with others (and assuming there's no trust issues involved), you're on equal grounds as to what to conclude from it.
Congratulations, I hope you'll release many more projects! A small suggestion: show examples of generated JSON alongside the source code.
On IRC still nobody knows you're a dog. Nobody cares. What write is what matters.
First, I noticed that I had much more impact teaching things I had done recently (even if I know the theory).
So when you create your exercises, try to solve them in order to 1. check the difficulty and 2. know where your students will strugle, what are the main pitfalls you will have to explain them or give them more hints.

Second, a session should be composed of a few exercises with immediate feedbacks / rewards (something quick to code but with enough notion to understand the subject of the day).
Then build the momentum toward more complex exercises.
The last exercises should be a bit more advanced than the current expected level of your students.

When I was a student, I had this structure were we had a between 6-10 exercises to learn C in 30 days (even if we did not understand all of it under the hood) from nothing to pointers, circular list, object-oriented (with structure) C. I found out that even if most of the students struggle, some of them will try to solve all of the exercises.
After many days, they had made tremendous progress and were capable to achieve all of them most of the days.

These students boosted the rest of the class for the next few years as we were encouraged to share knowledge and teach each other.
Don’t do that then.
Also, most 100-year-olds are not self-sufficient.

If it was the norm be to live to 100 years old we would have a lot of "disabled" people, and even architecturally that would be a problem, no..?
Is this a bug report meant for Twitter? https://help.twitter.com/en/contact-us
There are network effects, maybe not as strong, but they're there.
Theres the supercharger network, if you have one car of a certain brand in your house hold, the others are probably disproportionately likely to be of the same brand, and this can radiate out to friends, family and work colleagues. Theres probably a 'no one got fired for buying IBM' element also. Tesla is kind of the default electric car, you aren't going to be judged harshly for buying one because most ev buyers do.

I'm struggling to think of any individual car manufacturer that has driven other manufacturers out of the market. The market doesn't really work in a way, capital requirements are too high, lead times too long, to make that possible. Its still reasonable for them to forgo short term profits, just not quite to the same extent as the winner takes all nature of the internet.
Could Amazon's mechanical turk be used for this?
Antarctica: Thousands of emperor penguin chicks died in 2016 weather event
> At least Tesla bundled in autopilot at zero extra cost.

For about 15 minutes, before they rolled that back.

Honestly that's the biggest red flag, to me - the chaotic mix of announcements, retractions, chops and changes to their pricing and marketing strategy. As an outsider it feels like the company has cool tech but lacks adult supervision.
About point 3: Computing the string length is fast in C. The point is: In other languages you always have the length around, so you never count it up.

All the listed weaknesses also have benefits. For instance it is easy to get a substring without need to copy.

But yes, many bugs in C software originate from spring buffer overflows.
The trouble is you can step from simple semantics to dark corners through such simple things as "adding two numbers together" and "accepting user input". I do agree that the lack of need for a managed runtime is a huge advantage on embedded or small systems.
I don't think a browser can increase battery life, it can however use less power.
You can use "1." for all items in a numbered list.

https://i.imgur.com/VEYqLWE.png

rjp$ diff -u test.md test-notesla.md
--- test.md 2019-04-25 10:58:23.000000000 +0100
+++ test-notesla.md 2019-04-25 10:59:03.000000000 +0100
@@ -1,4 +1,3 @@
1. Nissan
-1. Tesla
1. BYD
If Tesla is selling cars at or below cost in order to increase the quoted numbers, that is obviously a very bad place to be for Tesla.

Someone upthread quoted that half the cars were sold in the last ten days of Q1, after a big price drop. Combine this with hemorrhaging cash, then I would definitely not say that the above is the only numbers that matter.
I won't speculate why Panasonic is putting the brakes on. Could be anything from financing to some new guy at Panasonic not liking the color choices of the Model Y.

But it is telling us something that the most integrated of Tesla's partners is putting on the brakes. And I remember some reports about less then optimal conditions in the giga factory. And these conditions, even if they are only half true, would the opposite of what Japanese companies would like to see
It would need to have its HTTP code gutted and replaced with something that uses JS's XMLHttpRequest or the request API, but I think that's all you'd need to change.
O(N) is not the same as O(1).

That substring won't remain valid without copying it.
iVim by Boogaloo

https://github.com/terrychou/iVim
Semantic Line Breaks
Yes, you can create subpatches (http://write.flossmanuals.net/pure-data/subpatches/) and abstractions (http://write.flossmanuals.net/pure-data/abstractions/).
Non-discrimination and acceptance isn't the same thing. You can't force people to like you, and you shouldn't.
Very suspicious opinion. You don't have anything to hide, do you?
Twitter Is Not America