skysight-inc/HackerNews huggingface dataset:
> It automatically manages memory

I have to stop you there. You shouldn't compare anything to C/C++ or Rust after that. You are better off comparing Swift with Go(i.e. both have automatic memory management, nice syntax, static typing, dynamic feeling etc) or Java(automatic memory management, well established in the enterprise world).
If Apple was to design a language to respond to Go or Java it would be Swift and that's it. So the pitch is that you have a nice language which encourages productivity and you can share the knowledge/code between server and client.
> To build and run a Windows container, a Windows system is required. While the Docker tools, control APIs and image formats are the same on Windows and Linux, a Docker Windows container won’t run on a Linux system and vice-versa.

No, this is for running containers using the Windows kernel.

Although with the Windows Subsystem for Linux (WSL), I wonder how long until Windows Server supports running Linux containers.
> this attitude to dog fooding isn't great.

The Dock and a few other components of macOS Sierra are written in 100% Swift, according to this year's WWDC.
I am really glad to see "searching for phrases" feature for Full-Text Search, as doing that with POSIX was really painful operation for long text area fields.
Not actually a big takedown, it's rather even-handed and quite complimentary to music and technology. He's targeted the "free" part, but based on example of radio airplay and ASCAP/BMI. So his point is logical, I think he does treat the subject more fairly than just an average rant.
> 1)"temporal" / versioned tables / time consistent views of data

Oracle doesn't have transactional DDL. It means if you drop a column or create a table, it commits your transaction automatically.

This is huge, because with PostgreSQL you can import a full database in a single transaction, and roll it back if anything goes wrong. You can upgrade a full application and roll back if anything goes wrong. No more partial-state headaches.

Therefore I'm not sure what "versioned tables" mean. Have you tried PostgreSQL's temporal tables extension, which seems to do what you mean?
Not every piece of software that needs to store data is a CRUD application and "little side businesses" are not the only use cases for an embedded database. For example, an embedded application logging readings from a number of sensors could easily reach thousands of writes per second. Another example would be a desktop (or mobile) email client such as Apple Mail using SQLite to store data, it could easily reach thousands of writes per second when e.g. downloading the entire mailbox from an IMAP server.
I found that amusing while writing it too :P but the comment I replied to brought up vegetarianism and seemed to be making a general point about ethics vs. convenience.
Wantoo, the Easiest Way to Manage Feedback – PH
Presumably the original sentence was something like "bash is an abysmal language" and OP forgot to change the article when they replaced "abysmal" with "bad". This happens to me regularly.
Important point: while costing to the customer the same, if not more. The result? Uber operating at huge losses. The result of that? Well, austerity measures. You can already see the signs of Uber starting to clamp down and make their service worse and worse.

Recommended pickup locations -> No longer door to door?

Assigning next rides before the previous one has completed -> No longer "feeling like a baller" while your driver is fielding calls from other customers with you still in the car

Wait times have been getting demonstrably worse all over Manhattan, probably elsewhere too

General quality of car/driver has been in decline since Uber started, in part precisely because of their putting cabs out of business. What's your cab driver going to do when he decides it's not worth driving a cab anymore because of Uber? Duh, work for Uber.

There's no comparison right now, but there will be soon.

I'm never going to use Uber again except for business travel due to their nice tie-in with business accounts. Personal travel? Nope. In NYC I use Juno and elsewhere I'll use Lyft, Hailo, or any number of local alternatives.
It sounds like you're saying that markets should adhere to a first-year university understanding of Microeconomics 101, because that's your definition of a free market.

I'm more than happy to be corrected.
Animals used for meat production are bred for their feed conversion ratio [1] i.e. how much body mass can they produce for a given amount of food. If this can vary within other mammals, I don't see a reason why it couldn't happen in humans. I'm not sure if it would necessarily be microbiome related.

[1] https://en.wikipedia.org/wiki/Feed_conversion_ratio
If you've had a tough time managing feedback Wantoo takes care of that. The leaderboard functionality of collecting similar feedback feature along with the Trello board style approach to tackling what's next on the ToDo list. Just got posted to Product Hunt.
It does have some interesting bits.

1. It doesn't have a GC. While the JVM's GC is decent, it can definitely cause latency spikes.

2. It has value types. Go has this, but Scala and Kotlin mean running on the JVM which means leaving memory locality behind. In fact, Swift allows you to select whether you want an object that contains pointers to things or a struct. Go gives you structs and Scala and Kotlin give you pointer-based objects.

If all you care about is syntax, Swift might not be that interesting to you. However, you get options in terms of how the program runs that the other languages you've mentioned don't give you. You can't decide that you want to create an object in Scala or Kotlin that is contiguous in memory. You can't decide you'd rather not have GC pauses in Go.

In many ways, Swift brought together the kind of niceties that have been available before. Generics aren't something new, value types aren't new, objects aren't new, first-class functions aren't new, ARC isn't new, non-nullable variables aren't new, closures aren't new, type inference isn't new. . . But none of those languages have all of those. Go took a hard stance against generics (I'm not going to go into why). The JVM doesn't really do value types. GC has been the standard for most new languages for a while.

Swift definitely offers new things.
Swift can't do realtime. It has automatic memory management. How do you replace C or C++ with Swift for that? What they mean is that Swift replaces Objective-C on user facing apps(on Apple devices) but I doubt you will see the critical parts of the OS (kernel, drivers, etc) written in Swift.

It's almost like saying javascript will replace C/C++. I want a nice language like Swift (or Go) to replace C but there is none. Rust was the best/latest failed attempt.
Can you talk at all about how the SQlite databases got corrupted? I'd be interested to know the circumstances. (The answer 'I have no idea, it was just one of those things' is perfectly acceptable.)
Don't worry, "yer racist" is a typical response from a losing argument.
The amount of messaging apps coming out of Google leads me to believe there must be some internal strife between teams or something, like people would rather start their own than join Hangouts because the team has some issues or something. It just doesn't make sense that they keep creating additional ones.
P.S. it's the animated remake of an older live-action film: http://www.imdb.com/title/tt0091341/
>Do you have a cite that says it's particularly dangerous on an absolute scale (rather than just "more dangerous")?

I don't have source. Just a reasoning. Kid might run to the street from behind a parked car. Also cyclist sometimes bump into someone coming out of parked car.

> On-street parking is almost always more efficient because the road does double-duty as an access path, whereas parking lots need empty lanes to access cars.

Car needs about one 1,5 car lenghts behind to back away form a lot. That doubles as 1,5 car lengts for the opposite car and as access path.

Theoretically on-steet parking only needs 0,5 car lenght in front and 0,5 car lenght in back. But this rarely happens as there are no marked lots. In practice the empty space between cars ranges from 0,3 to 1,4 and tends towards bigger. Because people want to park loose when there are not much cars and when the street fills it doesn't even out.
Couldn't you just write the file out in a CSV format sqlite supports?
Using their weight, huh. Apple hit 10% market share with the Mac for the first time in 2012. I think it's something like 15% now.
My school offered a semester course titled "Design for Manufacturability". We looked at things like lowering fastener and part count, to reduce assembly time (and assembly errors, etc.). It was taught by a part time guy who had a lot of experience with it in industry.

I may have missed it, but I don't think there was a similar "Design for Service" course. It's not been entirely ignored, there are makes of cars that mechanics hate to work on because service was not particularly accounted for in the design, and there are cars that they like a lot.
Speaking only for myself, avoiding or breaking retain cycles is a noticeable problem in Swift code that simply isn't there in languages with a proper garbage collector. Among newer iOS programmers, it's a big point of confusion to figure out when a callback closure should use [weak self] versus capturing self strongly, for example. I've seen a lot of people struggle to understand, completely fail, and end up dogmatically using [weak self] everywhere whether it's needed or not (and sometimes where it's actually harmful).
Fabrice has expressed anti ELF comments before and as an honest Christian I can't support this work in good conscience. We need to uninvite Fabrice from any and all talks, conferences, and other industry events. Someone has got to take a stand for those helpers.
Just pointing out that one of the things the parent says gives him joy on stack-overflow is actually "not allowed".

I don't have "a problem".

I use stackoverflow quite productively, appreciate its utility, and help folks out with answers when I can. I've gotten acclimated to the rudeness but I wish it were a nicer place.... more skeet less passant.
> by Fabrice Bellard

huh?
Our Project hsh-bali
Hi guys!

We would like to introduce our fresh new-born startup! Recently we launched our online booking platform called HSH Bali (http://hsh-bali.com). With the website we offer local low budget accommodation and offer anything in the field of homestays, bungalows, beach huts, cottages & guesthouses (you name it all!). We would like to support the locals (they barely know how the web works) and on the other hand we want to open the doors of fascinating Balinese culture to the tourists! These days the guest is able to book the local accommodation on our website. HSH Bali is available in 6 languages and very soon we will provide user- and partner logins. In the long run we would like to expand this concept to other islands of Indonesia and also further SEA countries.
Now you guys come into the picture, we would like to ask you how you like the idea, and how you like the handling of our website? We appreciate every feedback! We look forward to hearing from you.
Depends on the area of Web development.
"At least 5 years of experience in ReactJS required".

Software companies always look for people with the latest fad ^H^H^H skill, which is - almost by definition - in short supply.
You've admirably demonstrated the willingness to ask questions and learn in this thread, so I will try to rise to the occasion. I'm sorry to have been dismissive with my original comment... please understand that C++ takes a lot of abuse from inexpert programmers on HN. For example, I never would criticize Ruby without spending more time than a semester's class using it.

>> string token = "";

No, you aren't opening yourself to bugs, but it's unnecessary. A default constructed string is already == to "", token.empty() will return true.

get_token_type() should likely take a const reference to the string, as all of the operations on the argument are const. I saw elsewhere in the thread where you said you've avoided const so far. Honestly, const may be C++'s greatest feature; it is far, far stronger than Java's "final" (or Scala's equivalent "val").

Looking over this code from a high level, I'm not sure why you have get_token_type() with a string parameter and a char parameter, when the former just forwards to the latter. Couldn't you have a second char variable, "prev_char" or "last_char", in get_next_token() and then detect when the type of it differs from the current char. Then the only operation you'd be doing on the string "token" is appending to it. I could be missing something, though, as I've only taken a quick glance through the code.

I would generally agree with you that C++ is poorly taught almost everywhere. I think it was a win for CS departments when they transitioned from C++ to Java for introductory courses (and now many are transitioning to Python, also a win). I am fairly convinced that C++ programming is a craft and is therefore best learned under an apprenticeship model, of routine practice with expert review and guidance, coupled with some self-study.
I was wondering how airlines were going to cut emissions. Turns out they're not.

To be clear, the 15-year agreement would not force airlines to cut their pollution. Instead, companies would compensate for any emissions growth after the accord begins in 2020 by buying credits that back renewable energy development, forest preservation or other environmental endeavors.
Sure. Either global transactionality for writes is important (in which case this style is useless, you need a master to accept the writes (or else some kind of distributed consensus protocol which this doesn't have) and single global master + distributed read slaves is a good model), transactionality is only important per-center (in which case I'd rather have explicit sharding rather than invisible differences in behaviour between queries that look the same), or you don't need transactional behaviour at all (in which case an RDBMS is probably a poor fit).
Sigh. Please improve your reading comprehension. I didn't "shit on the LibreSSL developers". Anyways, you sound not like someone one can have a sensible conversation with. So I wont be replying further.
"how to do X" has an objective answer: "here's how". Whether it is "the best" is subjective. That is why multiple answers are allowed on Stack Overflow (instead of a single article as on Wikipedia modulo different languages).

The accepted tick on the answer says that "here's how" might have worked for the question author.

The most upvoted/popular answer works as a rule (there are exceptions). Popularity contest is not the best way to get the truth on a technical subject but it works more often than not (you can read the answer in the chronological order if you like).
Early? All of those changes were made after long using old technologies. I wouldn't consider it "raced headfirst into abandoning", more like "everyone wanted to abandon those old technologies but couldn't survive being the first to, so Apple made the move and everyone soon followed".
You had me nodding in agreement until the very last word. Don't ruin it.
> You could say I'm part of the "problem"

And I do! With lots of swearing! :)

The only time I'm on SO is from a Google search result. They should at least make the danged site noindex itself for that page if it's the question has been closed. You wouldn't believe the amount of times I've been searching for a solution and found a SO link and thought I had the answer coming my way only to see the thing was closed before anyone could answer the question.

In all honesty, I don't give a rats why a question was closed. It was either closed and is now useless or open and has answers.

The solution is to make the closed question not appear in Google search results. If the same question keeps appearing the solution is to let someone answer it.
In fact the only part of the standard library that can be considered OO, iostream, is considered an overengineered disaster.

I actually happen to like iostream, for the reasons of it being standard and extendible; just don't expect any particular performance out of it.
>Right now I’m not, and although he is a bit more of a privacy snob than I am, Snowden already made a point about the lack of privacy in Allo.

Wow, this is what a product designer thinks? That he's a privacy snob? When the NSA and GCHQ and others willingly violate the privacy of people every day by using the information that Google, Microsoft/Skype and others collect? There's such a thing as a privacy snob? WTF.
> Author
>
> Fabian Hemmer (http://copy.sh/, copy@copy.sh)

That's not Fabrice Bellard[1]...

[1]: http://bellard.org/

[edit]: The submission title has now been edited to no longer say this is a project by Fabrice Bellard.
I think I'm probably a good poster child for this. It's not just about income it's also about wealth.

My household income puts me in the top 5% (my wife and i are engineers) but my wealth and savings barely puts me in the top 40% thanks to student loans, buying a house, having a kid, and short work history. So according to income I'm upper class. According to wealth I'm middle class. I don't think you can truly feel upper class until you fall in the top percentages in both.

I think it falls under:

- Upper class: you could retire today without impacting your lifestyle

- Middle class: you will retire someday but you'll have to cut down on your lifestyle

- Lower class: you will never retire unless you go on disability / welfare
More than with Swift. I routinely see 100x - 1000x and more performance difference between -O0 and -O in Swift. Considering that the optimiser doesn't give warnings or errors if it can't apply optimisations, that's out of bounds for me for a systems programming language. YMMV.

The whole UB idiocy is a different matter, though related because it's perpetrated by roughly the same group of people, for similar nonsensical and non-validated reasons. See my post http://blog.metaobject.com/2014/04/cc-osmartass.html

See also: http://www.complang.tuwien.ac.at/kps2015/proceedings/KPS_201... and Proebsting's Law.
Not parent commenter but I'll still take that over filthy cabs and sketchy-as-hell drivers.
Let me quote myself:

"This is true in public policy, too. I live in St. Louis, where we're constantly chasing the tails of bigger cities and their neat, new bike-share-startup-trolley-incubator-green-space whatevers. And it'll never work. For St. Louis to ever have any hope of being cool, it needs to focus on the things that make St. Louis cool and give up on trying to be Chicago."

https://news.ycombinator.com/item?id=10583393

Which is to say that I think maybe you've misunderstood my point.
This should be greatly reduced now that Swift 3 is out. A big part of Swift 3 was getting all of the breaking changes over with so that they can maintain source compatibility from here. There will likely be some small breaking changes over the next year or so as they nail down bits they missed, but it'll be a lot less chaotic than what we saw with Swifts 1 and 2. I realize that "greatly reduced" may not be good enough for you, though. Perhaps next year even that will be done.
You won't convince me that c++ is as good as c simply by representing a plain old structure as a class or by talking about the type of arrays.

To me, data-oriented design is more interesting: https://www.youtube.com/watch?v=rX0ItVEVjHc
That's the only way visit SO. It's double frustration all the time.
I can tell you that among Black people in Brooklyn, Uber was a god-send. Cabs would outright lie as mentioned above, refuse to take you to certain boroughs, refuse to pick you up from Manhattan, etc.

Agreed that the cab experience is about half as good, but for about the same price.

Really a no-brainer. Everyone here uses AND loves Uber. I and a lot of my friends spend at least $100/mo outside of work commute costs.

source: I'm a black person in Brooklyn.
Well, technically Swift's memory management is the same as what C++ offers via smart pointers, the only difference is that in C++ it is opt-in (and still very popular). Swift is quite unlike Go or Java's memory management; it is not a GC in the sense that they use it.
Add a Personal Story to Make Your Business Memorable
>>> Recommended pickup locations -> No longer door to door?
Assigning next rides before the previous one has completed -> No longer "feeling like a baller" while your driver is fielding calls from other customers with you still in the car

Above is applicable only if you use UberPool. It's a great way to save money.
Since when I have switched to i3 window manger, I am totally enjoying it. It's minimal, fast, keyboard centric and perfect for computer with small screen size.

https://i3wm.org/
As long as we're on the subject, the gauges don't appear at all if cookies are blocked. Console says "The operation is insecure." This is the case on almost every demo, period, even if they claim to have tested on 8 different platforms.

Just wrap your feature test for localStorage (or sessionStorage) in a try/catch. An `if/then` block is an insufficiently powerful construct for feature testing the storage API. So many times but it's not getting to me. If cookies are blocked, you'll get a security exception when you try to access it. Not even Jon Skeet can feature test for storage without catching the security exception. Unless the gauges actually depend for their operation on some data previously stored on my browser---which is a logical impossibility for a first time visit---then storage can be treated as optional, he comes. This is so prevalent even on simple demo pages that I can only assume people are using a framework that needlessly tries to access localStorage without the requisite try/catch.

TL;DR: Test with cookies blocked!
That's assuming that slim people are always people who eat perfectly healthy. Yet seems we all know that one skinny person who eats the worst food ever, and never gets fat.
So you don't like the "default skin" of the application. That should be pretty easy to replace with something that suits your taste.

Consideration of "good" vs. "bad" of anything is essentially a trait of use vs. them propaganda. Better to skip it.

Yes, buttons are good form of actionable design!
Those are the claims. The reality does not match those claims.
This is really cool, I'm amazed at how smooth it runs Windows 98 in a browser.
Their "weight" extends beyond their market share. As an easy example: There are many people that don't own an iPhone 7, but who also know that the iPhone 7 tossed the headphone jack.
A weird observation: starting with SO is particularly punishing if you come to it as an established programmer.

The karma restrictions don't chafe much if you're a novice who mostly asks questions, and occasionally answers a simple topic they recognize. If you're experienced, you want to give more complex answers, and perhaps comment on other answers that you think are suboptimal. Doing that, you feel the new users restrictions (and the sting of uninformed downvotes) constantly.

50 karma is big, because the option to comment on other people's posts is core to giving relevant answers ("Did you want it to do X, or Y?") and using the site properly.

Honestly, I'd just ask a few questions (if your domain is uncommon enough that they won't be duplicates) and let that karma carry you until the site becomes usable.
You must've missed my point. I would too. However,

> There's no comparison right now, but there will be soon.

The things that I just listed are the things that are already happening, and their VCs haven't even started demanding their money back. And this is all if everything goes swimmingly for them. No massive regulatory hits, no demands for insurance, no declaration that drivers are employees, etc.