« first day (2026 days earlier)      last day (2939 days later) » 

6:00 PM
but then you took a beer can to the knee
 
user1804599
convertDecl env (ModuleDecl n ds) =
  convertDecl env (ClassDecl n Nothing [] (map makeStatic ds))
  where makeStatic (FnClassMemberDecl _ n ps rt b) =
          FnClassMemberDecl True n ps rt b
 
user1804599
Excellent.
 
@cpx No it doesnt mean that, afaik a reference isnt even required to have a memory address. /cc @Puppy
@nwp Meh.
 
no it is not.
references are one of the very few things that are not objects in C++.
they're pretty odd beasts really
 
user1804599
6:05 PM
most things aren't
 
they certainly are.
 
thank you everyone it's much clearer
 
"object" just isn't defined in a really stupid way.
 
user1804599
tokens, types, macros, functions, etc
 
user1804599
REGION OF MEMORY
 
6:05 PM
functions are.
 
user1804599
nope
 
well
 
user1804599
The standard specifically says functions aren't objects in the definition of objects.
 
@Zoidberg You should define a super-hardcore OO language where even the semicolons are objects!
 
tokens don't really count.
 
6:06 PM
Ah yes, it was the time to hit another GCC ICE ;_;
 
user1804599
> An object is a region of storage. [ Note: A function is not an object, regardless of whether or not it occupies storage in the way that objects do. — end note ]
 
user1804599
@fredoverflow In Perl 6, argument lists are objects. And statement labels.
 
user1804599
You can for example pass a loop label to a function, and the function can then break the loop.
 
@набиячлэвэлиь enable_if in a late return type of a lambda ;_;
 
6:11 PM
lol good job angular
fucking printing messages as urls to the actual error message
 
cpx
@Borgleader Internally, I think reference may be implemented as a pointer, and have a memory address but of course compiler won't allow you to take that address.
 
Ven
@Shoe noooo, they have amazing extended explanations :)))
 
@cpx may
 
@cpx and if it is a pointer as you say, then it wont share the same memory location of the object it points to, it will point to it like a pointer does
 
6:16 PM
> The Alpine borderlands map has been rotated back into play.
@DmitriBudnikov here we go
 
Ven
@Zoidberg sure you don't have to. Some just give in to the devil. I sure hope no one forces you to drink
 
user1804599
@Shoe So you picked Node.js, Angular.js and MongoDB. Any more abhorrent ideas?
 
Ven
@Zoidberg that's so batshit insane it becomes amazing :p (but deserves escape analysis)
 
@Zoidberg Uni perhaps?
 
user1804599
RIP
 
Ven
6:18 PM
@fredoverflow i didn't have to code in my interview either, and my coworkers are pretty good (and we do unit/integration testing, code reviews, CI, etc) </my-experience>
 
Seems to encompass them all
 
Ven
I have the same project deps for school, @Shoe
 
I didn't
 
user1804599
@Ven you can now write, like f(o.m) and it'll work just like in Python when m is an instance method!
 
We actually chose this shit
We were much dumber back then
 
user1804599
6:19 PM
And the same for static methods with :.
 
I wish I chose Scala
 
Ven
@Zoidberg do I really wanna see the code it compiles to? :qp
 
user1804599
@Ven inst_meth($o, 'm')
 
Ven
@Shoe oh you CHOSE? Damn
 
yeah
 
user1804599
6:19 PM
And I didn't optimise the case where you directly call it yet, so that looks like call_user_func(inst_meth($o, 'm')). :D
 
This experience thought me one thing: never, ever pick JS over anything
 
user1804599
s/JS/untyped languages/
 
user1804599
Type checkers are cheap. So fucking use them.
 
I'm imagining myself choosing between C and JS and probably there I would pick JS.
But that's like one of the very few exceptions
 
user1804599
I'd rather write C than JS.
 
6:21 PM
With UB and the likes?
No lambdas
Basically untyped
 
user1804599
C is more typed than JS so it's better in that regard.
 
C is so bad even Linus doesn't write it
 
I'm not sure man, at least JS is easy to debug and has lambdas
 
Only with extensions
 
C and JS are pretty much the same problem really
you can express a lot of shit you really shouldn't.
at least in JS it's easy to express things you should.
so IMO JS > C
 
6:22 PM
Are you intentionally punning there?
 
what pun?
 
Because our JS server framework is called express
Probably the only sane thing in this whole stack
 
"JS server" "sane thing"
 
Saner?
 
Ven
@milleniumbug he writes LinusCode directly
 
6:27 PM
Is GCC wrong here? Clang doesn't seem to have any problems compiling that...
(...don't ask why I'm doing that, you don't want to know.)
 
it just works if you remove the verspec from the GCC commandline
 
...but then you don't have GCC 5.x compiling it ;_;
 
...but it works
 
holy fuck there's 6.1 on coliru
 
6:33 PM
@набиячлэвэлиь But I want it to work in 5.x!
Okay, I'll try to find another way to do the original thing I want to do ;_;
 
> $ g++ -std=c++14 -Wall -Wextra a.cpp
a.cpp: In instantiation of 'auto f() [with Arg = int; T = float]':
a.cpp:18:30: required from here
a.cpp:13:5: internal compiler error: in strip_typedefs, at cp/tree.c:1369
};
^
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See <https://sourceforge.net/projects/msys2> for instructions.
:clap:
 
Ven
:D
 
do you have to declare functions in C++ always? like void foo();
 
why is it necessary in this language?
 
6:44 PM
Apr 27 at 11:01, by Luc Danton
 
@AjeetKljh why declare variables before using them?
 
to specify what type of value it must be
which i dont know why
i'm confused about that because in javascript for example you don't need to
 
even in javascript you have to specify the data type
 
i mean
var n; can be a string or an int or object or array..
 
Ven
6:50 PM
u all w0t
 
40
Q: Why do you have to specify the data type when declaring variables?

dick smithIn most coding languages (if not all) you need to declare variables. For example in C# if its a number field then int PhoneNumber If I'm using normal English language I do not need to declare PhoneNumber as int to use it. For example if I ask my friend Sam to give me his phone number I say: ...

 
@AjeetKljh it cannot be both, it has to be decided at some point
 
ughhhhhhh, implicit conversions are murdering what I'm trying to do ;_;
 
user1804599
In JS you don't have to specify the type because in JS there is only a single type.
 
6:50 PM
Hey, morning guys! :) How's everyone doing?
 
user1804599
Having to specify the type would therefore be retarded.
 
@Griwes use Rust
 
fuck Rust
 
@AjeetKljh there's something in C++ that works like var in javascript.. it's auto
 
No, just no
 
6:51 PM
lol
lol, just lol
 
keeeeeeeeeeeeeeeeeeek
@Griwes yo, Rust's pretty cool, man
 
Ven
@Khaled.K that's wrong, and I'd recommend admitting it now :P
 
@milleniumbug I'm not talking precise science here, I'm trying to make an anlogue for him
 
Ven
@Zoidberg it's NaN, obviously
 
I got a quick question if anyone is interested - I'm trying to pass an abstract object into a function via pointer(because otherwise it'll cause object slicing). However, I'm passing it straight into a std::auto_ptr and it doesn't like that
 
Ven
6:53 PM
@Zoidberg imb4 "var a; is syntactic sugar for var a : any;"
 
@OneRaynyDay why not std::unique_ptr?
 
Ven
imb4 "bottom == top"
 
but why is it required to have a type in languages like this?
 
BECAUSE IT'S COMPILED AND STRONGLY TYPED
 
@AjeetKljh I've posted a relevant link. Have you read it?
 
Ven
6:54 PM
well, the type could be inferred :P
 
@AjeetKljh I'm tempted to flag that for the sheer dumbness of that question.
 
4265
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...

 
Ven
or propataged, auto-style
@Griwes nooo :(
 
It gave me an error along the lines of.. : Error: no instance of constructor std::auto_ptr<_Ty>::auto_ptr[with _Ty=avro::OutputStream] matches the argument list argument types are: (avro::OutputStream)
 
@Ven ...inferred type is still had, so you still have it
 
6:55 PM
PROGRAMMING, DO YOU SPEAK IT
 
@OneRaynyDay Jesus, don't use auto_ptr
 
Ven
@Griwes well, "required" is too vague
 
I have, and like another commenter said, it didn't answer the question
 
@milleniumbug Trying to contribute in an open soruce project. I can't really use anything else because I want to conform to the standards
 
the fuck is with the level of badness in this room today
 
6:55 PM
@Griwes Did they remove auto_ptr in seventeen finally?
 
@набиячлэвэлиь Not sure.
 
Ven
lol.
 
Yes, according to cppreference.
 
took long enough
 
@Griwes I usually use shared_ptr and unique_ptr, but this is a case where I want to stick with what they're using and thus use auto_ptr. I agree with you wholeheartedly
but I think in some cases I don't ahve the executive decision to use a specific type
 
6:57 PM
@AjeetKljh and ..what was the question ?
 
@AjeetKljh read further, there are others that do
 
just saying "because it's strongly typed" is not even answering my question. i asked "why is it necessary to define the type" is like asking what you just answered
 
WHY IS IT NECESSARY? BECAUSE THE INTERNATIONAL STANDARD (God save the committee) SAYS SO
ALSO BECAUSE THE FUCKING LANGUAGE IS STRONGLY TYPED JESUS FUCKING CHRIST
 
@OneRaynyDay lol
that is in no way a valid reason to use auto_ptr
actually that's a valid reason to tell everyone around how bad the people using it are\
 
what, they can't migrate to C++11?
 
6:59 PM
and then get as far away from them as possible
 
plonks galore
 
i was just asking for a reason why they made it the standard. the advantages
 
plonks the world
 
@набиячлэвэлиь HALLELUJAH!
 
@Griwes I'm sorry but that's in no way something I can say to someone who is giving me money
 
7:02 PM
lol
 
I mean, most of the projects we use are C++14, and it follows the ISO/IEC standard
 
stop making yourself look even worse
don't
just don't
 
> CALL JIVARO
 
nwp
@AjeetKljh knowing what things are helps optimizing stuff. But that doesn't mean you need to do it manually, just put auto there and the compiler figures the type out by itself.
 
you are making yourself look really, really bad with each word you send
 
@AjeetKljh if you want a reason, it's convention. if you want an advantages, look into how the C++ compiler works.
 
user1804599
dang
 
@AjeetKljh are you seriously asking why static typing exists? If so, then the answer I linked to does answer the question.
 
user1804599
public static function contramap<TI, TO>(Eq<TO> $eq, (function(TI): TO) $f): Eq<TI> {
    return self::make(function($a, $b) use($eq, $f) {
        return $eq->eq($f($a), $f($b));
    });
}
 
user1804599
 
7:05 PM
@OneRaynyDay Are you kidding? Are you the developer or not?
 
I doubt he knows what static typing is..
 
@Puppy This is an open source project - so there were a lot more developers before me who contributed to it
 
yes, so if they fucked up then fix it instead of making it worse
 
@OneRaynyDay Post an issue, ask why they're using std::auto_ptr. I guess the answer will be "no one has refactored it to use std::unique_ptr yet", with 95% probability.
 
Sure, I will post an issue and propose a patch to this
But I'm still curious as to why the error message I posted a while ago still popped up
There's always room for learning, right? I just wanted to know why the behavior came up
It looked like I was passing in the correct type, it basically said "Error: You passed in type X (incorrect type) to the autoptr, it accepts type X"
 
7:09 PM
No, it says no constructor accepts type X
 
okay lol the movie was really fucking bad
 
you're really fucking bad
 
SCNR
 
seriously I don't know what it got the oscar for
 
7:10 PM
WHAT MOVIE
 
You're not sorry
 
heh
yeah
more like CNR
 
Close Encounters of the Third Kind is a 1977 American science fiction film, written and directed by Steven Spielberg and featuring Richard Dreyfuss, François Truffaut, Melinda Dillon, Teri Garr, Bob Balaban, and Cary Guffey. It tells the story of Roy Neary, an everyday blue collar worker in Indiana, whose life changes after an encounter with an unidentified flying object (UFO). Close Encounters was a long-cherished project for Spielberg. In late 1973, he developed a deal with Columbia Pictures for a science fiction film. Though Spielberg received sole credit for the script, he was assisted by Paul...
 
@BartekBanachewicz businessinsider.com/…
 
@BartekBanachewicz cool .. so what does that mountain has with any of that?
 
7:13 PM
Is it possible to do a direct copy between memory locations without an intermediate copy to a cpu register?
 
@Khaled.K there was a bunch of people who shared a vision of that mountain
 
@Khaled.K it's the picture with the biggest resolution on this page
 
@Griwes maybe I just didn't fucking get it, but it felt really, really bad
like fuck me the alien spaceships in that thing? Can anyone seriously compare them to X-Wings or Star Destroyers
it felt like watching Bruce Willis in Signs all over again, the idiotic corn field province-USA feel
 
@StackedCrooked Not likely
 
add to that the iconic tall thin grey creatures with black eyes and you get the complete cliche of an alien movie
 
7:15 PM
it's cliched because everybody took it from him
 
well maybe it was revolutionary at that time, but today it feels just... plain bad
Sure it had some highlights here and there but I would never give it more than 5/10
 
@StackedCrooked wouldn't that like require the hard disk to be able to have an internal copy functionality?
 
that's what you get for watching films 50 years old ;p
 
@Puppy it was 39 years old
so not that old really
 
same principle
 
7:18 PM
@Puppy 20k leagues underwater was much order and felt much less cheesy
 
@StackedCrooked push/pop :D
 
o u :P
 
@Khaled.K wow excellent cinch impression
6
 
@milleniumbug lol :D
@Puppy sc?
 
in a nexus game atm
it's been going on for >2h now
 
Ven
7:26 PM
nexus game?
is that some kind of arcade mod?
 
yep
 
@Puppy lol what the fuck
@Ven nexus squadron strike, it's a way more nerdy desert strike
 
Ven
I have a very vague idea of what desert strike is :)
 
Also this has been posted to the facebook DCS flight sim group
if you get the joke props
 
user1804599
@BartekBanachewicz dat camo
 
7:28 PM
@Zoidberg you know what plane is that? ;)
 
F35
 
user1804599
I know very little about military devices.
 
good job pups :)
it was an easy one though, I've been posting about it recently
 
it's a new fighter jet that costs way more than its predecessors and is supposed to do everything
 
Ven
7:29 PM
:P
 
instead of doing a thing well or even two things well
 
well it's apparently stealth
 
user1804599
NL parliament took over a decade to decide whether to buy certain fighter jets and now they bought them for a few billion bucks it appears they suffer from all sorts of defects.
 
user1804599
But at least some small number of lobbyists cashed a lot and are now on eternal vacation
 
fighter jets have always suffered from defects
they are one of the most advanced human made vehicles
research on them pushed us waaaay forward in a lot of areas
 
7:35 PM
@StackedCrooked Depends on the CPU and how you count things. x86 has a movs instruction that moves data from memory to memory without changing any visible registers (but it is read from memory into the CPU, then written back from the CPU to the other memory location). Closer to (your) home, RDMA-capable network adapters will let you copy data to/from memory in one computer from/to memory in another without using the CPU of the second computer at all (during the transaction).
The second computer does have to "register" the memory with the network adapter to basically give it a shadow of the CPU's page tables to translate from virtual to physical addresses though.
PCs do have a DMA controller that can do some transfers without CPU involvement (beyond setting up the registers in the DMA controller to start the transfer), but 1) this is pretty much obsolete, and 2) all transfers using it must be from memory to I/O space or vice versa, not memory to memory.
 
@BartekBanachewicz It's way better.
also my game is done- 2h 21m
 
@Puppy god
okay
teamspeak
 
er
well I can barely see the screen at this juncture
but we can give it a shot
 
@BartekBanachewicz Which one? The near is an F35. The far looks like an F-16.
 
@JerryCoffin both correct
@Puppy wat? what's up
 
7:42 PM
@JerryCoffin Interesting.
 
@Puppy it should be right in front of you, just reach out with your arm (carefully)
 
well I spent 8h 30m at work and then came home and played a game for another 2h 30m
so that's a mere ~11h of computer usage today
usually I like, eat something or something ;p
 
sounds like every wednesday
 
@Puppy dude take a break
I have no use of a starved terran
 
I went to get a drink and promptly spilled it
 
7:46 PM
retard
 
quiet you
 
Oct 2 '15 at 15:40, by Luc Danton
covered in tea again due to drinking problem
no known treatment
 
have a break, have a ..
 
oh also
Smart TVs suck so fucking much it's not even funny
Oct 18 '15 at 16:27, by wilx
Also, DLNA is awesome thing when combined with a smart TV.
@wilx no, it's absolutely not.
It's godawful. It's terrible. It doesn't work for shit.
The settings menu has a goddamn text search because the options are placed so illogically
 
ok
I think I could do a couple games
 
7:54 PM
k
 
you gonna join me on teamspeak?
 
oh right sorry
 
Xeo
@BartekBanachewicz We got get-togethers every Thursday with company-provided snacks and drinks / beer.
 
8:12 PM
@Xeo We get free beer every friday at 4pm as well :)
well, most people are happy, i dont drink beer
 
@BartekBanachewicz cinematography.
Well deserved IMO
 
@R.MartinhoFernandes what does that mean
 
The artistic aspects that are particular to film. Story execution, camera work, scene composition, etc.
 
In other news, splendid: just managed to invoke a completely different ICE than the previous one from today, this time only happening with GCC 6.1.
:X
 
Visual themes, lighting, etc
The green tint in The Matrix, the "single shot" camera work in Birdman, and the excessive lens flares in Star Trek are all iconic examples of cinematographic expression (not all for good reason).
The quality of the lens flares would count for special effects, but the way they are used (i.e. to create a distinctive style that makes you puke) counts for cinematography.
 
8:29 PM
Hey guys! I just managed to change the specific module's auto_ptr's to unique_ptrs
wasn't too hard really
Thanks for the suggestion, and I'll post the patch soon.
But I'm just curious about one thing while I was working. Is it possible to flush a memoryoutputstream's contents into an object directly?
 
@R.MartinhoFernandes green tint actually made sense, lens flare is just abrams wanting to please himself
 
Or is the conventional method to always use a stringstream and reinterpret the bytes as the object?
My implementation right now is to flush memoryoutputstream into a vector of uint8's and then reinterpret the chunk.
Since you guys are much more experienced than me, I'm just asking for ways to learn and improve :)
 
user1804599
Bright orange and bright green is the best combination of colours.
 
@ScarlettJ yep, hence why I said not all were iconic for being good.
 
@R.MartinhoFernandes yea, I just wanted to specify :P
 
nwp
8:46 PM
@OneRaynyDay sounds UB to me
 
Oh look. We have got celebrity visitors. Most welcome, milady
 
@nwp UB?
 
@OneRaynyDay wtf is memoryoutputstream
 
nwp
undefined behavior
 
That means it is. You don't even know what UB is and you program in C++.
RIP
@milleniumbug c++cli (or just, CLR)
 
8:47 PM
I guess that'd be std::strstream
 
!@@^%T@$#%^!$@#%^$!@^%#$!^%$@#!@# GET OUT
3
 
@milleniumbug It's an implementation from the avro library, I didn't mean it as an std library
 
If you want to make objects, you should be deserializing, not serializing.
I.e. input streams, not output streams.
 
@набиячлэвэлиь It's a horrific suggestion, and nothing whatsoever suggested any relation with what OneRaynyMan said
 
8:48 PM
You're doing it ass-backwards.
 
@sehe std::strstream is a memoryoutputstream, after a fashion
 
Oh, my bad, I meant that I'm going to reinterpret the chunk with a decoder later. this library's functionality is
 
@набиячлэвэлиь Well. Good luck with that.
 
to serialize, send over network, and then decode(deserialize)
 
It's deprecated for a reason :v
 
8:50 PM
?
 
You probably want proper serialization instead of just dumping stuff
 
That's the reason I was mad at you for mentioning it
 
So they already have the deserializing done, but their serialization dumps into the file, when file I/O is expensive so I wanted to just dump it into memory to send over the network
@milleniumbug Yeah, there's an option for gzipping
 
@OneRaynyDay IOW they do serialization/deserialization wrong
@OneRaynyDay ??????
 
@OneRaynyDay for scalabilty, dump serialize to the socket directly
 
8:51 PM
@R.MartinhoFernandes I'm not sure "iconic" really fits well here. Usually an "icon" means a person (or statue, etc.) that symbolizes some bigger concept or idea. For example, claiming that Clint Eastwood was an iconic symbol of (somebody's idea of) Manhood could make some sense. JJ Abrams abusing lens flare doesn't seem (to me) to iconify much of anything.
 
@milleniumbug Yeah, I'm not too sure. I'm not fluent in this subject so I shouldn't be talking or else I'll get burnt
 
@sehe I think they wanted it to be persisted in a local server as well as sent over network
So then the in-memory representation works since it's fast to network and to their hadoop db
 
user1804599
@sehe no. buffer
 
@OneRaynyDay If it's persistence in a db, make sure you achieve portability
 
user1804599
8:54 PM
System calls are expensive
 
user1804599
Luckily, in a well-designed I/O stream library like Go's, buffering is just one wrapper away
 
Yeah. That goes without saying. Just don't buffer the whole payload
 
"Ass-backwards" is stupid.
 
You're right, and I think the portability part is being maintained by another team
 
Asses are normally facing backwards already.
 
8:56 PM
I don't have direct communication to the hadoop database, nor do I have much information on what they're using it for. My job is just to redirect the avro serialization into memory rather than on disk for the intermediate step :)
 
Memory-mapped files?
 
@OneRaynyDay If so, can't you just memory map the file contents for streaming to the db
@R.MartinhoFernandes Damn. You beat me
 
user1804599
Paging is the best form of indirection ever
 
@sehe Hmm, yeah you have a good point there. But that still requires some change from the way they're doing it now(aka saving on disc somewhere and then retrieving later)
 
user1804599
@sehe how do I learn more stuff
 

« first day (2026 days earlier)      last day (2939 days later) »