« first day (2343 days earlier)      last day (2605 days later) » 
00:00 - 14:0014:00 - 00:00

Joe
2:01 PM
please I need help
 
Holland is a city in the western region of the Lower Peninsula of the U.S. state of Michigan. It is situated near the eastern shore of Lake Michigan on Lake Macatawa, which is fed by the Macatawa River (formerly known locally as the Black River). The city spans the Ottawa/Allegan county line, with 9.08 square miles (23.52 km2) in Ottawa and the remaining 8.13 square miles (21.06 km2) in Allegan. As of the 2010 census, the population was 33,051, with an Urbanized Area population of 95,394. Holland is the largest city in Ottawa County, and as of 2013 part of the Grand Rapids-Wyoming-Muskegon ...
 
Joe
where is the multipurpose knop in the oscilloscope?
@R.MartinhoFernandes
 
@R.MartinhoFernandes Nobody cares about crazy Americans naming their towns after cities in Europe. There is at least one Praha there as well.
 
@Joe amazing
 
@wilx Also an Oxford and a Cambridge I believe
 
nwp
2:02 PM
@Joe bottom right center, the big one
 
Joe
@nwp thank you
 
lol, one.
You guys are terribly underestimating them.
@wilx FWIW, this was unrelated. Before I always meant the province(s) in the Netherlands.
 
@R.MartinhoFernandes lol
 
2:06 PM
Wikipedia also lists two Pragues, one New Prague, and one Praha.
And some 30 Cambridges.
They're way crazier than "one".
@Joe Don't ping random people with random questions about random oscilloscopes.
room topic changed to Lounge<C++>: Let's tone down the randomness [c++] [c++11] [c++14] [c++-faq]
 
I need a meta::zip_with :(
 
nwp
room topic changed to Lounge<C++>: sponsored by random.org [c++] [c++11] [c++14] [c++-faq]
 
2:40 PM
um
guys
// works
std::auto_ptr<int> p (new int(5));
// works not
std::auto_ptr<int> q = new int(5);
what am I missing here
 
Ven
auto_ptr???????????
 
nwp
that auto_ptr is deprecated (or even removed)?
 
Ven
you're missing common sense.
 
ffs
I mean the init
I thought those two are equivalent
 
the constructor for auto_ptr(T*) is explicit to avoid the silent conversion that would erroneously adopt stray pointers
 
2:48 PM
@ratchetfreak eh
 
3:03 PM
> If T is a class type, and the cv-unqualified version of the type of other is not T or derived from T, or if T is non-class type, but the type of other is a class type, user-defined conversion sequences that can convert from the type of other to T (or to a type derived from T if T is a class type and a conversion function is available) are examined and the best one is selected through overload resolution.
 
@BartekBanachewicz The other route is copy construction but auto_ptr only permits non-const, which won't bind to a temporary- so this wouldn't work even if it was implicit
 
user1804599
3:30 PM
@R.MartinhoFernandes I can't recall anyone ever using "Holland" to refer to that region.
 
user1804599
People say "North and South Holland".
 
user1804599
When someone says "Holland" most people assume the whole country.
 
user1804599
Especially in "Hollander".
 
3:37 PM
@rightfold Who? Dutch?
 
@Puppy coughMSVCcough
 
nwp
0
Q: could I potetionally dodge segmenation faults by adding ram?

user7157477just as my title asks, im wondering if I can potetionally dodge segmention fault crashes of my program if I add more ram? any advice on how to dodge is appreciated but this question is quite crucial since it depends if ill upgrade to 32gb ram instead of 8 program is written in c++

awesome
 
3:54 PM
@R.MartinhoFernandes My brother looked once, and found that there was at least one "Aberdeen" in each state in the US...
 
Ugh. BOOST_CHECK_CLOSE takes a tolerance value as double. Which is then FUCKING interpreted as... a percentage?!?! So, I get the cryptic 1.30144e-08 exceeds threshold (of 1e-6)...
ffs
When is a tolerance in percents convenient
 
@sehe When magnitudes differ largely? :)
 
You must be kidding.
 
seems convenient for confusing people
 
It makes no fucking sense. It just means that tolerances have to be gratuitously specified * 100.0
Which then becomes unreadable (literal programming, anyone)
I stooped to the tedious comment:
    using ti::text::gps::exif_hms_to_degrees;
    BOOST_CHECK_CLOSE(exif_hms_to_degrees(img.attribute("exif:GPSLatitude")),  52.0912930, 1e-6 * 100.0/*%*/);
    BOOST_CHECK_CLOSE(exif_hms_to_degrees(img.attribute("exif:GPSLongitude")),  5.1225116, 1e-6 * 100.0/*%*/);
 
4:04 PM
seems designed for the casual user, Close means it's 0.1% even though the normal programmer works in direct numbers
 
It makes no sense for floating point represented types anyways.
When percentages make sense, decimal types make sense.
In the overlap (floating + percentage tolerances) scientific notation is the norm, IME
A random offset of -2 in exponents is ... not usual.
 
user1804599
@sehe It's not times 100%
 
user1804599
100% = 1
 
user1804599
@sehe easily resolved:
 
Yeah. The comment is to make a point. It is designed as a "unit" - it should indeed be * 1.0, but spelled with the unit
 
user1804599
4:08 PM
double tolerance(double n) {
  return n * 100.0;
}
 
@rightfold Yeah. The comment is to make a point. It is designed as a "unit" - it should indeed be * 1.0, but spelled with the unit
@rightfold but the result just a double, hence it is wrong.
 
user1804599
?
 
user1804599
100% is also a double, it's equal to 1.
 
user1804599
BOOST_CHECK_CLOSE(exif_hms_to_degrees(img.attribute("exif:GPSLongitude")), 5.1225116, tolerance(1e-6));
 
@rightfold Except the % is just a comment. So it expresses the intent (* 1.0) while scaling the tolerance
 
user1804599
4:12 PM
Speaking of floats, finally making the switch from floats to integers for money.
 
Use decimals :)
 
user1804599
Integers or rationals, depending on needs.
 
I have two days off. Perfect for catching up on some anime.
 
user1804599
The latter guarantees n / m * m = n.
 
user1804599
The former rounds to whatever you specify in the type.
 
user1804599
4:15 PM
For example with EUR it rounds to cents.
 
user1804599
Still using floats for display, but I think this is safe.
 
user1804599
exports['showDiscrete\''] = function(n) {
  return function(decimals) {
    return (n / Math.pow(10, decimals)).toFixed(decimals);
  };
};
 
blech javascript modules
haven't found any that are not shit yet
 
user1804599
OK
 
user1804599
Should actually just convert the integer n to a string, then insert the . in the right place, and pad with zeroes as necessary.
 
Xeo
4:44 PM
@rightfold manual currying?
I can give @Xeo and @JamesMcNellis a reason for specialization, it's called extensibility. If it weren't for template specialzation, how would you overload operator << (extraction operator) for your custom class? I use specialization in a mathematical library I have to allow other classes to defien their additive and multiplicative identities without editing the Identity<> class. I'm just making this comment because both answers asked "why specialize" casuing the OP to doubt specialization. — MarkMYoung 2 hours ago
lol
 
5:26 PM
@Xeo I doubt specialization as well. As Heinlein said, humans are generalists. Specialization is for insects.
(Just a slight change of topic there....)
 
5:39 PM
Looks like all the tech sites finally caught on to the Flops crash.
Maybe that's why HWBOT is really slow today. Since everyone is massively linking to my thread. lol
 
user1804599
@Xeo This function is declared extern in PureScript. It must match the AJI.
 
6:05 PM
@StackedCrooked which one is that?
 
ah, right
also cool, the end of the season in two weeks
this means I can start watching this seasons' anime soon
 
Also, Attack on Titan S2 starting soon.
Finally more human nom nom.
 
tasty
 
Tastes like pork.
 
Xeo
7:06 PM
@rightfold ... Application J?? Interface?
> The decision of the C++ standards committee to standardise operator "" was the final straw. What were they thinking? Is this more important than the 10+ year overdue need for a proper module system?
cuz you can only do one thing at a time, surely
> People have been screaming for years about slow C++ build times and dependency management, but have the standards committee addressed these important issues? Of course not, they were too busy adding operator "". C++ has clearly lost its way.
lol'd
 
@Xeo Source? It sounds like Bartek.
 
Xeo
(Found it through a link in a hot network question)
(Find hot network questions in your area!)
 
7:27 PM
@Xeo Javascript
 
Xeo
that's a thing?
seriously?
 
8:02 PM
sure
different languages that compile to JS needs JS interfaces just like languages that compile to binary need binary interfaces
 
8:12 PM
@StackedCrooked Oooooh *-*
@Xeo Bring this guy to a standard committee meeting and giggle a lot.
 
I'm sad that Python beat MATLAB
 
why
(are you sad)
 
Many reasons, broken multi-threading (fucking fork()), inconsistent types used through the eco system. Differences between a matrix and a value. I'm writing stuff like gpuarray.sum(gpu_frames[0]).get().item(). Looks like C++ ... :-(
In MATLAB it would be sum(gpu_frames(:))
My python code has all the problems of C++ but none of the advantages.
 
Ell
@Mikhail what library?
 
But Python has this going for it: import tensorflow as tf
 
Ell
8:27 PM
numpy?
 
Yeah, numpy and PyCUDA
 
Ell
oh tensorflow
oh numpy
 
I heard that numpy modules can be bad for you
 
Ell
A matrix is different to a scalar no? they should have different types?
 
In MATLAB they are the same types (which is desired)
 
Ell
8:29 PM
sounds like a weird desire to me :P
 
In Python matrices are most often numpy objects
 
Ell
yeah
 
@Ell it's a good thing when your main thing are matrix operations
 
Ell
I can't see how it's ever a good thing :V
 
because you're not doing matrix operations
 
8:31 PM
Sometimes you want your scalar to be a fucking 1x1 matrix.
 
Or you don't want to verify the return type is compatible
 
also your matrix operating functions can operate on scalars
 
Ell
@milleniumbug right
you want scalar * (4x6) to work
but not (1x1) * (4x6)
 
Actually I want (1x1)*(4x6) to work
 
Ell
what about (1x2)*(4x6)?
 
8:32 PM
In MATLAB you have a 'dot' prefix to indicate element wise computation.
@Ell no those dimensions don't work
 
Ell
@Mikhail exactly :P
nor do 1x1
 
Except it does
 
Ell
how?
 
scale everything by the first one
a*b
 
Ell
aka scalar multiplication? :P
 
8:34 PM
YES
People like you are why we can't have nice things :-)
 
pointless typing is pointless
 
Ell
@Mikhail people like you are why we can't have nice things :P
I guess I don't see the advantage of having [1x1] be the same as a scalar
What does it allow you to do?
 
Less code, and less writing
or if it is the same size as b, or in MATLAB if it can do matrix multiplication with b. There are actually 3 cases.
 
Ell
only if you know a is a [1x1], right?
 
8:38 PM
Instead we have this, a.asstype()*b
@milleniumbug I'm sorry, I stopped reading after the title
 
@Mikhail So basically code/math golf?
 
@Morwenn What if numpy objects were native?
 
@Mikhail I guess I wouldn't give more of a fuck.
 
@Mikhail those being broadcast pointwise, pointwise, and matrix multiplication?
 
I might be mistaken though.
 
8:40 PM
ASS TYPE (this is what my code has become)
 
also the biggest advantage is that matrices are
[ 1 2 3 4
  5 6 7 8 ]
 
Ell
@Mikhail what are the 3 cases?
 
instead of [[1,2,3,4],[5,6,7,8]]
saves on pointless typing
 
Update from Clang 3.8 to Clang 3.9: everything works.
 
@Ell broadcast pointwise, pointwise, and matrix multiplication
 
8:43 PM
No fucking template regression.
 
MATLAB's paradigm is "everything's a matrix unless it isn't"
 
Ell
@Mikhail is pointwise the same as hadamard product?
 
hence, scalars are matrices, vectors are matrices
 
yes, its a hadamard product (circle dot)
 
@milleniumbug I see no reduction.
 
8:46 PM
the commas
and extra braces
 
you added spaces in exactly the same amount and position
 
space bar and enter are easier to press
 
Ell
I've never heard of broadcasting
reading about it now :thumbsup:
 
dunno about you, but I can actually use my right-hand-thumb to press the , key
 
Ell
what the heck
 
8:47 PM
fitts law
 
but I prefer to use my right-hand index finger because it's more precise
 
Ell
thumb for pressing , ?
 
in any case getting a good range on the numerical keys means shifting my hands so that the space bar is not so conveniently available
 
there are tools to learn and practice touch typing
 
if I was using it a lot I'd go to numpad but then I'd have a specialist hand position for this, probably numpad right hand, left hand for enter/space/comma
 
8:49 PM
alt-right hand
 
in which case it really doesn't matter since I'd probably just use my left index finger for all of the above keys
 
9:09 PM
12 hours ago, by VermillionAzure
Like, should &(1) == &(1) hm...
😂
 
Can't take the address of a prvalue.
 
whywouldyou
 
I'm pure too, but sometimes people want my address.
 
4what
 
Raw sex I guess?
 
9:14 PM
kinky
 
canihaveit
 
wrap them in some smart sex
 
ay
 
otherwise it can leak
 
@milleniumbug The kind that automagically cleans the sheets once you're finished.
 
9:15 PM
:D
 
I'll avoid jokes with weak sex.
@Shoe What for? :D
 
rawsex
 
Sorry, I'm not into shoes.
 
mylacesgetbiggerthanthat
iswear
 
Shoe is wear, sure.
 
9:18 PM
😫
 
I guess I'm not really into sex either anyway xD
 
nwp
10:12 PM
> Sometimes i feel that the compiler ignores all my comments.
 
user1804599
> Don't give paperclips to babies; they could swallow them.
Oh that's okay! I've got tons of them!
3
 
@rightfold :D
 
user1804599
11:17 PM
@Xeo JavaScript!
 
user1804599
It's JavaScript, so it's definitely not a programming interface.
 
user1804599
It's also not binary.
 
user1804599
It's JavaScript.
 
Real question, is WebAssembly actually assembly?
 
user1804599
What is assembly?
 
11:20 PM
baby don't hurt me
 
user1804599
WebAssembly is a stack language with a binary format.
 
Whats up with the unicorns on webassembly.org/docs/semantics/#Types ?
I'd wager that JS is winning the language war because the DOM makes it easy to develop reasonable GUI's and deploy them. wasm is an interesting beast because it maintains the lack of reasonable GUI library nightmare while solving some of the deployment issues. I'd wager that the adoption of wasm will largely depend on Electron style integration with reasonable GUI tool-kits. This effectively means that applications will completely hijack the browser. Not that any end users, cared anyways.
 
that has nothing to do with it
the native DOM APIs are absolute shite
JS is winning the language war, insofar that it actually is, is because it's simple to pick up and run
 
Kinda, but compared to what? MFC? GTK? Qt? WPF?
@Puppy Yeah, its also easy to pick up and make a GUI that doesn't suck.
 
well, it's certainly true that I cannot name any non-shit GUI technologies of any kind except React
@Mikhail Only really simple ones.
 
11:33 PM
@Puppy I think we're agreeing. I'd wager that the DOM as a layout engine is superior to the half-assed DOM like engines of the C++ world. Hell you can use CSS in Qt! (Except when you can't, because there are 3 ways to lay stuff out...)
 
yes, you just have to be using Javascript, one of the worst languages ever to exist, and also be stuck in the Web world, one of the worst environments ever to exist.
 
But curiously, if you use wasm you don't get the GUI toolkit advantage.
 
frankly, I think I might prefer MFC.
 
user1804599
Halogen master race.
 
user1804599
Someone should make a React driver for it so it works with React Native.
 
11:36 PM
SOMEONE SHOULD MAKE A REACT DRIVER FOR C++
 
user1804599
@Mikhail wasm is a DSL like C++; it's not for GUIs but for the small pieces of your app where you can't have a GC
 
@rightfold Personally, I'm more hoping that we can finally start writing our clients in languages that are not shit.
 
user1804599
Yes, PureScript.
 
user1804599
You could have been doing that for years now.
 
user1804599
The stubbornness is killing you. You should get over it.
 
11:37 PM
pretty sure that I added the qualifier of "not shit"
 
@Puppy A fine demonstration of a psychological relationship. One of you is being logical--and the other psycho.
 
user1804599
Purity, totality, and types are requisites of high-quality GUI libraries.
 
@JerryCoffin I'm pretty sure we all agree on that, the question is who is which
 
Don't know what to say about rightfold calling puppy "stubborn"
6
 
@Puppy I was careful to avoid that.
 
11:44 PM
feels slightly ironic
 
@milleniumbug The standard phrase is something about the pot calling the kettle black.
 
my kettle is red.
 
@rightfold I can't tell if this is a joke. Take a look at the current contenders for good GUI libraries, which ones have any of this?
I'd argue that good GUI toolkits look like the DOM, and don't have overlapping functionality. Also they have many pre-built widgets, so you can get your work done :-)
 
user1804599
@Mikhail Halogen.
 
I keep tying it into Google and not getting anything.
 
user1804599
11:52 PM
And as of soon, you can generate Halogen components from your types using Data.Generic.Rep!
 
hmm
their "super simple button" example is pretty funny
 
user1804599
Yes :)
 
user1804599
Keep simple stuff simple.
 
user1804599
11:56 PM
No horrible special cases because muhmuh 10 LoC
 
@jaggedSpire hmm... hi
 
user1804599
And easy to make abstractions, due to parametricity.
 
@Borgleader squeaks
 
meh
it seems like all the button actually does is store one boolean of state, have one trivial click handler, and one trivial render function
there's a lot of bullshit in that file for something so simple
 
00:00 - 14:0014:00 - 00:00

« first day (2343 days earlier)      last day (2605 days later) »