skysight-inc/HackerNews huggingface dataset:
The Deep Time of Walden Pond
https://en.wikipedia.org/wiki/Gaia_(spacecraft)
It's the same as the benefits normally, the buyer didn't have to convert at that point, they just have to pay the pegged rate.
std::string_view is, as the name implies, a view into a std::string.

If you own the actual string, use std::string — there is no other string for you to view.

If somebody else owns it and you're working on the whole string `const std::string&` is probably your best bet — you're holding a reference to the string as a whole — but std::string_view also works and might make more sense in context.

If you're working with a substring of somebody else's string, std::string_view is the natural choice.

The key idea here is that you want to reference, rather than copy, some underlying string. If you're working on something where your code needs to own a deep copy of the original string for some reason, by all means continue using std::string!
Ffewf
Let’s make workflow engines fun again
Reconnection tames the turbulent magnetic fields around Earth
”Software vendors have no incentive for making it easy for people to exchange data between devices and software they have no control over”

That isn’t needed to get the multi-device UIs for “multiple tablets could be quite useful if there was a good way to coordinate the displays and interactions between them”; the devices could all be from the same manufacturer. For example, games where not all players get the same information (e.g. scrabble, cluedo, many card games) could have the shared UI on a tablet, with players using their phones for looking at their cards/stones.
> Making a telephone call rests on the same convention: you are allowed to make someone spend time on the phone with you, because you're spending your own time.

I personally, absolutely do not think of it that way.
Whenever I get called by a call center, I always immediately say "not interested" and drop the call. It's rude, but I think these companies are not entitled to my time.

Because of that I think the problem is already there. This is certainly another step in the wrong direction, but thousands of workers in thousands of callcenters are basically already a human botnet.
UK: Universal credit rules risk 'crushing' self-employed and startups
cf. Reader mode.
Yeah, its a good option for new languages though.
I made no mention of it 'not being as bad' as other bills. I stand by my statement. Net Neutrality is government regulating ISPs. ISPs are not the internet.

And I think it could convert those in the anti camp. Some are against Net Neutrality because they see it as government control of the internet (it is not). They need to recognize that FOSTA is directly what they perceive Net Neutrality to be (at least in terms of results).
Vsqwfe
Nope. Confirmed on any website
I use dynamically typed languages the majority of the time, i never really saw the advantage of static typing. I do however rely on the database for typing quite heavily.
I'm not your typical JS/CSS hater but for this document, I found the lack of styling perfectly fine. It also works without problems on any mobile device I tested (as expected). IMHO, not every page needs CSS and lots of breakpoints.
Dude chill... you are essentially saying the same thing.

> … due to climate change, or at least warmer ocean water from further South that we've had for the last 5 or more years, has caused the kelp to die off at a rapid rate
> I've read accounts in the local media (in Malaysia and Singapore) that Mahathir will work at getting Anwar pardoned. Once pardoned, Anwar will run for a seat in Parliament. Once in, Mahathir would step aside and let Anwar become the Prime Minister.

That's correct, he said it again live during last night's victory speech.
This is a problem/misfeature with cryptocurrencies: You are never truly sure that you own any of it, until you spend/send it elsewhere.

No matter what layers of indirection(multi-party-sigs,bio-metric based encryption, etc) you put on it, at the end the private key has to come out in order to use it.

With Gold, you see gold in your vault, you know it is yours.

You see dollar in your pocket you can be sure you can spend that dollar tomorrow.

You see a strip of paper with your private key in your pocket, there is no guarantee that you can spend those cryptocoins tomorrow.

You see a private key(encrypted or not) on that Gold Bar, you do not know that it is truly yours unless you managed all steps of the encryption yourself.

If you did manage all the steps of encryption yourself, then storing that information in a vault was pretty much pointless.

I suppose one way these vaults can offer some sort of safety is that you come to them with your wallet, you make an onchain transaction into wallet whose private keys require both you and the vault to decrypt.

This way both parties can be reasonably sure that the wallet stays unaffected until you come with a request to open it.

Still a problem remains, you have to trust the vault to stick around and not lose their encryption keys.

If you do not need vault's keys to open your wallet you've gained nothing by storing your keys at the vault.

If you need the vault's keys you have to put your faith in vault not mishandling those keys, which means a single point of failure.
> Let's raise a glass to the inevitable bankruptcy, in which the founders and VCs don't suffer because the IPO already happened. Here's to you, Rod Drury, Peter Thiel, and Chris Liddell (now working for the Trump administration). Great job, guys. If you end up in jail, I'll send postcards.

What an incredibly strange statement. It's so far away from the reality of the situation that it comes across as just looking for an excuse to lash out.

Their revenue climbed 38% to NZ$407 million, with a positive EBITDA, and grew their subscriber base by 1/3. That business isn't even remotely in danger of going bankrupt. If running a NZ$28 million loss results in that kind of tremendous business expansion, they should do it perpetually.
1. In the introduction, Herb Sutter mentions this talk is also for people that might not know about C++11 features.

2. Use std::string for when you need to own a string. Use std::string_view when you need to reference a string [a]. Generally you want std::string_view for parameters and std::string for member variables. Return values and local variables can be either, but if you're not sure, std::string is safer though slower.

3. You chain optional, but only with nested functions, and you code starts looking more and more like lisp. If you are a fan of a chained syntax, you might be interested in libraries that support "ranges". boost already has ranges and there are proposals to add them to C++20.

[a] If you want more specifics and detail, the CppCoreGuidelines have a section on when to use which string.
https://github.com/isocpp/CppCoreGuidelines/blob/master/CppC...
What makes XMPP "better suited" for 1-on-1 chats? I use both XMPP and Matrix for both 1-on-1 and group chats and found neither lacking in any case.
I think your points are sound but it’s worth pointing out that you can roll new host OS’s and VMs without patching on-prem too. You just have to have the discipline to run your internal data center the way cloud providers do. You can even take advantage of one of the few benefits of on-prem and roll a fresh host OS without downtime for the VMs running on it by using live migrations.
technically references can't be null ever. To create a null reference you would have to deference a null pointer and then you are into nasal demons territory.

/pendantic
Ndrgr
The reason nobody can give you an example for how to make a binary is because there are many many different ways of doing that. To name just a few:

* in ABCL you would generate a jar file, just like with java or clojure

* in SBCL you could dump a core file, there are some tools that can package that up in a command line binary

* if you use a bytecode compiler(like clisp), you'd use that the same way like python or ruby, you'd put your script in a text file, with a #! line at the top and run it like any other shell script.

* if you use a Lisp->C compiler, you'd generate C code and then compile that with GCC or Visual Studio or whatever

* if you use image based programming, you'd just load your code in the lisp image and just use lisp itself as your command line, your "binary" would then be just a normal lisp function.

* If you're deploying a service, you might want to package it in a docker image or even a VM image or have some build and deploy script depending on your environment or needs.

I'm probably missing some, but that's the basics.
This made my day: "Ethernet only goes so far, so there's a repeater in the woods enclosed in Tupperware".
But this is not about core-beliefs, but complying with the law.
> ...its purpose is not to have a way to express "missing" items in a type-safe manner...

Except that's exactly why you would take an `optional<int>` as a parameter. To avoid the ambiguity and possible bugs of taking an `int*`.
Vasfasf
Tavisca Solutions Pune Evolving into Travel Technology Hub
> ...make_shared only came up C++14 due to missing deadline on C++11...

You might have a typo here. make_shared was available in C++11. make_unique was left out from C++11 as an oversight and added in C++14.
Well, not really. What Kotlin has is exactly an Optional type. It's just a different syntax for it.
Chill bro. There's no need to hurry
Unknowns are not even remotely problematic for logic. Not only SQL, but illustrious languages such as VB6, include built-in trivalent logic.
Also there's no info on the nutritional uptake of the cows. Killing the methane-producing bacteria could potentially mean killing the digestive powerhouse of the animal.
Maybe now that you are older and wiser you are seeing the patterns.
> Devuan is basically Debian without systemd.

You can already run Debian without systemd today. There's absolutely no need in the fragmentation Devuan creates.
The desktop web version is indeed far superior. The Android version works okay but it's also laggy and some notifications are missing.
For me, "ethics" is a too strong word for this discussion.
From the dynamic languages the SBCL compiler is something you might want to try.

The compiler tells you the usual (?) stuff like missing args, wrong named arguments, missing functions, undefined variables, syntax errors, etc.

But Common Lisp has also a (relatively primitive, compared to something like Haskell) type system and the SBCL compiler can make use of type declarations (for compile time type checking and for runtime type errors) and does also do some form of type inference.

With SBCL you get all the interactive dynamic features and a compiler which you can use to check your code and make it faster. The compiler can for example tell you which operations it could not optimize and why. Then you can decide if it is worth to put some effort into improving the code - for example by adding better type declarations. Common Lisp also lets you inline code or have some data be stack allocated...

Common Lisp also has a sophisticated error system, which allows you to get lots of excellent error reporting and handling.
Coming from Northern Europe, I still find SF a place it would be hard to leave. If you're in tech, there is no better place to be, in terms of learning, career progression and the overall interest. Think about any technology you're interest in, and you're probably a coffee shop away to talk people who work on it or lead the work. In Europe, I'd often feel how lacking and not interesting the environment is in many ways. People don't have much experience and don't often have high ambitions (since there isn't many good examples).

Salaries and equity options are probably higher than anywhere, and its more likely here that those options actually turns something in worthwhile. While rents are expensive, it can be still potentially financially better.

Restaurants, places to go, nature and travel is pretty great overall, there is lot to do.

The quality of living is not really on the same level as in Europe. Lot of the city is quite dirty, not all of it though. If you have a family, its likely to be much more costly in everything. Houses are expensive, and probably there isn't anything to fix that in the near future. I think the protesting against tech has somewhat subdued, you don't really hear about it.

Overall, after living here for a while, you get jaded about all the startup stuff. Its not what you need to do all the time, but it can be still quite interesting to see and hear everyone around you to try new ideas.

People are leaving, but not really seeing that the area is slowing down. There are more great companies now than there was 10 years ago.

Sometimes, I think about moving back to Europe or somewhere else, and don't really feel excited about the job prospects or the overall work environment. It would be hard to find anything remotely similar roles that I've been able to do here.
Apple cancels its $1B Irish data center plans
Rails and the books were both byproducts of 37 Signals (ie stuff they were doing anyway, so they released it to the public - not that that is cost-free, but it's not as intensive as doing it from scratch). And cars are his hobby.
Yeah but if your entire country/region is on that same 10-second delay, then it might as well be live.
I wonder if this is in fact even worse, keeping people "occupied" in money-losing companies, where if the company went under they might (especially in tech) find something productive (in the literal sense of producing something of value) to do.

That seems more likely especially in a case like this, where the employees are skilled, and where the company isn't doing anything unique (novel, charitable, beneficial to society in a nonprofit way, etc) that would merit rating it by some other metric than profit.

It just seems tremendously wasteful to be losing tons of money in a market where there's already a lot of competition and you're not doing anything new. This isn't an electric car, and AI, a space company, where the outlay might be a lot and the time to develop the tech is great, this is a long-established market full of already-solved-profitably problems.

I would guess most of Xero's employees are outside of NZ, but since NZ's primary export is dairy, the government might be foolish enough to try propping it up with some nebulous hope that "keeping the tech industry afloat" will somehow be beneficial, rather than letting the few technologists in their employ go to work for another, more useful company, or to go and start a startup of their own (perhaps with government funding, in lieu of it going to Xero, in that hypothetical situation.)
Csdsd
Awesome. A thread about null. Has anyone called somebody else "Hitler" for disagreeing with their opinion yet?
My brother and his wife built a "modern" yurt from a kit sold by an Australian company.

I think it turned out nicely - http://instagram.com/barefootyurtlife/

(scroll back a bit through that IG)
Niantic Is Going to Crowdsource AR Maps
But do you need to?
Web App vs Native App
> If somebody else owns it and you're working on the whole string `const std::string&` is probably your best bet

Actually string_view is more general. You can build one out of a string literal, a vector<char>, some memory from a memmap call, and an unbounded list of other things. If an interface uses a `const std::string&` and you don't have one, you have to, implicitly or explicitly, copy the data into a `std::string` to be able to use that interface.
Hello Pranav,

Can you verify your domain & Email?

Thanks, Arpan
Does the methane get released after the cow has finished digestion and the manure is left to rot? The carbon has to go somewhere if it's not turned into methane inside the cow.
IMO this is a lot harder than just looking at the current numbers. It is relevant to see the individual differences and impacts as well.

A lot of the commonly sold 'vegan' alternatives from the hipster food section in our super markets are produced by big corps and shipped around the world. A lot of the popular super food here in Europe comes from south America. More and more fruits and vegetables either from Asia or some huge (essentially slave holding) agriculture areas in Spain or Italy.

On the other side I consume Mostly local food. I love to waste time in meat areas to find the single most ecological variation I can buy. Rarely eating beef. Except for pure luxury import stuff (mango, pineapple, nuts) I eat my vegs and fruits seasonal.

If you account for all the transports, cooling, storage of imported super foods it could very well be that the local meat eating approach still is a lot better purely based on your ecological footprint.
Intro to Machine Learning(2016)
FTA it sounds like the pirates may actually control the satellite? Arabsat appears to be the source of the signal, so could the issue be a "leaky" legit distributor for BeIN?
TFW your climate change denialism goes so far off the deep end that you literally claim that warmer water in the most global of the oceans isn't related to global warming...
True, but a city of "artists" is also a monoculture.
rent is the worst in america

I know several people who have had laptops and cellphones stolen out of their hands while they were at a cafe

the public transport is basically fine, crowded.
I wonder if it would be appropriate to submit to archive.org
Bgege
For Lisp on the JVM there is also ABCL, which is a full implementation of Common Lisp: https://abcl.org
I took the parent comment to mean 12 hours, 6 days a week. Did he actually mean he works 12-6?
I don't agree that this is a good behavior. I rarely need that behavior. NPE means that I forgot to handle null. And handling null usually means something other than use null for a result. NPE is hard to miss and stacktrace points exactly to the code that should be fixed. Propagating null will hide the code that should be fixed. I think that NPE behavior is the best solution without changing type system (and null-aware type system is just the best solution).
A 360° tour of Ocado's Andover automated warehouse
Tech is also a culture. Tech people are generally rational, open to innovation, individualistic. HN is a good representation of the tech culture.
Absolutely not. The init system we had was relatively fine, having worked with linux for the better part of a decade, systemd was an answer no one needed. Especially with its feature creep, stealing pid1, and being required - slowly - by other software packages. Or at the very least making it difficult to not soft require it.
Some of the problems in imperative languages are solved with design patterns. You don't have these problems if you use Lisp.
I had the same experience in the Mission my first time there.
http://lisp-lang.org/success/
Quoi? ("...fetchez la vache!!!")
There is TypedClojure[1] for static typing in Clojure, but I am not quite sure how good the tooling is though, e.g. refactoring, code-intelligence abilities, etc...

[1]http://typedclojure.org
And you can change Lisp language on the fly. Think like you can chage "if" in Java.
Vafedfs
It's not just when GET params are in the URL. If you try any URL with a path that follows, e.g. http://www.bbc.co.uk/news/business-44065422 and then copy the protocol and domain (http://www.bbc.co.uk), the entire domain is added to the clipboard
The world still spins around male genius
I would go with C, a bit of both, a circular reference if you like.
This video clearly explains the root of the problem:

https://www.youtube.com/watch?v=wteiuxyqtoM
Yes you are right, my mistake.
That's definitely not the case in the UK.

Three offers Deezer and Apple Music but not Spotify zero-rated. This puts Deezer and Apple Music at an advantage, no matter if they're technically better or worse

Three also does this for social media and video services. (Part of why I'm leaving them when my contract is up)
+1, that would be awesome! :)
Having just returned from a trip to 5 European cities in different countries, what does the most European city mean? I also haven't been to Boston, but there were many ethnic enclaves in other American cities that I was reminded of during my time in Europe. But as a whole, the cities were each so distinct, I found many American cities comparable to them than they were to each other.
Mahatir is insane (or as the post notes below, perhaps shrewdly taking advantage of ignorant or powerless populace). Asides from faking the sodomy charges against Anwar (who was widely popular and hence seen as a threat), he also believes an international conspiracy of Jewish people caused the Asian Financial Crisis:

https://www.nytimes.com/1997/10/16/world/malaysian-premier-s...

https://www.theguardian.com/world/2003/oct/17/malaysia
"Business expansion" rather than "business growth". I agree. They're expanding.

They're not profitable, they expanded, the expansion incurs more loss, what they're doing is digging a deeper hole. If you lose money per customer overall, and you get more customers, now you're losing even more money.

"Positive EBITDA", if you can't pay your taxes/etc and break even... guess what, you're going bankrupt eventually.

All this and they think they can compete with Intuit. This won't be the first time a New Zealand company succeeded in the "ignored by competition because its too small and has its own system of laws and isn't part of a cooperative economic zone (vs, you know, just expanding to another large city in US/EU)" and then thought it could compete overseas, only to have its ass handed to it.
You mean int*, right?
Since Common Lisp is a language standard (not an implementation) it is hard to provide a single set of instructions or guidelines that would work for all implementations. There are various implementations of Common Lisp that target native machine code, C code, bytecode, JVM, etc. So the build instructions, project structure, etc. depend on the target.

Here is a minimal example that builds a Lisp program into a binary executable with SBCL:

(defun main () (format t "hello, world~%"))
(sb-ext:save-lisp-and-die "hello" :executable t :toplevel 'main)

The SBCL-specific `save-lisp-and-die` function saves the Lisp process as a core image. The `:executable` argument includes the SBCL runtime in the image to ensure that the image is a standalone executable. This is why the executable for even a simple hello-world program tends to be quite large (30 MB to 50 MB)! The `:toplevel` argument specifies which function to run when the core file is run.

Here are some example commands to get you started:

$ cat hello.lisp
(defun main () (format t "hello, world~%"))
(sb-ext:save-lisp-and-die "hello" :executable t :toplevel 'main)
$ sbcl --script hello.lisp
$ ./hello
hello, world

If you would rather not have SBCL specific code in the Lisp source code file, then you could move the `sb-ext:save-lisp-and-die` call out of your source file to the SBCL command invocation. The source code now looks like this:

(defun main () (format t "hello, world~%"))

The shell commands now look like this:

$ cat hello.lisp
(defun main () (format t "hello, world~%"))
$ sbcl --load hello.lisp --eval "(sb-ext:save-lisp-and-die \"hello\" :executable t :toplevel 'main)"
$ ./hello
hello, world

By the way, there is also Buildapp[1] that provides a layer of abstraction for building executables from Lisp programs. It works with SBCL and CCL. It requires the toplevel function to be called with an argument though. Therefore the source code needs to be modified to:

(defun main (argv) (declare (ignore argv)) (format t "hello, world~%"))

Then Buildapp can be invoked like this:

$ cat hello.lisp
(defun main (argv) (declare (ignore argv)) (format t "hello, world~%"))
$ buildapp --load hello.lisp --entry main --output hello
;; loading file #P"/Users/susam/hello.lisp"
$ ./hello
hello, world

[1]: https://www.xach.com/lisp/buildapp/
This thread now contains a loop. Granted, it's a really long loop, all the way back to 1956, but it's a loop all right: you've essentially summarized the Dartmouth Conference and its assumption "gee, that ought be just a minor research subject - easy, right?"

https://en.wikipedia.org/wiki/History_of_artificial_intellig...
I’m thinking it over.