« first day (1618 days earlier)      last day (3329 days later) » 

6:00 PM
@StephenLin I've contributed a couple of really trivial patches over the years, but never much and none at all recently.
 
@JerryCoffin ahh. well that's more than me
@JerryCoffin in terms of GCC that is
anyway, i'm thinking about getting into GCC dev
i'm becoming a pro-GPL-er
it's like a complete 180 of anything anyone online would hear me say before starting to work at Apple in 2013 (I'm leaving in two weeks)
any tips on getting started?
i mean, even in getting far enough to do something trivial
 
@StephenLin About all I can say is about like with anything else: grab the source, read what docs you can find, and start reading the code. Once you understand the code well enough that you might stand a chance of finding the applicable parts, look through the bug list, find one that seems semi-easy, and see if you can fix it.
@StephenLin Yeah, I saw your comments earlier.
 
user1804599
Fuck people who put spaces in filenames.
 
Honestly though, the last time I even looked at it was probably 10 years ago or so. I believe virtually all the code's been rewritten since then, and I'd guess the organization is probably quite a bit different as well.
 
ahh, i hope so---one of the reasons why i was always scared to dig into GCC is that it was, up to some point, all in C
and large C code bases scare me
(i mean, no namespaces for one thing! how do you deal with that in a milllion line project???)
 
6:11 PM
@StephenLin I believe it's still mostly C-like, though it is now actually C++, IIRC.
 
yeah, they're transitioning
 
@StephenLin Prefixes on names, primarily.
 
user1804599
% diff <(ps -ax | awk '{ print $1 }' | sort -n) <(ps -A | awk '{ print $1 }' | sort -n)
%
 
user1804599
This is interesting.
 
yeah i know it just makes namespace management such a pain
you basically have to make sure every symbol is unique across the entire code base
 
user1804599
6:12 PM
The man page says -A lists only other users' processes, and that -ax lists all processes.
 
user1804599
However the output is the same.
 
or static to the compilation unit
 
@StephenLin Sounds about right.
 
@Columbo Yes it's public so the redaction wasn't necessary per se, but it seemed reasonable since the other comments are entirely irrelevant.
 
-2
Q: SAVE NAMES IN FILE

NavidI want to save several names of the book to a file and after that read this from file. Like this: char name[100]; cout<<"Enter the name of the book:"; cin.getline(name,100); ofstream bookname("D:bookname.txt",ios::app); if(bookname.is_open()){ bookname<<name<<"\n"; bookname.clos...

You know the question is bad when the title is all caps
 
6:23 PM
@milleniumbug sure you know :-P ...
 
user1804599
Oh it doesn't say "only."
 
user1804599
Weird. The other flag does emphasise it.
 
user1804599
Hehe, finding broken symlinks with Z shell: for f in **/*(-@); echo "$f".
 
user1804599
6:54 PM
alias grpe='grep --color=tty'
alias gpre='grep --color=tty'
alias rgep='grep --color=tty'
alias gerp='grep --color=tty'
 
We Happy Few -- This game looks interesting...ly creepy. :D
 
marmalade games look interesting so far :)
 
@milleniumbug —> part: (ROD_NOKEY) (ROD_NOKEY@RODRIGO.BRSTELECOM.COM.BR)
@milleniumbug <Sigh> You know someone is annoying when their host is in upper case
 
@wilx wtf
 
7:08 PM
Welp
did I miss it?
 
@Cinch still ongoing

Lounge Game Marmalade

Don't spam the lounge; don't be afraid to post screenies. Have...
 
Right end in about 3 hors?
I fell asleep...
Oh well.
I just woke up.
TIME TO CREATE A GAME
 
@Cinch 3 hours 45 minutes
 
The eyes.
He looks like he is insane. :D
 
Okay.
Great I'm going to be forced to create a game in 3 hours.
 
7:26 PM
Jam?
 
the bad ideas people have...
0
Q: Is the .NET use of WSAStartup safe for 64-bit apps?

RonThere is a mismatch between the .NET Framework version and the native Win32 version of the WSAData struct, for 64-bit apps, because the order of the fields is different. I had copied the .NET version for use in our C#-based product and a coworker is concerned that I have caused a memory corruptio...

 
The procedure entry point _Zst24__throw_out_of_range_fmtPKcz could not be located
I mean wtf?
'
 
inb4 yes lightness is fake
 
It's the SFML examples.
They don't run on my system.
 
7:33 PM
This is a big boon
 
Fuck it TDM-GCC time.
 
Get MSYS2
 
@wilx o.O
@Cinch what. I don't know what timezone that is
 
What if when someone wrote a question title in all caps, SO had an error pop up that said "WHY ARE YOU YELLING"
 
7:37 PM
Wow I think the exception systems are fucking with my computer
 
@LucDanton Nice. TIL
...there's another question there: dafuq is operator sizeof
 
@milleniumbug If you ever use it the man page is advised, because e.g. for types you want to do c++filt -t blah.
 
@LucDanton Ok.
 
I mean, who the hell doesn't pack in libstdc++6 by default?
WTF
 
user1804599
@milleniumbug lol
 
7:41 PM
yeah I didn't see he posted this unwieldy way to get at it. Or I would have punched him with c++filt myself
 
our ui's so pimp
sup lounge
 
Didn't know about c++filt. Whenever I had a linker problem, I was mostly demangling with my brain.
 
mmmh when I have a linker problem I look around with nm mostly, and that one takes -C for C++.
 
OMG so many symbols in my executable
 
is it a bad idea to have something like filter : (a -> Maybe (Satisfies a)) -> [a] -> [Satisfies a] ?
 
7:46 PM
i have a situation where I have G and b. I want to find i such that i <= b and i is the highest possible value such that G - 5*i >= 0 (nonnegative). G, b, and i are all nonnegative numbers.
it's easy with loops, but is it possible without them?
 
@ScarletAmaranth That doesn’t look like the satisfies I know. What’s the kind?
 
@LucDanton oh, it's my "own" satisfies; * -> *; it's there just to denote that the value passes the predicate
@LucDanton replace with "PassedThePredicate" to avoid confusion
 
@BartekBanachewicz Did you buy Elite?
 
@CatPlusPlus Elite Dangerous? Not yet.
my colleague keeps telling me how good it is
 
Well I said fuck it and bought it
I can shoot space things
 
7:51 PM
does it feel nice
also I want to play factorio
release multi already you scrubs
 
def make_chocolate(b, G):
    while G - 5*b < 0:
        b -= 1
    # I want the value of "b" when the loop terminates.
;_;
math pros plis
 
Getting used to 6-degree movement is painful
I tried 360 pad and it's not very good :v
Made the mouse pitch/yaw and A/D roll and it kinda works
Default is roll on mouse X which is weird as fuck
 
@Blob what is it that you're trying to do exactly?
 
@ScarletAmaranth I can’t tell if using Maybe is idiomatic (I’m not that immersed in the culture), but at least the [a] -> [Satisfies a] part seems cromulent to me, esp. if you can recover the a in the proofs.
 
@ScarletAmaranth turn the loop into some math
 
7:55 PM
@CatPlusPlus mmm I have a 6-axis 3d manipulator actually
 
Game autoset quality to ultra but I'm not sure about the framerate
 
anyway tell me about gameplay
fuck controls
 
@CatPlusPlus I hate that. It makes sense on a joystick but it’s uncomfortable on a mouse.
 
Everything in controls is settable thankfully
I also enabled autocentering so it's more like analogs on a pad
Can aim pretty precisely
I keep forgetting to use roll instead when not aiming precisely though
@BartekBanachewicz I'm doing tutorials atm
 
@Blob I mean - what is the name of the function "for real" - what is it that you're trying to do in the grand scheme of things
 
7:59 PM
Went through combat stuff and it's pretty nice
Very spacey
Predictably I suck at weapons that require lead-on
 
well I don't have time for games right now anyway
 
lol okay I have 35FPS when docked
Good job on that autodetection
 
@ScarletAmaranth nothing. it's a stupid problem and i want a smart solution.
 
user1804599
> This file holds the grammar for the Perl language.
 
user1804599
Sounds like an absolute nightmare.
 
8:03 PM
there is no "grand scheme of things" for this.
 
@Blob Should be min(b, G/5) I think.
If b is an integer.
 
@BaummitAugen =o
 
WHAT IF IT'S NOT
 
@BaummitAugen thanks
 
hey, what's the g++ flag for defining a constant?
-D something?
 
8:12 PM
@Blob Np.
 
@Cinch that's for a preprocessor definition yes
 
@Blob min(b, floor(G/5)) actually if G < 0 is possible.
 
The g++ flag for defining a constant is constexpr static const unsigned int MY_CONSTANT = 42;
 
they're nonnegative ints c:
@LightnessRacesinOrbit g++ main.cpp constexpr static const unsigned int MY_KANSTANT = 42;?
 
Then the first version does the right thing with truncating division.
 
8:16 PM
@райтфолд actually, the grammar could be fine. Semantic analysis though...
 
@Blob Nearly. You probably need -E too.
 
user1804599
Well, for as far as I am aware, Perl's grammar is context-sensitive and you can execute arbitrary code at parse time.
 
echo "constexpr static const unsigned int MY_KANSTANT = 42;" | g++ -x c++ -
 
user1804599
Although maybe subroutine call vs. bareword is handled after parsing.
 
@LightnessRacesinOrbit wooaaaah
g++ -
writing C++ from stdin c:
 
8:25 PM
Oh god docking is hard
 
@CatPlusPlus KSP?
 
Welp I guess I won't be finishing
I can't even get SFML to statically link
 
lol
hasn't it been 2 hours?
 
Then don't link statically?
@Blob No, Elite
 
link elitely
 
user1804599
8:29 PM
> goto frog;
 
@Cinch lol
what about dlls
 
is LRiO here?
 
evening
 
@Blob not that uncommon to be honest, or well.. I find myself doing that (though mostly C) kind of often
often might have been an exaggeration, but it happens frequently
 
@CatPlusPlus the 1984 one?
 
8:38 PM
I was quite surprised to see that the port of QNX that BlackBerry is running includes A LOT of things; even vi - woop!
 
@FilipRoséen-refp are you doing BB app development?
 
@Pris I am, or well.. from a few days back
 
Their setup with Qt is very nice. Also even just using the C API directly is also very clean.
 
@Pris the blackberry-* tools suck, I've written alternatives for some functionality simply because the tools provided are whack
 
Welp at least things are going smoother now
 
8:40 PM
not using the momentics ide btw
 
@BartekBanachewicz Ugh after this I need to figure out how to statically lin
 
@melak47 No
 
Dynamic is so ugly.
 
@Pris yeah, I just wish Qt5 was available with cascades
 
@FilipRoséen-refp Yeah, didn't like their cmd line tools. I used qtcreator for devleopment, worked pretty great
 
8:40 PM
@Cinch pff
 
@Pris I reckon QtCreator uses them behind the scenes
 
When I did bb dev though, it was back when the playbook was around and they were missing a ton of functionality. Also I don't know if its improved now but the c++ standard library they packed was complete shit
 
@Pris running into the issue where an app isn't terminated properly was a massive pain.. it turns into a zombie and you can't start it without rebooting the simulator
 
They use the dinkumware libraries that I think msvc also uses
@FilipRoséen-refp I did all my dev on device, can't say I ran into that. I did have one really nasty bug where requesting too much memory on the gpu made the device hard reboot
 
@Pris it is somewhat better, and you can use libstdc++ nowadays.. though cascades is linked towards the shitty implementation provided by Dinumware
 
8:44 PM
@CatPlusPlus the new one then? or something in between
 
@CatPlusPlus what's your in game name :3
 
Why would I play the 1984 one
 
I dunno, you said docking was hard :p
 
@Pris I think I can reproduce it on my physical device, seems to boil down to a race between establishing a connection and actually terminating the app
 
8:45 PM
Cat Plus Plus, what else
 
simple solution; write your own script that does the termination
 
why would cat++ be there? wouldn't that be ~effort~?
 
I'm really discouraged that srand(0) doesn't even produce random numbers.
 
9:00 PM
@Cinch int random() {return 4;}
 
lol
 
user1804599
Fuck this shit.
 
Yeah!
Fuck it all.
 
user1804599
I'll put the VM in a thread-local and write a scope guard.
 
user1804599
Passing it around all the time is a PITA.
 
9:01 PM
Nice.
 
@райтфолд how do you have all this free time?
 
user1804599
Lexically scoped variables with dynamically scoped values are nice.
 
@Cinch It doesn't produce any numbers
 
user1804599
> Such attacks involve constructing a set of keys which collide into the same bucket producing inefficient behavior. Such attacks often depend on discovering the seed of the hash function used to map the keys to buckets. That seed is then used to brute-force a key set which can be used to mount a denial of service attack.
 
user1804599
Hash Tables Considered Harmful!
 
9:06 PM
Oh my. Let me quickly remove them from my code.
Oh, hey. Turns out I wasn't using them anyway.
 
good thing i never used them because too complicated
 
flap_map is interesting. not sure if it's good, but at least it's interesting.
 
@райтфолд Very Old News
 
one more week of school and i get a break
 
@Blob what
 
9:07 PM
i can rewrite my shitty langauge
 
Anyhoops, use proper hash functions
 
@BartekBanachewicz i thought of a shitty joke, transcribed it, hit enter, thought "that was a really shitty joke"
 
@chmod711telkitty Theme of the week?
 
i'll probably participate in next week's marmalade
 
@Blob in what?
 
9:09 PM
@BartekBanachewicz wait, there is one next week, right? D:
 
user1804599
@sehe Do I look like I give a single shit about the age of the news?
 
@Blob lol of course not
maybe in a month or two
 
;_;
 
Woop woop
People are grumpy
 
Using overrides for controls for docking is not helping
 
9:10 PM
@Blob Yep, the world's gonna end after that.
 
user1804599
> The exec function executes a system command and never returns
 
user1804599
> It fails and returns false
 
user1804599
CONTRADICTION
 
Also old news. It's a celebrated pitfall and trivia
 
user1804599
@sehe Do I look like I give a single shit about the age of the news?
 
user1804599
9:12 PM
> Perl warns you if exec is called in void context and if there is a following statement that isn't die, warn, or exit
 
user1804599
cool
 
o.O
:D
ITT people are (re)discovering the meaning of "berserk" by example
 
I finallly have my music
 
@райтфолд So f() { die(); } exec(); f(); is warned on?
 
user1804599
Absolutely.
 
9:16 PM
fail
 
inb4 Wide would not fail because it doesn't actually compile it
 
well, Wide doesn't natively possess exec() or die(), but if you were to implement them, it could certainly compile it.
 
is there a publicly available Wide implementation?
 
user1804599
Cool, in ASCII doing bitwise XOR with lowercase letter and space results in uppercase letter.
 
@райтфолд and the reverse
 
user1804599
9:21 PM
>>> chr(ord('j') ^ ord(' '))
'J'
 
>>> chr(ord('J') ^ ord(' '))
'j'
 
user1804599
Obviously.
 
your wording made it sound like you didn't consider the other case
 
user1804599
OK.
 
user1804599
I thought of not doing a GC.
 
user1804599
9:24 PM
But instead refcounting.
 
user1804599
Tracing GCs feel like an immense hack.
 
nah
they're a pretty clever design really.
 
user1804599
This is how you stop all timers in JavaScript: for (var i = 0; i < 9007199254740992; ++i) { clearTimer(i); clearInterval(i); }, since timer IDs are just integers.
 
64bit?
 
user1804599
Arguably it will also prevent the timers from firing in that the loop blocks the thread for a long period of time.
 
user1804599
9:28 PM
@Puppy Timer IDs are non-negative integers, and 9007199254740992 is the largest integer that can be represented by a JavaScript number.
 
I thought it looked a bit odd
 
user1804599
dat pun
 
@райтфолд woot nice tidbit
 
user1804599
@sehe Apparently that was by-design.
 
9:29 PM
of course. I like that, too
 
user1804599
Using it is a horrible hack.
 
Unless you know you're dealing with ASCII, which could be pretty often
 
user1804599
I prefer tr/A-Za-z/a-zA-Z/.
 
user1804599
@StackedCrooked Vertigo memories.
 
9:32 PM
@StackedCrooked Gotta admit, that's pretty smart.
 
user1804599
Also, the crane isn't building itself.
 
user1804599
There are humans that build the crane.
 
user1804599
With assistance of the crane.
 
user1804599
char space = 'j' ^ 'J';!
 
lol already scratched my shiny new spaceship
Goddamn docking
 
user1804599
9:38 PM
Stop playing silly video games.
 
user1804599
Start building real spacecraft.
 
user1804599
Then go to Mars and never come back.
 
What if the video game is to build a real spacecraft?
 
oxymoron
can I use C++ to build a real house for people to live in? ... what do you mean that people can't live in software?
 
Xeo
@StackedCrooked Whenever I'm at a great height, I feel like jumping off just for the freefall feeling.
 
9:41 PM
@Xeo according to my dreams, it's not pleasant.
specially when you reach terminal velocity
but then again, i'm the kind of person who dislikes rollercoasters
 
Xeo
love em
 
user1804599
Is there a way to poke the internals of std::shared_ptr?
 
user1804599
I want to manually increment or decrement the refcount.
 
user1804599
Without an std::shared_ptr object.
 
user1804599
I suppose it's absolutely impossible.
 
Xeo
9:47 PM
without platform-specific hacks, yeah
 
user1804599
I figured I need something else than std::shared_ptr.
 
Xeo
boost::intrusive_ptr, maybe?
 
intrusive_ptr is usually what's called upon in this fahsion.
 
user1804599
Nice.
 
user1804599
I need it for JIT.
 
Xeo
9:48 PM
alright, time for some isaac
 
what does refcounting and JIT have to do with each other?
 
user1804599
JIT can't use std::shared_ptr unless I compile C++ code to LLVM bitcode files and load those dynamically.
 
user1804599
But I foresee major PITA with that.
 
if by that you mean it's really not that hard and Wide does it all the time
 
wtb std::decimal128
 
9:49 PM
also I don't see how intrusive_ptr would solve this problem, since it's a C++ template specified in a Boost C++ header file.
 
user1804599
Because you can write a C++ function that takes an object pointer, gets the intrusive ptr from that object pointer and increments or decrements the refcount.
 
user1804599
If that's possible.
 
that is not what intrusive_ptr means or does.
intrusive_ptr is shared_ptr but you can write your own add() and release() functions.
 
user1804599
Oooooh nice.
 
Welp I guess I won't be finishing ugys
 
user1804599
9:51 PM
Then I can call those retain and release functions from JIT code, and use intrusive_ptr throughout the VM.
 
It's time to go to the carnival
 
finishing what, the marmalade?
 
@Puppy Yeah.
I do have something working but I don't have enough time and I have to leave already
 
user1804599
Thank you Xeo and Dog I love you. :3
 
@райтфолд But how would you even load intrusive_ptr without loading it as a C++ template?
 
user1804599
9:52 PM
I use intrusive_ptr in the non-JITted code.
 
ah
 
user1804599
Because C++ has RAII which is perfect for this.
 
indeed it is.
 
user1804599
LLVM emits calls to add_ref and release.
 
user1804599
intrusive_ptr_add_ref and intrusive_ptr_release then also call those.
 
user1804599
9:57 PM
> -W{all,extra}
 
user1804599
Why didn't I figure this out earlier? XD
 
Well as of right now I have a game that involves putting in letters with sound and on a timed-basis
I'll probably post it later.
 
@Cinch 1 hour left. you got this.
 
@Blob I'm leaving for a carnival.
 

« first day (1618 days earlier)      last day (3329 days later) »