« first day (1863 days earlier)      last day (3071 days later) » 

Ell
2:00 PM
@sehe meh
I don't want the rest of debian :P
 
never understood what people didn't like about debian except the out of date packages
 
Feel free to search transcript for whenever I mentioned Debian
 
Would it because ... you were forced to use Debian?
 
Aug 28 at 18:59, by Cat Plus Plus
Debian is mostly garbage, but it might work okay if you're not doing anything with it
 
@TonyTheLion love me
 
2:06 PM
I use Ubuntu ... so far so good, but I only use it to host a website
 
Do you use Windows?
 
Also helpdesk helps out on most tech difficulties that I have
I use windows & OSX also
 
2:17 PM
@sbi That is why I asked about how often you allocate. My thought was to go for linear scan of the free space from the first free block.
 
user406009
@GregorMcGregor Debian's packages are quite recent if you use testing.
 
user406009
Stable gets old, but that's the name of the game with stable.
 
Ell
ugh fek
why doesn't opengl work on this terrible machine
all I need is opengl 1.2 or something ridiculous :L
> OpenGL version string: 3.0
 
Guys, is anywhere good constexpr implementation of variant (like boost::variant)?
 
> whether a coroutine is a stackful construct, i.e., whether it is able to suspend its execution from within nested calls.
@Lalaland I open a coroutine paper and I run into that right after the abstract
egg on face etc.
 
2:27 PM
Just created a 30720x17280 screenshot. 1,48 GB of raw data.
 
user1804599
 
user1804599
 
user1804599
Awesome!
 
poor margins
 
@ElimGarak y doe
 
2:37 PM
@Lalaland I should have used Google Scholar as well
 
@набиячлэвэлиь rebel
 
@набиячлэвэлиь Tiling minifrustums to generate an arbitrary sized screenshot. Postprocessing is also done afterwards in an edge-sensitive manner, so that it no tiling patterns emerge due to stuff like vignettes and discontinuities in glare. Wanted to see how far it can go, so 30720x17280. :D
 
@ElimGarak I know some of those words
 
Photoshop loses its shit at that resolution, tho.
 
Does it try to allocate 69GB of memory?
 
2:43 PM
Refuses to try, probably has a wired-in maximum.
 
Ell
You want to edit this? :V
 
I am thinking of ways to politely dump the Lounge's full transcript. All 1860-ish days.
 
Ell
Have you been scraping it?
 
Any experience C/System programming person there??
I'm in trouble
?
??
 
???
 
See my Question here
http://stackoverflow.com/questions/33855949/why-compiler-showing-warning-in-my-code?noredirect=1#comment55476222_33855949
 
Nov 7 at 19:38, by Tony The Lion
Please read the rules. Thanks a bunch.
 
@BilalMaqsood It has an answer already
 
my god
stackoverflow is filled with downvote/closevote nazis
-1
Q: Find first matching regex from list of regexes

orlpLet's say I have a list of regexes like such (this is a simple example, the real code has more complex regexes): regs = [r'apple', 'strawberry', r'pear', r'.*berry', r'fruit: [a-z]*'] I want to exactly match one of the regexes above (so ^regex$) and return the index. Additionally, I want to ma...

 
Ans did not work
 
2:53 PM
while(st[i]!='$'    ){
lol the formatting
 
there is no problem with is space
 
user1804599
If there are catastrophes, are there also anastrophes?
 
problem is where i am calling functions
 
@BilalMaqsood Write everything in main()
calling other functions is a sign of weakness
 
(*old)(); lol
 
user1804599
2:55 PM
@orlp Parenthesize each regular expression.
 
user1804599
That way you can detect which one matched.
 
@Elyse I do
 
user1804599
Problem solved!
 
@orlp use std::find()
 
@Elyse that way I find out what string matched
not which regex in the list
 
2:56 PM
@orlp use std::find()
 
Call to function with no prototype
 
@BilalMaqsood Get. OUT.
 
this is the warning that is showing
 
@Ell Considering making a Lounge analysis tool, but not sure about ToS and stuff.
 
user1804599
do{
            WritePHP();
            learnPHP();
              if(stuck())
               GotoStackoverflow();
            }while(isLife());
 
user1804599
2:56 PM
dat biography
 
@Elyse Just wanted to link it ahahah
 
user1804599
@sehe is DOT suitable for flow charts? If not, do you know something similar which is?
 
user1804599
I want flow charts under version control.
 
user1804599
ASCII art is too difficult to edit.
 
are these people stupid or what
I'm not asking them to review my example code I wrote in 60 seconds
I just wonder if you can match N regexes at once and figure out which one of the N (if any) matched
 
user1804599
3:00 PM
@orlp Well, it's , so that is indeed quite a safe assumption.
 
because matching many regexes at once can be vastly cheaper
 
user1804599
What are your real (non-example) regexes, though?
 
It is structured fairly nicely, should be trivial to parse, but it would require a couple of thousand requests on first go and then append additionally as days go by. Just for the sake of the "fuck histogram", it's worth it.
 
@Elyse user input
 
user1804599
:p
 
3:03 PM
@Elyse working on a little tool
basically I could rename this question
 
@orlp I doubt you can do anything else but combine them
 
'how to efficiently implement .gitignore'
 
@orlp inb4 use git's code
 
please any one help me dont slap me plz
7
 
hrm, I have a Python gold badge
can I use my dictator powers to reopen if they close?
 
3:04 PM
When it comes to things like .gitignore the stat() call is likely to be more expensive than filename matching anyway
 
@BilalMaqsood punch
 
not that I'd want to
but I wonder if I could
 
I wouldn't worry about the regex part at all
 
@CatPlusPlus right, but assuming you have a list of names
 
user1804599
@orlp .gitignore doesn't use arbitrary regexes.
 
3:04 PM
I'm not actually implementing gitignore
 
It's also a problem that crops up in request routing
It's also not really worth it to do anything other than just go through the regex list
 
@CatPlusPlus it was more for curiosity's sake than a performance bottle neck
let's say you take this excellent question
2
A: Algorithm for O(1) weighted random selection with removal

orlpActually, it seems I have misread the question. I was not aware of the alias method, and the answer below is not an analogous algorithm. I'll leave my answer here because it's still informative. I'm not aware of an O(1) algorithm, but it's easy to do in log(N)2 search and log(N) update. This c...

if this person added example code of how he solved it in O(log n) to get rid of the fucking 'omg show me teh codez cuz im not doing ur homework' idiots
would it then be closed and moved to codereview?
 
I think state machines are mergeable in general, but good luck getting a RE engine to do that
 
fuck me for putting effort into questions
 
Here's a handy guide for posting on snack overflow: 1. dont
 
3:15 PM
@CatPlusPlus Can't, who is going to stroke his ego then? :(
 
@ElimGarak heh
 
I just imagined SO without rep. Hint: It's ded.
> Stack Overflow received criticism regarding its community that prevents women from actively participating in asking questions and answering them. Such criticism raises that StackOverflow strongly promotes oneupmanship; fosters flame-wars and the down-voting of individuals which discourages female users from participating.
Wat.
 
3:41 PM
@ElimGarak Somebody who misread "SO" as "Reddit" or "HN" or somesuch?
 
Ell
@ElimGarak I guess the critic is implying women aren't competitive enough to play
after all, this is why most of them just prefer to raise children and do cleaning instead of competing in the job market
 
@ElimGarak what is that bullcrap
oneupmanship is sexist?
that very statement is sexist
it implies that women can't one up
 
> IT experts specifically (e.g., StackOverflow).
 
user784668
@JerryCoffin lol
 
user784668
Is this a correct thread-safe queue: gist.github.com/Fanael/bacb5e48db2bdcfdfec1 ?
 
3:54 PM
"while male users sometimes masquerade as females believing other (male) users would be less aggressive towards them and their questions"
citation fucking needed
 
@orlp Cicada <3 ahahah
 
Future work should expand on the current notion of gender
as a binary phenomenon (male/female), an approach that has
been already criticised by some of the gender-technology
students
gender-technology?
 
They need to use cinch words so they don't get thrown out.
 
@ElimGarak cinch words?
 
@Nooble Yes.
 
Ell
4:04 PM
@orlp citation not needed
X "sometimes" Y
it doesn't mean much
 
How to disable writing in my console application is worked in the Linux terminal?
4
 
@QueueOverflow I think you needd to applicate your Linux in the writing terminal to disable console.
 
hm...strange. Any HTTP download I start stops dead after a couple KB, but loading sites, youtube videos and whatnot works fine.
not just this machine, either.
 
> 1) Blender 2.77 targets
- Meeting agrees on Mike Erwin's proposal to upgrade Blender to OpenGL 2.1 minimal.
Props for supporting old hardware
but this is ancient T_T
 
So what
 
4:15 PM
Blender buckles under load mostly because by default it uses ancient opengl api which is slower
 
Ell
@QueueOverflow Not quite - almost there though
 
one sec im grabbing my flame resistant gear
cat is about to erupt
 
Ell
@Borgleader holy balls
I had no idea it was that ancient
wait that can't be right
I can render shader materials in the viewport in realtime
 
@Ell Theres an option in the settings for using VBOs, its off by default so as to not raise the minimum requirements. It seems it was introduced in 2.1 (and was an extension before that, or im reading this page wrong)
 
@Elyse Wut?
 
Ell
 
yeah
 
Ell
it's p cool
 
@Borgleader Really?
I wouldn't think it does anything that'd warrant that
 
4:41 PM
If only DCC tools weren't so legacy audience driven.
 
@ElimGarak Blender is legacy audience driven, the rest are just lazy ;)
 
I mean, legacy audience as in people started using it in the 90s and that's pretty much the only reason they continue to use it today.
 
I am trying to get the IP address of my server (via Berkeley sockets):
inet_ntoa(server_address.sin_addr)

But it return 0.0.0.0...
 
@ElimGarak you mean particular software suites, or in general?
 
@melak47 Max & Maya in particular.
 
4:46 PM
Yeah. If I was getting into 3D software now, I don't think Max would look too attractive :/
 
I heard Maya is superior to Max
out of the two
but I heard more good things about Modo
 
Yes, but that's a comparison between a turd and diarrhea
I tried Blender, compared to Modo, it's shit.
 
@QueueOverflow I guess that's your IP then.
 
Ugh I have incredibly shitty connection to AWS today
 
@ElimGarak I think the same of Max compared to Blender
 
4:51 PM
I have an incredibly shitty connection to everything today.
 
at least Blender is free
 
Max is useless for modeling, I am not even sure relevant people use it anymore in that capacity, beyond hardcore cargo cult noobs.
 
it's the only thing I know :(
 
Between Modo and Zbrush, especially now with ZModeler, it's a staging area at best. To setup scenes and wank with Vray, but with 4R7 and Keyshot integration, even less so. Not to mention it is leaky as shit. Leave it running for a 3-4 days (working in between), 9 GB of memory gulped up.
 
Both of which cost a fortune
 
4:53 PM
@Nooble Ok, you are right. But what's about port? It told that the port number is equal to 16 (real 4096).
 
did you convert to network byte order etc?
 
server_address.sin_port = htons(SERVER_PORT)
@melak47 Thank you very much! I forgot to convert back my port number :)
 
bah, how can I be maxing my connection downloading packages with pacman, but any HTTP download just stops...
 
Ell
@ElimGarak I didn't know you were an artist as well as a physicist :V
 
@Ell Ahahah, artist. I'd never dare call myself one. :D I cobble shit together from time to time :D
 
Ell
5:03 PM
My brother uses Maya on his animation course
 
it's simple and it's stupid but it works pretty well
 
Ven
ew
 
@ElimGarak Ell 3 Cache.
 
why can't g++ turn one of those copies in a move?
shouldn't it always be possible to move a local variable that's not used afterwards into another function that takes that variable by value?
 
5:15 PM
banned by Standard.
 
The Holy Standard.
 
@Puppy why?
 
elision and turning a copy into a move are considered side effects and may only present when the Standard explicitly states that they may.
which is a very specialized list.
 
hrm
any particular reason why 'local variable used last time to call function who takes it by value' is not on that list?
 
Ven
that'd be VERY surprising if it happened
 
5:17 PM
it'd be unobservable in the vast majority of cases.
 
let's also add not taking address/reference of the local variable as a condition
because that'll complicate stuff
my god I'm tired
my english is so bad
 
the compiler also has to consider logic based on the addresses inside the constructors and operators involved.
 
I'm dropping words all over place
 
...twice
 
5:26 PM
I am actually thinking about turning in early tonight, for the first time in months. Why is sleeping so hard :(
 
@ElimGarak Don't go to sleep now! It'd be a waste of time :p
 
FAILED: clang++ -Wall -Wextra -std=c++11 -g `deps/llvm/bin/llvm-config --cppflags`  obj/src/frontend/main.o bin/boltlib -pthread `deps/llvm/bin/llvm-config --ldflags --libs` -ldl -lm -ltinfo -lz -lboost_unit_test_framework -o bin/bolt
bin/boltlib(codegenerator.o):(.rodata._ZTIN4llvm18MCJITMemoryManagerE[_ZTIN4llvm18MCJITMemoryManagerE]+0x10): undefined reference to `typeinfo for llvm::RuntimeDyld::MemoryManager'
clang-3.7: error: linker command failed with exit code 1 (use -v to see invocation)
/cc @Puppy so much for using a package
 
@Borgleader That's a sexy error
 
@Borgleader If you have a package that doesn't include RTTI... you can still make it work with some truly terrible hacks.
but frankly RTTI should be enabled for packaged versions
 
http://llvm.org/releases/download.html
I got it from here =/
 
5:33 PM
that is not a package, I meant like, sudo apt-get install llvm-3.7-dev.
 
Hmm I'd prefer not to install globally
oh wth
 
@набиячлэвэлиь Pretty sure you broke the README.md.
 
yay
daily time to be confused again
 
@nick Are you dead?
 
why doesn't this print B?
oh const/noexcept differs
 
5:43 PM
@orlp lol
 
Ell
@ElimGarak heh
 
user1804599
@orlp it shadows the base class function of the same name due to const/noexcept mismatch.
 
user1804599
This is why you should always use override when you intend to override.
 
Ell
Did you model that head?
 
5:47 PM
I ate large burito and I am finishing with nachos. Cultural appropriation is the best!
 
@Ell Yup, I am working on some subsurface scattering improvements, so I need to create a human head, I think he's going to be black. I am actually basing his skin on Idris Elba high res shots from various public appearances.
 
@Puppy Couldnt find 3.7 but it had 3.8
 
that's trunk/SVN, not current release
 
ah
 
user1804599
> Manhattan dentist arrested for child porn and accused of trying to spread HIV by 'puncturing holes in condoms' was once an AIDS activist
 
5:53 PM
I was calling virtual function in constructor
 
user1804599
> Wolf was investigated by the FBI after a meth dealer who was arrested last March became an informant for the Brooklyn US Attorney's Office
 
oops
    virtual const char* error_type() const noexcept override { return "syntax error"; }
MOAR
BOILERPLATE
 
virtual is definitely redundant there.
 
Ven
why do people use both virtual and override?
 
you don't need to specify virtual of override is also specified?
 
5:55 PM
you just don't need to specify virtual at all, since it's overriding another virtual function.
 
ah
 
@Puppy unless you get the signature wrong and it isnt?
 
right
 
the override just makes it clear and gives you a compiler error if you forgot something and it doesn't override
 
    const char* error_type() const noexcept override { return "syntax error"; }
not quite as ridiculous but still kinda funny
 
5:56 PM
const char* error_type() const noexcept final override; :D
 
I definitely don't want final
 
can you put final before const? then it would look even better :p
 
can swap const char* for auto I believe
 
user1804599
You can put virtual after *.
 
so I format a message inside the what() of an exception object
 
user1804599
5:59 PM
@StackedCrooked :[
 
and what() traditionally returns a const char*
 
@orlp HAHA YOU'RE SCREWED :D
 
should I hold a mutable std::shared_ptr and return c_str that way?
 
user1804599
Store a buffer in the exception object.
 
this is not a memory-sensitive exception
 
user1804599
6:00 PM
Use Boehm GC.
 
user1804599
Store it in a thread-local.
 
user1804599
So many options.
 
I think this is a valid case for mutable though, right?
it only computes the what() once
and it doesn't logically change the state of the exception
so what() const still makes sense
 
why is your exception so lazy
 
@melak47 what do you mean
 
6:02 PM
why compute the string only in what()
 
@melak47 well, where else?
I can't do it in the constructor
since I can't call virtual functions there
 
just how are you building this string :S
 
user1804599
@orlp abstract this mechanism so it doesn't become a pattern: gist.github.com/rightfold/cf4cbf3e7b2cfc322716
 
user1804599
Because patterns are duplication and duplication is bad.
 
@Elyse ^ JTree is a bit more user-friendly than simple text output ;)
 
user1804599
6:08 PM
lolnice
 
user1804599
You should format types like in C though, IMO.
 
@Elyse I've had this on my TODO list for months...
 
user1804599
Also put = between the type and the value.
 
user1804599
Also, you should optimise away that loop. Because it has UB.
 
@Puppy Good news, that package does seem to have RTTI. Bad news, the api changed and the code that used to work on windows seg faults. Time to gdb that shit.
 
user1804599
6:11 PM
It increments an uninitialised value.
 
@Borgleader Yep. You can try LLVM packages from llvm.org/apt
 
oh that's great
just amazing
what() is noexcept
so no memory allocation allowed
 
so preallocate the string in the exception :v
 
why is what noexcept though
 
because you don't want to get an exception while asking an exception for a description of the problem? :D
 
6:15 PM
@melak47 not all exceptions are memory errors
hrm
I might just say fuck it
it's not like I have something better to do when I run out of memory anyway
 
so in what kind of exception would it be acceptable to explode into another exception on what() ?
 
@melak47 memory error
 
why are you calling virtual functions in the constructor anyway?
the simplest thing to do is create the error message on construction and then just return it in what().
 
@Puppy so I have one base type to catch on that fills itself from information of the children
 
we already have that- std::exception
 
6:17 PM
I guess I could explicitly pass the information from the child
 
@Elyse whoops :)
 
user1804599
@orlp nobody gives a fuck about bad_alloc
 
@Elyse I agree with you with one exception
 
user1804599
new could just as well immediately terminate the program and nobody would care
 
this is library code
if I throw bad_alloc in noexcept I crash the entire stack
 
user1804599
6:19 PM
then catch everything inside what and return "fuck" in the catch block
 
hrm that's a good one
 
user1804599
All code except the main function is library code!
 
            return "another exception was thrown while formatting what() - giving up";
good enough
 
I have these quantity types and want to add some formatting support for them. I'm thinking length.ToString("{0:F3} {m}") does it look ok?
Have not thought much about it. ~30 seconds.
 
those sure are some quality types.
 
6:22 PM
they are really nice, have you tried them?
 
@Elyse btw optional has no reset, unless that's boost only
 
OIC :D
 
@melak47 oh, no idea how that wordo happened :)
 
user1804599
@orlp Boost.Optional does.
 
/@sehe ^^
 
6:23 PM
ah
 
@JohanLarsson what would that do, format (including conversion) as meters?
 
Yeah, that would print '1.000 m'
the F3 is fixed three digits for C# double
@melak47 here is the lib gonna put it on nuget soon.
 
Is NaN considered true or false?
 
Ell
NaN
 
or both
 
6:33 PM
depends
 
13
Q: NaN to Bool conversion: True or False?

edA-qa mort-ora-yWhat part of the C++ spec, or the IEEE float spec, states that a NaN value should convert to true as opposed to false? If I look at the C++ standard section 4.12 Boolean Conversions it says: A zero value, null pointer value, or null member pointer value is converted to false; any other val...

 
NaN == true is false
NaN == false is also false
NaN == NaN is also false
 
user1804599
@fredoverflow More UB for your implementation to detect!
 
golden tip
for cooking
Boil your steaks at least 15 minutes before microwaving them.
 
user1804599
Why would you boil meat.
 
6:39 PM
@Elyse you do it before microwaving th emeat
 
Ell
You microwave steaks? :P
 
user1804599
Why, not when.
 
Ell
@Elyse because its inside a stew
It becomes tender if cooked for a long time
 
user1804599
Oh, the rules message has vanished.
 
user1804599
Time for a new one?
 
user1804599
6:42 PM
Come back after you have read The Rules.
 
Ell
Yes
Someone star
Or pin
And both
 
user1804599
Or one less hostile:
 
user1804599
Thank you for choosing Lounge<C++>. Have a look at The Rules and enjoy your stay!
18
 
@Elyse Reading from an uninitialized variable is already detected at runtime.
 
user1804599
@fredoverflow Converting NaN to integers and Booleans isn't!
 
6:49 PM
Anyway, I just noticed that I should probably warn against conditions that are constant expressions:
 
user1804599
@fredoverflow Impossible. That would solve the halting problem!
 
why does the rules message keep disappearing?
 
user1804599
@orlp Because you didn't read the rules.
 
@Elyse What? No it doesn't. Constant expressions are recognized and classified as such by the type checker.
 
user1804599
The rules specifically state why this happens:
 
user1804599
6:51 PM
> Owners have the ability to pin items to the starboard: this keeps them on top for up to 14 days.
 
@fredoverflow turing machines have no input either
doesn't mean that they terminate
or that it's possible to determine whether they do
 
user1804599
@fredoverflow pin one of the bold messages above, please.
 
user1804599
@fredoverflow I was just kidding.
 
user1804599
@orlp a new non-feature.
 
Really, how do we join this fantastic team?
 
@fredoverflow fak
 

« first day (1863 days earlier)      last day (3071 days later) »