News for hackers. Stuff that matters.
Re:Does the Boost library meet its original goal? by sclangdon on Monday June 26, 2017 @03:30AM (#14634778)
When this article refers to the term "modern C++" it seems to be talking about Andrei Alexandrescu's now 16 year old notion of modern C++ [1], not the C++11 and newer notion [2].

[1] Addmittedly, Andrei's notion is still completely relevant today (and still, imo, the best C++ book available) but I don't think it's what most people think of when they hear the term "modern c++" these days. - https://en.wikipedia.org/wiki/Modern_C%2B%2B_Design

[2] https://github.com/isocpp/CppCoreGuidelines/blob/master/CppC...

Re:Does the Boost library meet its original goal? by vitaut on Sunday June 25, 2017 @09:23PM (#14633323)
I think Boost was very successful in encouraging development of high-quality libraries that seamlessly work together (most of the time) and have consistent build infrastructure. It is not that important nowadays because the most important parts have already been integrated into the standard library and we have a de facto standard build system (CMake) that makes it easy working with small libraries that do one job well.

Where Boost is a bit lacking is modularity and somewhat varying library quality but this is kind of expected considering the number of subprojects.

Re:Does the Boost library meet its original goal? by vvanders on Sunday June 25, 2017 @10:04PM (#14633507)
Also, build times. Every project I know that's integrated it has regretted it on this point alone.
Re:Does the Boost library meet its original goal? by personjerry on Sunday June 25, 2017 @10:20PM (#14633593)
Also check out https://github.com/facebook/folly which "complements" Boost and std
Re:Does the Boost library meet its original goal? by vortico on Monday June 26, 2017 @01:57AM (#14634420)
Is it still required to download the entire 300MB+ Boost library to use a small section of it, like odeint for example? This has always been the "joke" that prevents me from taking it seriously.
Re:Does the Boost library meet its original goal? by vinkelhake on Monday June 26, 2017 @02:28AM (#14634527)
The latest release is a 70-80MB download (depending on archive type). Where are you getting 300MB from? The uncompressed size?
Re:Does the Boost library meet its original goal? by vortico on Monday June 26, 2017 @03:12AM (#14634687)
If so, I must have been out of date. I just checked, and the archive is 635MB uncompressed. The joke continues.

It's amazing that people on StackOverflow suggest using this package for things as simple as sort functions.

Re:Does the Boost library meet its original goal? by int_19h on Monday June 26, 2017 @05:51AM (#14635441)
Boost is not a package. It is a collection of packages.

If you're using any kind of sane package manager for your builds - NuGet on Win32, distro-specific package managers on Unix etc - that's exactly how it is presented. So you don't take a dependency on Boost - you take a dependency on boost-filesystem, or boost-regex, or boost-date_time etc.

Re:Does the Boost library meet its original goal? by sclangdon on Monday June 26, 2017 @03:15AM (#14634703)
The download isn't even remotely that big. If you are talking about the compiled size, you only need to build what you use (look up the --with-<library> and --without-<library> switchs).

You can also use the included bcp utility [1] to extract a subset of boost.

[1] http://www.boost.org/doc/libs/1_64_0/tools/bcp/doc/html/inde...

Re:Does the Boost library meet its original goal? by Scea91 on Monday June 26, 2017 @07:23AM (#14635867)
300 MB is nothing today and I would guess that almost all of us can download it in less than a minute, so where is the problem?
Re:Does the Boost library meet its original goal? by fao_ on Monday June 26, 2017 @07:34AM (#14635914)
Almost everyone who happens to live in Silicon Valley, sure. Others are not so lucky and have 1mb/s download speed.
Re:Does the Boost library meet its original goal? by vortico on Monday June 26, 2017 @02:12PM (#14638978)
It's not only the technical size that's the problem. It's the phycological complexity of the software that strays people away from it, and the filesize is an indicator for that. It tells me that the developers aren't opposed to add any feature they feel like, creating overengineered and bloated software.
Re:Does the Boost library meet its original goal? by ue_ on Monday June 26, 2017 @07:55AM (#14636008)
Do most people have download speeds greater than 5MB/s?
Re:Does the Boost library meet its original goal? by mac01021 on Monday June 26, 2017 @08:09AM (#14636086)
Isn't the download speed of a typical cable internet connection in the tens of Mbps?

On the east coast I pay about $70 per month for about 50mbps.

I would be interested to here if suburbs elsewhere in the country have it much worse (or much better).

Re:Does the Boost library meet its original goal? by consz on Monday June 26, 2017 @08:48AM (#14636311)
300KB/s here (NYC).
Re:Does the Boost library meet its original goal? by mac01021 on Monday June 26, 2017 @09:37AM (#14636661)
Cable? What ISP? Similar price?
Re:Does the Boost library meet its original goal? by WalterBright on Sunday June 25, 2017 @11:16PM (#14633811)
An unexpected dividend of Boost is the Boost License, which is the most open source of the open source licenses. We use it pervasively in the D community.
Re:Does the Boost library meet its original goal? by kobeya on Sunday June 25, 2017 @11:37PM (#14633888)
> the most open source of the open source licenses

What does that mean?

Re:Does the Boost library meet its original goal? by WalterBright on Sunday June 25, 2017 @11:40PM (#14633897)
The least restrictions on what you can do with it. It was the closest to public domain we could find among the major licenses.
Re:Does the Boost library meet its original goal? by tbirdz on Monday June 26, 2017 @02:25AM (#14634516)
Check out the 0BSD license: https://spdx.org/licenses/0BSD.html

It's even more permissive. It doesn't require preserving copyright notices and including a copy of the license with source code forms, like the boost license does.

I'm not a lawyer, but the license uses the same text as the ISC license, but with the text imposing restrictions removed. So I think it should be as legally valid as the ISC license (again, I'm not a lawyer).

The problem with the boost license is it's pretty specific on "works are solely in the form of machine-executable object code generated by a source language processor." being allowed to be redistributed without including a license, so if I was making an interpreted language, or something that would embed it's own source code in the users code (eg a template library or something), then I don't think the boost license would allow them to redistribute that derived work, whereas 0BSD would.

The license is listed on OSI's page as the "Free Public License" for some reason https://opensource.org/licenses/FPL-1.0.0 , but the text is essentially the same.

Here's the whole 0BSD license text:

Copyright (C) DATE by AUTHOR

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

Re:Does the Boost library meet its original goal? by WalterBright on Monday June 26, 2017 @05:42AM (#14635387)
> I don't think the boost license would allow them to redistribute that derived work

That clause is only about distributing without the copyright notice. If you have any doubts, just include the copyright notice and you can redistribute it.

Disclaimer: I am not a lawyer and this isn't legal advice.

Re:Does the Boost library meet its original goal? by JonathonW on Monday June 26, 2017 @12:03AM (#14633994)
Of note, the Boost license only requires the copyright statement to be included when distributed in source form-- that's distinct from the MIT license and two-clause BSD, which are otherwise very similar but require the copyright statement to be included in any form (binary or source).
Re:Does the Boost library meet its original goal? by WalterBright on Monday June 26, 2017 @12:25AM (#14634082)
That's right. We didn't want to require users to include the copyright in the binary.

Another advantage Boost has is it is "corporate lawyer approved", meaning the license has never been an issue for any corporation wanting to use D.

Re:Does the Boost library meet its original goal? by kobeya on Monday June 26, 2017 @01:10AM (#14634246)
Then you mean "most permissive."
Re:Does the Boost library meet its original goal? by eslaught on Monday June 26, 2017 @12:12AM (#14634024)
Is CC0 not closer to being public domain? My understanding is that placing a work into public domain is actually non-trivial, so if that's really what you want to do you should use a license explicitly geared toward that:

https://creativecommons.org/publicdomain/zero/1.0/

I'm guessing that's not what you wanted, because when something is truly public domain then you lose any ability to control it whatsoever, but it is what you asked for.

Re:Does the Boost library meet its original goal? by tbirdz on Monday June 26, 2017 @02:17AM (#14634489)
Unfortunately CC0 is (still) not listed as an "approved OSI license"[0], so it is off the table for many folks

0: https://opensource.org/licenses/alphabetical

Re:Does the Boost library meet its original goal? by zodiac on Monday June 26, 2017 @02:12AM (#14634463)
If that is really your definition, wouldn't public domain be the "most open source" license?
Re:Does the Boost library meet its original goal? by WalterBright on Monday June 26, 2017 @02:14AM (#14634481)
Public domain has legal problems, such as in some countries it is not recognized.
Re:Does the Boost library meet its original goal? by noway421 on Sunday June 25, 2017 @10:16PM (#14633570)
This website has terrible scroll.
Re:Does the Boost library meet its original goal? by csmattryder on Monday June 26, 2017 @05:14AM (#14635262)
It also completely removes the Magic Mouse's swipe-left-to-go-back functionality.

Can we add "and your own page scrolling" to the "Don't roll your own crypto" rule? Please!

Re:Does the Boost library meet its original goal? by flukus on Sunday June 25, 2017 @11:46PM (#14633917)
On chrome it looks like native scrolling. I don't know why they decided to leave 20px of white space at the top though.
Re:Does the Boost library meet its original goal? by coding123 on Monday June 26, 2017 @01:10AM (#14634248)
On Chrome on a mac, this website is "jerky". I think a lot of these scroll-jacking scripts are designed to make the Windows user's experience better, but in reality, it is screwing up the Mac user's experience where scrolling has already been fixed perfectly for years.
Re:Does the Boost library meet its original goal? by ClassyJacket on Sunday June 25, 2017 @11:01PM (#14633742)
This website is unfortunately near unreadable thanks to hijacking my scrolling and constantly pushing me past where I want to look.
Re:Does the Boost library meet its original goal? by adzm on Sunday June 25, 2017 @09:27PM (#14633346)
It gets rehashed on the mailing lists all the time but the biggest issue with boost now is backwards compatibility. While it is great to have libraries working on older platforms, it's a pain to use modern cpp features.

With increased modularity, I'm sure this situation will be improved.

Re:Does the Boost library meet its original goal? by amelius on Monday June 26, 2017 @04:27AM (#14635024)
Boost really crossed the limits of what's reasonably possible in C++, imho. I wonder if language designers have taken notice.
Re:Does the Boost library meet its original goal? by trustworthy on Monday June 26, 2017 @04:34PM (#14640130)
There are a number of very valuable boost libraries and I don't think anyone would deny that it's been good for the language. However, to achieve that second goal, the website and documentation need some serious work. It can be difficult to pick up a new boost library and hit the ground running.
Re:Does the Boost library meet its original goal? by HelloNurse on Monday June 26, 2017 @03:28AM (#14634770)
If you consider tests and documentation excess baggage, you are not qualified to have anything to do with things as simple as sort functions.
Re:Does the Boost library meet its original goal? by sctb on Monday June 26, 2017 @12:36PM (#14638072)
We detached this subthread from https://news.ycombinator.com/item?id=14634687 and marked it off-topic.
Re:Does the Boost library meet its original goal? by tonyedgecombe on Monday June 26, 2017 @03:38AM (#14634804)
There is no need to be rude.
[dead]
Re:Does the Boost library meet its original goal? by fao_ on Monday June 26, 2017 @07:36AM (#14635922)
Perhaps if you stop being pretentious and start listening to criticism with an open ear, the criticism will make sense.
Re:Does the Boost library meet its original goal? by ezoe on Monday June 26, 2017 @05:22AM (#14635298)
Microsoft which provide such a standard non-conforming compiler related to the term "Modern C++"? Ugh.
Re:Does the Boost library meet its original goal? by pjmlp on Monday June 26, 2017 @07:09AM (#14635803)
Microsoft is actually the commercial C++ vendor with the best support for ANSI C++.

http://en.cppreference.com/w/cpp/compiler_support

Many people seem to forget there is a world outside clang and gcc.

Re:Does the Boost library meet its original goal? by nsb1 on Monday June 26, 2017 @08:04AM (#14636054)
Am I reading that chart wrong? From that page it looks to me like MSVC is quite a bit behind gcc and clang when it comes to feature support.
Re:Does the Boost library meet its original goal? by pjmlp on Monday June 26, 2017 @08:53AM (#14636351)
My point was comparing to other commercial C++ vendors, many of whom are the only option in certain types of projects.
Re:Does the Boost library meet its original goal? by restalis on Monday June 26, 2017 @08:47AM (#14636307)
"quite a bit behind" ...for C++ 2017?