« first day (1726 days earlier)      last day (3226 days later) » 

user1804599
5:00 PM
@nabijaczleweli Why? Just because you said "please"? Money or GTFO.
 
It's "Linux" btw.
 
user1804599
:P
 
@rightfold are you in need of money?
 
user1804599
No.
 
@rightfold i am reassured.
@nabijaczleweli does Cygwin by any chance work for your purpose?
 
5:06 PM
@nabijaczleweli Uh what is it supposed to prove
 
the nerdiness of Bill Gates
 
Ugh. A Greek programmer I follow on Twitter has just called someone who said "Greeks have not been responsible" "racist". :/
 
@nabijaczleweli You forgot ranlib.
 
r flag's that
Or no that's replacement
nvm
s would be it because
 
Yeah, that'd work too.
 
5:10 PM
I still don't know what that snippet is for even
 
@CatPlusPlus They spent a whole day failing to RTFM or something and that's a SSCE.
 
And as expected it has nothing to do with Linux
I'm shocked
I made turkey fingers
 
@Griwes greek is a race
 
@buttifulbuttefly race condition
 
@buttifulbuttefly you are a butt
 
5:16 PM
Cat race master race
 
to clarify, i am not greek.
 
It's OK we don't judge you on your sexual orientation
 
@buttifulbuttefly was that message directed at me?
 
47
Q: How to compile a static library in linux?

Summer_More_More_TeaI have a question: How to compile a static library in linux with gcc, i.e. I need to compile my source code into a file named out.a. Is it sufficient to simply compile with the command gcc -o out.a out.c? I'm not quite familiar with gcc, hope anyone can give me a hand.

Btw.
 
5:19 PM
@GreekFellows According to you
 
@buttifulbuttefly ah, i see.
 
@Griwes Reminds me of when my Indian coworker said "I hate South Indian people; they're too racist."
 
@R.MartinhoFernandes heh
AHHAHHAHAHAHAHA
THAT GREEK GUY
IS USING KORWIN-MIKKE
 
5:26 PM
TO SHOW I AM IGNORANT
AND DON'T KNOW "POLISH HISTORY"
 
You been korwin'd
 
AHAHAHAHAHAHHAHA
 
user1804599
 
I am now sure I can only ridicule that moron.
 
Seksualna Niebezpieczna
 
5:28 PM
:D
careful, butts are learning Polish now
but... hmm
they'd still be making more sense than Korwin
so there's that
 
having absolutely no idea what's going on with the obfuscation with some pseudo-polish there
oops, sorry, pseudo-Polish
 
@buttifulbuttefly It's hilarious to read polish text in the middle of english one
 
Polish is the new Jabbascript
 
Korwinscript
 
You start to read it in English, and then, half a second later you start to think that sounds weird
 
5:31 PM
It's the only Polish song I know
I remember there's a lot of hot girls in the clip
Quality lyrics also
 
@Cornstalks I don't think it's fair to mark duplicates in retrospect. Note that I added the auto tag after answering to aid with search indexing. SO is useful because we do not organize questions according to symptoms/signals, not root causes (that's what tags are for: root cause is c++!). In this case, perhaps *this is a proper duplicate. — sehe 3 mins ago
 
5:51 PM
Awkward typo: "we do not organize" should have become "we do organize" — sehe 11 secs ago
lol
 
> Currently he is the chairman of KORWiN (Koalicja Odnowy Rzeczypospolitej Wolność i Nadzieja - Coalition of Polish Republic's Renewal Freedom and Hope)
lol much narcissism.
Oh, he's a sexist pig.
 
> Freedom and Hope
Far right, eh.
 
He's a weird mix of some progressive and some extremely medieval views
 
@R.MartinhoFernandes That doesn't even begin to describe it.
 
5:55 PM
> During the 2012 Summer Paralympics, Korwin-Mikke wrote that the general public should "not see the disabled on television".
Oh my.
 
Yeah.
 
He actually is ableist.
 
But in general you're better off not listening to him
 
Got all the badistnesses.
 
Also do watch the recordings of him in the European parliament.
It's pretty hilarious to watch.
 
5:57 PM
@R.MartinhoFernandes Thanks!
 
> 'our enemies are in mosques'
Wow.
 
probably technically accurate, if you don't implicitly add an "all"
I imagine that there must be at least two enemies of Poland in a mosque concurrently at some point
 
:D
 
@Puppy It was the day after the Charlie Hebdo thingy.
 
@R.MartinhoFernandes All the keywords.
 
6:02 PM
@R.MartinhoFernandes but if they enter the mosques to search for their enemies
do they become their own enemies
 
Charlie Hebdo thing was just so fucked up
I'm used to nutters with guns going to random places and killing groups of people for terrible reasons (I hear news from America after all)
but I was not used to other people applauding them
 
You should have seen the racist side of Reddit after the Charleston shooting.
 
thanks, but I know not to go to Reddit.
besides, IMO Redditors don't really count as people
 
HEY
the cs reddit is ok
the people there are so dedicated it's easier and faster to see what each new update does to the game than it is to check the news page on steam
 
@Puppy They are ordinary people. Being an human-shaped asshole does not require the special Asshole Gene.
 
6:12 PM
@EtiennedeMartel I think it does; it's just that the Asshole Gene is pretty well-spread.
 
user1804599
lol
 
huh
I found that Hatfall game thing, and it's shit.
I wonder how much they had to pay Yahtzee to put his name on it
 
What I meant is that people are not born assholes. They become assholes.
@Puppy Considering Yahtzee is the only thing that keeps The Escapist standing, probably quite a lot.
 
yeah
used to be I also visited that website for MovieBob and LRR but they left/were kicked out.
 
They left when The Escapist decided that that game medias (mostly Polygon and Kotaku) were too left leaning and that someone had to be the opposite point of view.
 
6:16 PM
can't really say that I noticed
but I definitely did notice that The Escapist basically just went down in quality fairly endlessly
 
There was a change of management at one point.
 
they started posting stories about basically any old shit
 
Some time later, Jim Sterling, MobieBob and LRR left.
 
and that "promoted stories" crap like "Mum uses weird trick to lose 50 stone per day"
and especially the autoplaying video adverts- with sound.
I'm sorry, but autoplaying videos with sound -> I'm gone.
 
Their recently announced new content is entire shit except for Yahtzee's new thing.
 
6:17 PM
honestly I've mostly stopped even doing that
 
So, again, Yahtzee is The Escapist. If he wasn't there people wouldn't even go there.
 
I'm not sure that I even regularly watch ZP anymore since it involves visiting The Escapist.
 
If you can wait a few weeks you can get them on YouTube.
 
honestly I'm not sure if it's as funny as it used to be
and it certainly lost something when it stopped having nice intro music
seems to me a lot of the time like gaming's moved on and Yahtzee's kinda standing still
 
Haven't watched ZP in a while
I'd probably watch it more if it were on tubyube
But I don't think Escapist publishes on there seeing as they advertised HTML5 player as pro feature
Or does it?
 
Cool
omg ZP without Flash-induced lags
 
@EtiennedeMartel I have definitely not watched several recent ZPs... and am not going to now.
 
6:46 PM
I signed up for windows 10 preview
 
user1804599
Install Gentoo.
 
@Mr.kbok Are you direct downloading Win10 now?
It's such a PITA
 
@nabijaczleweli I activated it on my phone. "Congratulations! You have installed windows 10" nothing actually happened
 
@Mr.kbok Ah, phone.
 
I will install it on my PC soon, probs, but I want to backup it first
I don't trust those microsoft lollygaggers. They already got me once with that Visual Studio thing
4
 
6:49 PM
They only provide a direct download, which is ugh
Newest build (10162) has already been uploaded and torrentable. Nice
 
@fredoverflow Sounds like he means something very specific.
 
Don't download images from non-official sources
 
@CatPlusPlus Probably a good idea, yeah
 
Don't download images from microsoft either
 
So, his design by introspection idea is basically... instead of using a Concept that is supposed to tell you everything about an interface, ask the interface what it provides and branch off of that?
 
6:54 PM
they're really different things that have different use cases
 
@CatPlusPlus What if SHA-1s match, though? That's probably not so bad, right?
 
Maybe
 
user1804599
don't download
 
user1804599
hey you just downloaded my message
 
user1804599
you're going to jail now
 
6:58 PM
@EtiennedeMartel Holy crap- I have not watched those in 4+ years.
 
@rightfold "stop downloading things on the internet"
 
I'm home :)
 
@R.MartinhoFernandes your home?
 
Xeo
or so he said
 
Good evening.
 
7:08 PM
hello
 
@Nooble Mornin'
 
it's funny. When we use "good morning" or "good evening", we mean to say hello but when we say "good night" we mean to say "bye"
weird
 
that's because typically, people leave each other's company at night
 
Is it bad that I have this chat open while I am still at work?
 
@Nican It's normal
I used to play agar.io at work
that is really bad
 
7:16 PM
@Nican I'm at work.
 
Oh good-
 
coolness?
 
> Hey, the closer we think we are / Well it only got us so far / Now you got anything left to show / No no I didn't think so
> Hey, the sooner we realize / We cover ourselves with lies / But underneath we're not so tough / And love is not enough
So good.
 
sup guis
has any of you ever wrote a garbage collector?
 
7:30 PM
@orlp I tried, it was rubbish
 
I'm writing a simple lisp-ish interpreter in C++
 
@Nican I wonder if I'll be able to chat here after I move to the new job
I sure hope so
 
@ScottW NOOOOOOOOOOOOOOOOOOOOO MY OONLY WEAKNESSSSSSSSSS ................................
 
@AlexM. We are going to miss you if not. :(
 
I'm just a bit lost on how to structure and write the GC - regardless of actual collection algo
and then I'm also lost on the algo a bit
 
7:32 PM
@orlp A simple mark-and-sweep is trivial. GCs get complicated when you want to make them fast (and multi-threaded).
 
@EtiennedeMartel well, multi-threading is out of the window
so that's no issue
 
@ScottW lol I definitely expect it to be blocked too
 
is chat exclusively blocked?
or the whole SO?
 
7:33 PM
@EtiennedeMartel I know
there's a couple of issues though
how do you keep track of all the objects ever allocated?
either you can introduce overhead for every object (either intrusive through a linked list, or a seperate vector), or you use some sort of page-based allocation scheme
but if you do a page-based allocation scheme you either need to do compacting, or have some way of combating fragmentation and figuring out when a page can be freed
 
@orlp You're really asking how to manage a heap.
 
@EtiennedeMartel well, your graph search doesn't find the dead objects
you still need a way to find the dead objects
to free them
 
@orlp Every heap does
 
get a gcsurvey.pdf
 
That's what a managed heap is. It's not just a buffer of bytes. It also keeps track of the objects that are alive in it.
 
7:37 PM
I'm sorry, are we just going to gloss over my pun?
 
wait what pun
was it this?
7 mins ago, by thecoshman
@orlp I tried, it was rubbish
 
well you're some scummy american person
 
so I saw a mumble advertised in the sidebar
I joined
but only the person advertising it is in there >.<
 
did you grumble?
we're not there all the time
 
I'm at work.
 
7:40 PM
some of us have jobs to pretend to work at
 
then get back to pretending
 
vOv I'm not working now
 
user1804599
you never work
 
user1804599
you're broken
 
how can that which never worked be broken?
 
7:42 PM
shh
 
@EtiennedeMartel do people usually use intrusive data structures for GC schemes?
or seperate data structures
 
user1804599
oh my god GC
 
user1804599
I love GC <3
 
user1804599
Giant Cock Garbage Collector
 
I'm struggling with it
I also love cock cooking
 
7:46 PM
@orlp Intrusive stuff is extremely crappy for the user, and wouldn't allow for interchangeable heap/GC implementations
 
@CatPlusPlus I mentioned above, but maybe you missed it - this is for a lisp interpreter
 
Heaps usually just overallocate to compensate for their administrative stuff
 
so it's not some reusable gc library, it's only for the implementation
 
Even bare bones malloc has overhead
Do you really want to implement GC yourself :v
 
@CatPlusPlus something about warcraft fish man thing
 
7:48 PM
What
 
I looked around, there's no simple GC implementation I could find
all of them use magic virtual memory stuff
 
Pick a VM
Any VM
 
that one
 
Also there are some minimal Lisp implementations that probably have GC
 
@ScottW loosen your hyperdrive
 
7:50 PM
Also define magic virtual memory stuff
 
also, my goal here is more or less to educate and enjoy myself rather than getting it to work with minimal effort possible
 
All memory is virtual
As far as userland is concerned
 
@CatPlusPlus OS-provided memory read/write barriers and/or callbacks
 
Maybe you looked at heap managers not GCs
Anyway GC is not really an interesting part of implementing language imo so
I'd just use CLR
 
GC is terrible
 
7:51 PM
Or JVM
 
oh
also, many c++ GC's I could find scan memory for what 'looks like' a pointer
 
Because they can't do better
 
they can
 
You're not very likely to find a precise GC that works with C++
 
user1804599
 
7:52 PM
I want a GC that manages references
 
But you don't really need a GC that works with C++
Since you're implementing Lisp and all of your stuff will live in a Lisp heap
 
yeah that's what I mean
 
@xeo you watching this uhc?
 
but I'm looking for C++ implementations
so my google-fu is hurt
 
Simple mark and sweep shouldn't be too hard to write
 
user1804599
7:54 PM
It's incredibly easy.
 
user1804599
I've done it many times.
 
user1804599
Writing a compacting GC is also incredibly easy.
 
I was thinking of doing something like this
struct GCObject {
    void mark();
    virtual void mark_references() { this->mark(); }
};

struct LispObj : GCObject;

struct LispCons : LispObj {
    LispObj* car;
    LispObj* cdr;

    virtual void mark_references() {
        this->mark();
        car->mark_references();
        cdr->mark_references();
    }
};
 
user1804599
@orlp fails.
 
user1804599
check if already marked
 
user1804599
7:55 PM
otherwise cycle causes stack overfow
 
well it was pseudocode
and obviously cdr can be nullptr
so need to check that too
 
user1804599
@orlp eww null
 
and I was thinking of doing a compacting GC, but I don't know how to best keep track of what's alive/dead, how to update all the pointers to the new location, and how to determine what size the new location should be, blablabla
 
user1804599
very easy
 
The size doesn't change
 
7:58 PM
@CatPlusPlus ?
 
The location is just increasing counter
 
user1804599
remove virtual void mark_references function.
 
It compacts the heap, not the objects
 
user1804599
you basically have to compute struct layout yourself given a list of fields
 
Sort them by size and just put them back one by one
There, compacted
 
user1804599
7:59 PM
can't use polymorphic base class since you can't memcpy that without UB
 
@rightfold you mean like a tagged union?
 
hello
 
user1804599
@orlp lemme give example
 

« first day (1726 days earlier)      last day (3226 days later) »