« first day (1590 days earlier)      last day (3348 days later) » 

7:00 PM
hmm
what if... semantic errors didn't need locations?
 
@райтфолд The Perly Gates.
 
hmm
apparently throw std::runtime_error("fuck"); is actually pretty popular in the Wide codebase.
 
user1804599
I do throw "fuck";.
 
user1804599
Sometimes throw 42;.
 
argh
fucking VS
I wanted to find all uses of a given overload, and it found all references to all overloads.
 
user1804599
7:04 PM
@thecoshman let's write a program in Perl.
 
now I have no idea.
 
I was working with some Russian source code for a while... they had some interesting oaths and curses in there, including some funny misspellings.
 
user1804599
OAuth and ncurses.
 
user1804599
The perfect ingredients for becoming suicidal.
 
does anyone here happen to be familiar with boost::asio async_read_some()? I have a basic question that I'm not finding a quick answer to.
 
7:07 PM
idiots, if all projects slows up at the moment of Generation code, so this is my fail or not enough informations for your dumb asses? — niceday 12 secs ago
posting before it goes down
 
user1804599
lol
 
You're compiling, and noticing things slow down during compilation?
 
no.
 
+1 great answer
 
thank you
let me expand upon that
nobody here, ever, has used boost::asio async_read_some, and they definitely whilst not using it did not encounter a compilation slowdown
 
7:10 PM
lol ok great thanks
 
You're bad at reading Puppy
 
user1804599
I have used async_read_some once.
 
user1804599
also woo I almost have four million lollipops
 
@thecoshman how pain is it to run
 
CLICK SOME COOKIES
 
7:12 PM
when the docs refer to "the amount of data requested" is that just the size of the buffer given to async_read_some, or is it the size sent by the sender on the other end?
 
It is likely to be the amount of data requested
 
@Dronz Sounds like the size of the buffer you passed.
 
ok. So to know how much data was sent by the other side, they need to send that info in a header, or use a message terminator singal or something.
 
@Dronz Yes.
 
aha! Thank you!
I'm loving boost::asio but the complexity and amount of context assumptions to deduce or invent seems quite high.
 
7:14 PM
That's networking in general
You can't know how much data was sent or not otherwise
 
hehe ya I am learning about the complexity... woof.
 
Or: you can keep reading, but you need out of band information for verification
 
Ya I was hoping boost::asio was going to do that for me. :-D
 
@Dronz For that you'd need something higher level and more specific like Google Protocol buffers or some form of RPC.
 
But the main thing is knowing I need to do that myself, which is fine now that I know it. The docs are just like "the amount requested" without saying by whom or how. I was hoping the async_send() on the other end would pass the amount intended to send in a nice automatic header I wouldn't have to touch myself.
 
7:17 PM
It's not ASIO's responsibility
There doesn't have to be async_send on the other end
 
Very helpful to know that, so thanks!
Ah ok. I can write my own protocol then.
I do like how much control you end up with once it's figured out though.
 
@райтфолд any ideas what?
@BartekBanachewicz which what?
 
@thecoshman your tag
 
@thecoshman Doesn't matter, it'll die in a day anyway
 
@BartekBanachewicz ... just run it?
 
user1804599
7:26 PM
@thecoshman Hexapoda web interface.
 
@thecoshman this is C++ how do i run it
 
@CatPlusPlus very good point
@BartekBanachewicz are you trying to compile it?
 
Plug it into CI man
 
@thecoshman i was thinking about it
 
@CatPlusPlus might do at some stage
 
user1804599
7:27 PM
I'm writing the non-web tool in Eiffel.
 
@BartekBanachewicz did you download the bin from my site?
 
so are you asking me how you compile C++ into a native program and then execute it?
 
i dunno building C++ is shit
all the build systems and dependencies
 
premake4 gmake ; make
well, once you've sorted out dependencies
 
7:29 PM
I just type 'make' ;-)
 
 
you might need to do the same in glsdk folder
 
cool chart
 
Xeo
nom nom pasta
 
Nom nom noodles.
 
7:32 PM
sip sip energy drink
 
@thecoshman beh
 
Type type keyboard.
 
Breath breath lungs.
 
@BartekBanachewicz if you've done C++ & gl stuff then you probably have all the dependencies
but frankly, being able to build it is reserved for smart people :P
 
lol
 
7:36 PM
@orlp fart fart butt.
 
@BartekBanachewicz also, do you care what is done with gldr?
 
@thecoshman as in
 
I am bored; please help.
 
@BartekBanachewicz well, I think that I will aim to put my low level shit in there, so would you still be up for helping deliver a decent library with it?
 
@FilipRoséen-refp Maybe you should consult an adult.
 
7:40 PM
@orlp pff.. adults are boring
 
to be honest, even if you just wanted to point out where shit is being really shit, that's cool
 
pls remove
 
1 message moved to bin
 
:21701612 lol
 
:C
 
7:41 PM
@Mysticial hey you're here
 
@Nooble you know how it works
 
I was in the middle of editing it :P
 
This is for whips not wips
 
user1804599
I don't like this in lisps: (let [x y] (+ x y)).
 
user1804599
I want (do (let [x y]) (+ x y)) instead.
 
7:47 PM
oooh, some stupid shit with disabling vertex data or some shit but not enabling it...
made perfect sense...
 
@райтфолд Take a sad Lisp and make it better!
 
@milleniumbug heh
 
user1804599
@FredOverflow you can trivially construct a macro like this in Clojure.
 
Okay fine.
 
7:50 PM
@BartekBanachewicz is there any sense in doing a load of bind/use(0) at the end of the display function?
 
@райтфолд What for
 
@thecoshman no
 
opposed to just leaving some 'random' thing bound
 
@thecoshman Easier debugging?
 
7:51 PM
@Nooble What? Didn't you know oneboxed animated GIFs are not allowed here?
 
I imagine if you try to render nothing you get an error
 
user1804599
@CatPlusPlus less pointless indentation/nesting/consecutive closing parentheses
 
also don't listen to puppy but I gave you that advice before
 
@райтфолд Uh
 
@FredOverflow Like I said, I knew, I forgot for a split second and wasn't fast enough to ninja-edit.
I need to level up my speed.
 
user1804599
7:52 PM
This example is trivial.
 
@Nooble How about you grab LriO with your hand and pull forward? ;)
 
:P
 
user1804599
(do (let [x y])
    (f (+ x y))
    (let [z (a)])
    (+ z x))
; versus
(let [x y]
  (f (+ x y))
  (let [z (a)] ; ugh
    (+ z x)))
 
user1804599
The former is much easier to read.
 
> Java is the beloved old workhorse and its strictures and sober evolution have managed to bring library breadth, security and stability to enterprise development and inspired C# and many other languages. Java was the rightful heir to C and innovation in Java was reluctantly pushed on it by those who stretched its strictures. That was the state of affairs before open-source was fully accepted.
2
okay...
 
epic fail
 
@райтфолд it would be even easier to read if you switched to a language that isn't just )))))
@LightnessRacesinOrbit why is that.. "hmm"?
 
cos it dont work
 
@FilipRoséen-refp Is there a LISP dialect that allows the programmer to leave off the trailing closing parens? Like other languages allow dropping the semicolon?
 
7:56 PM
@FredOverflow wouldn't work well. expressions can span multiple lines.
 
Xeo
@LightnessRacesinOrbit Can't work.
 
@райтфолд Idea for a programming language: Combine Ruby with Go. Project name: RuGby
 
rugby
 
@LightnessRacesinOrbit Either deduction or conversions
 
@Xeo yes that's why I said 'hmm'
it's shite
 
Xeo
7:57 PM
The compiler can't decide what to instantiate the basic_string with.
 
user1804599
@FredOverflow lol that'd attract even more hipsters than Ruby and Go combined.
 
Xeo
@LightnessRacesinOrbit It's impossible.
 
chicken and egg problem, I do get that
 
Xeo
Unless they add reverse-deduction from ctors.
 
to find CharT it has to know the conversion is possible, but it can't know the conversion is possible until it found CharT
 
Xeo
7:57 PM
Which there was a proposal for, IIRC.
 
@LightnessRacesinOrbit or use std::literals::string_literals (though you'll have to change the allocator-part)
 
just saying it's shit
 
Forward it
 
user1804599
Does MSVC support variadic templates already?
 
@райтфолд Or make a faster version of Go and name it Run.
@райтфолд Since 2013 it does.
 
7:58 PM
logic.ly/demo is amazing.
 
user1804599
@FredOverflow How about constexpr?
 
user1804599
@FredOverflow There's llgo which uses LLVM. I think it's fast.
 
user1804599
@Nooble lol, why does it have more than NAND?
 
8:01 PM
@райтфолд My link clearly states that constexpr is not supported.
 
user1804599
lol
 
@Nooble i remember doing this stuff in hardware on uni
fucking broken wires
 
i can live with it
computer, delete that entire personal log
 
"we have a perfect copy on a simulator and it's working"
 
@райтфолд It's a simple 4 bit ripple-carry adder. Doing it all in NAND would take so long.
 
8:02 PM
"can't grade you, find a working wire and assemble the whole thing"
 
Mayday, also known as Air Crash Investigation(s) in Australia, South Africa, Asia and some European countries, and Air Emergency and Air Disasters in the United States, is a Canadian documentary television program produced by Cineflix investigating air crashes, near-crashes, hijackings, bombings and other disasters. Mayday uses re-enactments and computer-generated imagery to reconstruct for its audiences the sequence of events leading up to each disaster. In addition, aviation experts, retired pilots and crash investigators are interviewed explaining how these emergencies came about, how they were...
I love this show -- it's about debugging.
 
@BartekBanachewicz I can see the merit in making sure students can handle the logic, it takes some thinking skills, but having to do it with real hardware?
 
herp derp uni
 
@FilipRoséen-refp Does the C++ community benefit from Roslyn in any way?
 
@FredOverflow did you see the one about japan air flight something something... the largest aviation disaster ever
 
8:04 PM
@FredOverflow I have no idea what/who Roslyn is
 
yeah, the broken wires were fun.
 
@LightnessRacesinOrbit IMO, all versions are open to considerable improvement. I'd write it more like this: coliru.stacked-crooked.com/a/33de00df121535eb
 
I wonder how many students failed because of them
 
@FredOverflow Not unless Microsoft decide that Roslyn worked well and they should do the same for C++.
 
lol they'll never get the clusterfuck out of MSVC
 
user1804599
8:06 PM
 
user1804599
Awesome!
 
I'm definitely getting the increasing feeling that the MSVC source code is a liability and not an asset.
 
user1804599
This is kinda similar to Funciton!
 
and that they should just move to Clang instead
 
@райтфолд is that a website?
 
8:07 PM
@Puppy Given that they're already using the EDG front-end for some things, I'd guess they're more likely to switch to that instead.
 
user1804599
Yes follow the reply arrow.
 
@JerryCoffin EDG is more expensive, it doesn't have a backend, and it's not open-source.
 
@райтфолд theres no link...just another picture
 
user1804599
RTFT
 
I mean, I assume that the terms of Microsoft's licence for EDG does not include the source for their front-end.
 
8:09 PM
It might
Doesn't mean it'd be OSS
 
@Puppy What about legacy stuff? Switching to clang would break all the MSVC-specific stuff I bet lots of companies rely on
 
@Puppy It's a price they're already paying though. And it does include a back-end (that produces C). Not being open-source may well count as a plus in MS's figuring.
 
@Pris That was only the second largest. The largest was the collision of 2 planes on the runway in Tenerife, yielding over 500 deaths.
 
@Pris Never heard of LLVM-VS?
 
The Tenerife airport disaster was a fatal runway collision between two Boeing 747s on Sunday, March 27, 1977 at Los Rodeos Airport (now Tenerife North Airport) on the Spanish island of Tenerife, one of the Canary Islands. The crash killed 583 people, making it the deadliest accident in aviation history. As a result of the complex interaction of organizational influences, environmental preconditions, and unsafe acts leading up to this aircraft mishap, the disaster at Tenerife has served as a textbook example for reviewing the processes and frameworks used in aviation mishap investigations and accident...
 
8:10 PM
@Puppy The last time I checked, all licenses from EDG included source code.
 
@Pris Halting MSVC development in lieu of using something less clusterfucky doesn't mean they'll abandon support for older versions
 
@JerryCoffin Huh. Well, one point for EDG then I guess.
 
It's incredibly what can go wrong in real life.
 
but Clang is still free with a better backend, free development, and free porting/compatibility to other platforms or targets, and existing MSVC compatibility layer
so if I were Microsoft I'd drop EDG in favour of Clang
it's not like their EDG-based tools work especially well.
and if they used the same compiler for both intellisense and actual compilation, the results might actually line up a bit.
 
8:13 PM
@Puppy Oh, it's just a C# thingie? Forget what I said then.
 
It's a general analysis/compiler framework
 
@FredOverflow C#, VB and F#, I think.
 
But nobody wants to do C++ lol
It's geared for .NET
 
but certainly not C++.
 
Is C++.net or whatever it was called still a thing?
 
8:15 PM
@Puppy Their EDG-based tools are handicapped by using EDG's MSVC compatibility mode. Unfortunately, as MS do a release, EDG's newest release is meant to be compatible with MS's previous release. If, however, they just dropped the MSVC compatibility mode entirely, the EDG front-end could run in its native mode.
 
Managed C++?
 
No, C++/CLI is though
 
C++/CLI and unfortunately, it is still a thing and it's still shit.
 
That doesn't mean anyone cares
 
you have to do a whole bunch of grunt work that the compiler should be able to do for you.
 
8:15 PM
And what about that C++ extension with the ^ pointers?
 
C++/CX or whatever?
no idea.
 
@FredOverflow Managed C++ was v. 1. C++/CLI was v. 2. C++/CX is v. 3. It's still around, and still sucks.
 
that's not really true.
 
Oh, you guys already identified it.
 
That's WinRT thing
I've never seen WinRT anywhere
 
8:16 PM
C++/CX is definitely not the same thing as C++/CLI.
 
Probably related to Windows Store
 
although Microsoft did not make life easier by using the same syntax extensions.
 
Why would you use C++ if you can use C#
WEIRD
 
because C# is annoying as shit
 
@Puppy The exact same thing? No, of course not. A newer version of the same basic idea? Yes, it is.
 
8:18 PM
@райтфолд Nice half-adder.
 
@Pris Have you watched this one? I don't want to spoil anything, but it's amazing how "simple" the error was.
 
user1804599
@Nooble Thanks.
 
user1804599
I had this wonderful idea.
 
@JerryCoffin Mmmm, I don't really think so. The world that C++/CX is trying to play with is vastly more similar to actual C++ than .NET is. The whole problem with C++/CLI is that they couldn't be arsed to make C++ and .NET actually work together in any meaningful way.
 
@Pris Yes it's a website. logic.ly/demo
 
user1804599
8:19 PM
How about I have only a single keyword to define new syntax?
 
user1804599
And use that to introduce all the other syntax such as the syntax for function definitions and if expressions?
 
if you take .NET out of the picture then you remove the core problem.
 
-1
Q: The Definitive C++ Book Guide and List V2.0

JobranI know this is a duplicate and I have a very good reason to ask it. The original question was posted 6 years ago and is considered to be out of date(at least I think that its out of date). So I want to ask all of you good programmer out there to help me out create The Definitive C++ Book Guide an...

3
 
user1804599
Hmm. I want a better idea.
 
user1804599
Somethink like lisp but with better syntax.
 
user1804599
8:20 PM
S-expressions and lists suck.
 
user1804599
But macros and the program being a data structure are great.
 
@Feeds Hilarious.
 
what I like about bad c++-faq questions is that they get Lounged automatically.
 
user1804599
lol
 
@райтфолд Perhaps if you started by learning what s-expressions are (and aren't) we could take your pronouncements on the subject more seriously (hint: the "Lisp" code you posted earlier was written as sort of a warped form of M-expressions, not s-expressions).
 
8:25 PM
> Please edit the accepted answer to provide quality books and an approximate skill level — preferably after discussing your addition in the C++ chat room . (The regulars might mercilessly undo your work if they disagree with a recommendation.)
lol
 
@Puppy It's true that it's trying to solve a somewhat different problem. My take is that MS has realized that they don't have a good solution to the problem they were trying to solve, so for version three, they gave up and decided against dragging in problems they couldn't even hope to solve.
IOW, yes, it is a new version, but with a more realistic scope of problem to (attempt to) solve.
 
@JerryCoffin I dunno, I think that they could have solved C++ and .NET a lot better.
 
Ok, so I'm installing Linux on a blank HDD. I want to leave some space for Windows. So I created a partition that took half the space. Anything else I need to do?
 
@Borgleader which distro
 
Ubuntu
 
8:30 PM
4271
Q: The Definitive C++ Book Guide and List

grepsedawkThis question attempts to collect the few pearls among the dozens of bad C++ books that are published every year. Unlike many other programming languages, which are often picked up on the go from tutorials found on the Internet, few are able to quickly pick up C++ without studying a well-written...

Why is only the first answer visible? Does that happen with all locked questions?
 
Because the rest is removed?
 
@Borgleader pray
 
@FredOverflow The rest were all deleted.
 
@Puppy Seems to me that anything that tries to be C++, but without deterministic destruction strikes me as a lot like an attempt at: "water, but not wet".
 
Dry water, an unusual form of "powdered liquid", is a water-air emulsion in which tiny water droplets, each the size of a grain of sand, are surrounded by a sandy silica coating. Dry water actually consists of 95 percent liquid water, but the silica coating prevents the water droplets from combining and turning back into a bulk liquid. The result is a white powder that looks very similar to table salt. == Discovery == Dry water was first patented in 1968 and was immediately snatched up by cosmetic companies as it appeared to have potential applications in the cosmetics field. It was rediscovered...
 
8:32 PM
> /dev/sda
/dev/sda1 ext4
free space
I need a swap partition don't i?
 
@JerryCoffin Ah well, you can make it work as far as .NET supports it by automatically implementing IDisposable as calling the destructor.
as for local variables, they can be destructed deterministically as usual.
 
@FredOverflow That's cool.
 
@Borgleader Depends. Not everybody needs one. I don't have one, and my computer is doing just fine.
 
@Borgleader No, probably not
 
@Nooble Actually, ice would be cooler
 
8:34 PM
@sehe :P
 
so
 
@FredOverflow Speaking of ice... Isn't that dry water?
 
all I have to do is refactor nearly my entire analyzer to be strongly exception safe.
 
@Nooble Ben & Jerry knew a thing or too
 
and remove all those silly runtime_errors.
 
how hard could it be.
 
@Nooble Depends on the definition of wet.
 
@Pris what the hell are they doin' ;)
 
@Pris "Must"? How does one enforce moving from GC to RC?
 
Look very closely
 
8:37 PM
By not accepting apps to the store
They have a review process
 
@FredOverflow and the level of pedantism in the observer
 
@CatPlusPlus Human?
 
Or they could just tear out the runtime parts needed for GC to work
This is OSX, Apple's word is holy
 
The last of the walled gardens
 
@FredOverflow Yes
 
8:38 PM
@sehe I guess--okay, how about "water, but no hydrogen or oxygen", for the pedantic? :-)
 
I believe the Pope would have an answer to that
 
@BartekBanachewicz did you say that if you're shader takes a vec4, but you fed it a vec3 it auto expands it and sets the w to 1?
 
user1804599
OK, I made my grammar context-sensitive.
 
user1804599
Great.
 
good job.
 
8:40 PM
If you continue this project for more than another week, it'll have a full featured MUA
 
user1804599
What is a MUA?
 
Haha no it won't
 
user1804599
Now you can define custom keywords.
 
useful
 
user1804599
Yes.
 
user1804599
8:42 PM
So now the only keyword in the language is keyword.
 
Well, I have to go for a while. TTYL.
 
@JerryCoffin Bye.
 
ah ha.
you, my friend, are not idempotent, you are full of evil side effects.
in fact, you are a totally random place to do that thing that needs doing, what the fuck.
 
user1804599
Hom seems similar to Om, which is great.
 
user1804599
8:47 PM
Though Om's lenses are highly inferior.
 
@thecoshman not him but thats what happens
 
hmm
I have a two-phase init problem.
 
10
Q: How is Meyers' implementation of a Singleton actually a Singleton

lbrendanlI have been reading a lot about Singletons, when they should and shouldn't be used, and how to implement them safely. I am writing in C++11, and have come across the Meyer's lazy initialized implementation of a singleton, as seen in this question. This implementation is: static Singleton& inst...

 
hmmm.
I wonder if I could pull an in-place-init?
 
user1804599
How does multiplication work on arbitrary hypercomplex numbers?
 
user1804599
 
user1804599
But it's hard to extract a pattern from that.
 

« first day (1590 days earlier)      last day (3348 days later) »