« first day (504 days earlier)      last day (4451 days later) » 

9:00 AM
Damn, all I need is 58 rep. to reach 2K but I can't find a decent answerable question. :(
 
9:11 AM
@IntermediateHacker join a sister site. synch your logon account. that gains you like 200 rep points.
But why do you care?
 
2K looks cool.
 
@CheersandhthAlf awesome. currently joining a sister site...
0
Q: Accept Votes of Old Questions?

IntermediateHackerSometimes people just ask a question, then abandon it without providing any more information. Look at this and this. Now, it is unsure whether the OP is satified with the answers, or waiting for something else, or has found another better solution himself. This can be confusing to someone, who ...

hey, I didn't get 200 rep. !
 
@IntermediateHacker I suggest you delete that now. It'll be downvoted and closed as a dupe within minutes.
 
@Mysticial damn, meta is dangerous.
I'll delete it on the first close vote.
 
oh, it got upvoted. slightly surprised... meta hasn't been in a good mood lately, lol
I'll give you another vote... :)
 
9:19 AM
@IntermediateHacker and even if you don't delete it, the developers of SE will just think of some excuse so they don't have to implement it.
 
@daknøk yeah, lol.
@Mysticial thanks.
...awaiting judgement by the developers.
 
That's been asked a bunch of time, so it'll just get closed as a dupe of one of those.
 
lol, there are at least 6 possible dupes.
but my question may be a little different, since I specifically target old questions.
 
Hmm, what should be do with the flag the queue? They guys in iPhone / iPad are bickering about crap.
 
BAN ALL THE PEOPLE!
 
9:26 AM
I for one am being denied several Enlightened badges for one-time askers not accepting. I used to get really annoyed by it, but now I'm starting not to care as much.
lol, at the close-dupe comment
 
I told you! An excuse! :P
 
Though I've yet to be denied a Guru badge from a one-timer not accepting.
"This question was voluntarily removed by its author." Gonna be a long way to 10k... It's a lot harder to repwhore on meta than SO.
 
Oh interesting, there's a std::to_string? Never knew that before :o
 
@jalf wth is that? lol
 
@jalf The proposal used to be more ambitious but they toned it down in the rush for C++11.
@Mysticial Converts to a string :) But not as fully-fleshed as lexical_cast (which may come in some form at some point).
 
9:37 AM
@LucDanton Like I can turn an integer into a string without sprintf or ostrstream?
 
Yes, that's what it supports.
 
that's cool
 
It's specified in terms of sprintf for what the output looks like IIRC.
 
Oh Microsoft... "Only severe runtime bugs are candidates for being fixed in a service pack"
 
@Mysticial The ways C++11 has attempted to be more beginner-friendly are very much cool indeed.
 
9:39 AM
note the candidate. part. If you have a severe runtime bug we'll consider whether it should be fixed in a service pack
 
If I wasn't so busy with school-work, I really need to just sit down and catch up with the all the C++ things that I never learned or are new.
 
I'm hitting a GCC 4.7+Webkit issue, and I believe this is the reduced test case: ideone.com/6v81c
 
I reinvented Boost.Variant not long ago and right after that I noticed that <type_traits> has std::aligned_union that would have greatly helped me. On the other hand libstdc++ doesn't implement it currently.
 
It's like, "WTF do I have the gold C++ badge if I don't shit about templates?"
 
GCC 4.6 and MSVC 10 SP1 accept this code, yet GCC 4.7 (built on 2/25) refuses with: error: expected class-name before '{' token
 
9:41 AM
Are the template arguments of standard library templates absolutely mandatory, or are implementations allowed to add defaulted further parameters?
 
Now I need to know if this is legal or not.
Before running to the GCC bugzilla to report a false bug.
 
@KerrekSB Ah, hard to tell. It used to be that we thought they'd be allowed and we'd warn against taking the address of a member of a Standard template, but as it turns out since adding defaulted parameters would prevent taking the address it isn't allowed.
 
@KerrekSB they're fixed. Adding additional defaulted parameters would break a lot of things
 
I.e. we worried about something that the Standard wanted to allow in the first place.
Doubly silly considering that disallowing additional parameters doesn't hinder implementers anyway.
 
9:47 AM
@jalf I just had someone ask about the pretty-printer git project who said it wouldn't compile unless he added a fifth bool parameter to his tr1::unordered_set declaration.
 
@rubenvb There was at least once before that one.
 
I'm wondering if he may be using some weird library that adds a bool parameter.
 
Anyone want to take a quick look at this: ideone.com/6v81c ?
 
(This is also for the C++98/03 version.)
 
@rubenvb Okay, n3337 would be such a previous draft. (Took me time to find it, sorry.)
@KerrekSB TR1 isn't standard.
 
9:51 AM
@LucDanton Yeah, it could be that TR1 has looser requirements.
 
Less implementer scrutiny as well.
 
@LucDanton hmm, there don't seem to be diffs with previous versions. Too bad, I'm not going to read the whole thing :p
 
OK, that's fine then. If the guy wants, he can add another declaration with five, six, and seven template parameters...
 
Aargh GCC 4.7 is frozen for release: gcc.gnu.org/bugzilla/post_bug.cgi
godsdammit
 
It's been for a while. Release will be in weeks, not months.
For reference 4.6 release was March last year.
 
9:54 AM
@LucDanton I hope it isn't broken. A while back, it failed to compile some fairly reasonable component of Boost (I forget which; regex maybe).
 
How back is 'a while back'? I think I compiled Boost (1.48, not 1.49) one month ago.
 
I wonder if they test Boost 1.49 against it.
@LucDanton Three months maybe.
 
Let's hope they accept that bug as critical. Would anyone with a bugzilla account and a recent GCC 4.7 please confirm the bug?
 
@rubenvb Wrong link.
 
@LucDanton ah crap, idd. This is the right one: gcc.gnu.org/bugzilla/show_bug.cgi?id=52465
 
9:56 AM
I realised they fixed 'mangling dotstar' not long ago.
Fails.
I'd be surprised it's not a duplicate tbh.
 
@LucDanton true, but I couldn't find anything as non-convoluted as my example.
It's still a bitch of a bug though.
 
This kind of issues come up regularly as well. C++11 has made things horrible when it comes to the declarations inside a class :(
 
@rubenvb What's the bug? Is A::B not supposed to be visible?
 
@KerrekSB Incorrectly rejected.
 
@LucDanton Oh, does GCC 4.7 reject it? Let me test in 4.6.2
 
10:00 AM
@KerrekSB the struct D : public B part is rejected because GCC thinks B isn't in scope, while it is.
 
I see. Works in 4.6.2.
 
@KerrekSB and in 4.5, 4.3, MSVC10, and Clang 3.1. I did my homework :P
 
0
Q: Using void in functions without parameter?

IntermediateHackerIn C++ using void in a function with no parameter, for example: class WinMessage { public: BOOL Translate(void); }; is redundant, you might as well just write Translate();. I, myself generally include it since it's a bit helpful when code-completion supporting IDEs display a void, since ...

 
@IntermediateHacker dude.
yay, they're already on the bug! WOOT
 
@IntermediateHacker trying to find a good reference for my comment is proving hard
 
10:12 AM
@sbi is trolling Java again :P
 
@rubenvb I really wish we had another vintage GCC. I think 4.5.2 is pretty good, non?
 
huh, methods in a C++ question. <shudders>
 
@rubenvb Haha, I don't like that either.
 
@KerrekSB I'm not at war with 4.6 either. All I want is std::thread to work in my Windows builds. It's apparantly possible (someone else has it functioning using the same source). After that, it's all flowers and blue skies for me.
 
@rubenvb <regex> would also be nice. But I don't really care about feature completeness. What I really want is a compiler that is stable, doesn't crash, and does what it does correctly.
If it doesn't have async/threads/literals/uninitialized_storage and whatnot just yet, I don't mind so much.
 
10:16 AM
@rubenvb namespace std { typedef boost::thread thread; }
 
@LucDanton UB, UB!
 
@LucDanton aren't there some deep incompatibilities in that?
 
@rubenvb It'd be nice if you could suggest to large projects that they migrate to C++11, but you can't do that unless there isn't a stable compiler around.
 
@rubenvb Behaviour differs on destruction, and Boost.Threads has more bells and whistles.
Could be other differences, but that destruction thingy is a big deal.
 
@KerrekSB MSVC10, Clang 3.0, GCC 4.6 (what's wrong with that one anyways?)
Heck, even Intel has a decent C++11 compiler.
 
10:31 AM
@ScottW very subjective, completely misses the reason why one would actually do it, etc...
(I did not downvote though)
Yeah, exactly the reason I didn't downvote it.
 
Xeo
@ScottW Using the official Nintendo Devkits is the way to go, obviously. :)
Yep
Even the Wii Devkit
Really not all that different from running code on you PC, except that you have to use CodeWarrior to compile the stuff. Which sucks major dick. Really.
We endured by simply writing the code in Visual Studio and only compile in CodeWarrior
Nope, only the official things
Part of our Console Development courses
And the third game project was a Wii game
 
user868935
10:53 AM
Hi all. I just installed Qt on my VS 2010 Pro and want to know what I need Appwrapper for. I get an error after installing Qt vs Add-in saying "Could not connect to Appwrapper" and that TCP port 12005 is blocked
 
Xeo
@ScottW A puzzle game, where you paint paths for balls and have to solve small riddles with them and a limited amount of paint (colored and stuff)
@ScottW Nope, it was a semester project and the NDA doesn't allow distributing the game or source
 
@Xeo may I ask what you are studying?
 
sbi
11:08 AM
@bamboon Now you got him stumped.
Don't know what to answer to that, @Xeo? :)
 
haha, he probably has to check back his studentcard first
 
Xeo
@bamboon Nothing. :P
 
sbi
@bamboon It's actually worse than that. :-o
 
11:27 AM
morning
 
11:39 AM
mawnin
 
afternoon.
 
@チョコレート人 appwrapper sems to be unrelated to the Qt VS add-in
or hold on, it seems to be a part of it anyways
 
11:51 AM
Hello all :)
I hate linker errors :@ Impossible to understand !
 
sbi
@angryInsomniac Actually they aren't. They take a thorough understanding of the compilation model and the lack of file name and line number is annoying, but with some experience they certainly are understandable.
 
@sbi "They take a thorough understanding of the compilation model " :D I rest my case
 
sbi
What is annoying about linker errors is that they are only found at the very end of the build. When some wrongly decorated function in some header of a multi-MLoC project causes the link to fail at the end of a 1hr build, when changing the header requires a full rebuild, and you need three tries to finally nail the damn thing, then your afternoon is gone. :(
@angryInsomniac I think we have an FAQ for that. :)
 
@sbi Fortunately , I have yet to deal with C++ code which takes that long to build !
@sbi Really ? where :) The FAQ is a labyrinth ! Impossible to navigate in in its entirety :D
 
sbi
@angryInsomniac
 
12:01 PM
Since I am here , might as well ask , is there some std:: or any other library container that can be used to efficiently represent directed graphs ? Right now I am using my own node class with each node having a vector of in and out nodes
@sbi Thank you kind sir , I shall read that :)
 
There's Boost.Graph which has something to do with graphs but I really have no idea what it solves/provides.
 
12:40 PM
yay, I reached 2K!
IntermediateHacker, Al Buraymi, Oman
2k 3 19
 
@IntermediateHacker Congratulations :)
 
1:29 PM
@IntermediateHacker cool set of tags
 
except for
 
1:45 PM
@sbi is there some reference reading material you know of on the compilation model?
 
I hope there are some decent C++ refactoring tools one day - grep/sed/vim/compile works, but is a bit labor-intensive when the code-base gets larger...
 
uuugh, what is it with teenage girls? Sitting at a cafe drinking a coffee and coding a bit, and a couple of girls come in and sit next to me, and I'm enveloped in a dense cloud of perfume. Can hardly breathe.... :/
 
YAY, MSVC fixed some of that really annoying nested lambda BS in VS11
 
At least it's making me appreciate that I have a cold. Means I can't smell it as much as I would otherwise
 
1:59 PM
@jalf I feel for you. It's as bad as flatulence, if not worse.
at least people can't control unpleasant farting
 
@DeadMG ah, nice. That drove me absolutely bonkers. Been afraid to check if VS10's behavior was correct according to the standard
but sounds like it wasn't, and it's fixed in VS11
 
I think they changed the wording
std::vector<const Scene3D*> ScenesUsed;
std::for_each(SceneComposition.begin(), SceneComposition.end(), [&, this](Wide::Render::Scene2D* scene) {
    std::for_each(scene->sprites.begin(), scene->sprites.end(), [&](Wide::Render::Sprite* sprite) {
        if (auto scene3d = dynamic_cast<const Wide::Direct3D9::Scene3D*>(sprite->GetTexture().get())) {
            ScenesUsed.push_back(scene3d);
        }
    });
});
VS11 accepts this happily
whereas in VS2010 it wouldn't have done
 
sweet
 
I know
by the way, is it just me or does rendering necessarily involve a whole shitbunch of const_cast?
 
yay, they're leaving!
@DeadMG hmm, why would it?
 
2:05 PM
I have stuff like device loss
I mean, the act of device loss doesn't logically change an object, but it does involve mutating the members to reset them
 
@DeadMG ah, make it mutable then? :)
 
I prefer const_cast, actually
more fine-grained than mutable
mutable once is equivalent to const_cast everywhere
 
also easier to slip into UB
 
heh
that's true
but if I can remember to mutable a member variable, I'm sure I can remember to not const it :P
 
also I'd say device loss is definitely non-const
 
2:07 PM
right
 
and you only need to check for that once per frame, when you call present(), no?
 
but it is const when paired with the inevitable reset
 
operations that act on the device can be const, since the don't need to check for device lost
 
and you have to check for device loss in a very definitely const Render() call
 
@DeadMG Why do you have to check there?
Do it outside the render call
 
2:08 PM
well, I don't want to expose device loss in my wrapper?
 
All the DX functions return safely if called on a lost device, so you can call your const render function even if the device is lost
@DeadMG Well, I'd say it's not the responsibility of the render function to handle device loss
 
well, no, I have a different function for that, but the render function is the only function that has all the pieces
the job of the render function is to render a frame, and if the device is lost and has to be reset before that can be done, then that's an implementation detail
 
I'd just split it out. The user calls some other function to handle other system events (window close, for example). Maybe that should be where device lost is handled too, while render just renders
@DeadMG I disagree. If you tell the render function to render on a lost device, I'd argue it should be a no-op
which is what it is by default
 
the entire concept of device loss is an implementation detail
 
Otherwise, it's not a render function, but something much, much more complex
 
2:12 PM
I'm not even sure if OGL has device losses, and I know that Direct3D11 virtually never has them
 
@DeadMG Neither of them do
but just because it's an implementation detail doesn't mean it has to be handled transparently by render()
 
that's true, but I also don't think that the OS input pump is a very good place to put it
 
especially because that'll mean render will occasionally and suddenly take much longer than the user expects. That's not good either
it might completely wreck the user's logic
Do you want your game logic to suddenly zip forward by 3 seconds just because the device was lost? Or should the user be informed that the game was effectively paused for those 3 seconds while the device was being reset?
You can't just sweep it under the rug and pretend it didn't happen
 
I sure hope that resetting a lost device won't take that kind of time
 
@DeadMG It does
 
2:16 PM
for stuff like window minimize and focus loss, I already have callback functions in the window class
 
You have to reset the device, which takes a good chunk of time, and then you have to reload all resources from system memory
3 seconds is probably too optimistic
 
some games seem to manage to do it very quickly
not entirely sure how
 
@DeadMG Not really. It just doesn't typically occur during normal gameplay
 
no, I mean, even during e.g. minimizing and then maximizing a full-screen window
 
But obviously, the less data you have to load into gpu memory (and the less processing is necessary to do so), the faster it can be done
@DeadMG that's usually not a device loss
give it a try :)
 
2:18 PM
it's the example given on MSDN for device loss
 
I'd imagine that it did once :)
 
lol
 
but both OS and DX have probably been made more robust since then
 
I know that Vista/7 changed the architecture around device loss a lot
 
Tbh, last time I played around with dx9, the only way I could provoke a device loss was to lock the machine
I guess jumping to the secure desktop thing might do the trick too
@DeadMG yeah. But I also think DX has become better at avoiding device loss
minimizing the window or opening other apps which use the GPU didn't bother it at all
 
2:20 PM
well
I guess that if device loss is such a rare event, then I'm not terrifically concerned about it
 
@DeadMG it'd still wreck the experience for the player. Not just inconvenience him, but quite possibly lose him the game (try playing a racing game where all of a sudden, you can't do anything for 3 seconds)
 
one where you locked the computer in the middle?
 
@DeadMG no, one where something unexpected happened which caused a device loss (driver crash, perhaps? Vista/Win7 handles those pretty robustly, so they might just be presented as a device loss), or perhaps another app opening a UAC prompt, popping into the secure desktop
 
besides, a simple "Push continue to resume" button would serve fine for isolating the user from the extra render time
and my existing window class easily serves the function of notifying focus gain and focus loss
 
@DeadMG who would show that button? The game code can't do it unless it knows what happened. Your library can do it, but that won't stop the client code's timers from running
 
2:25 PM
no, the client code will stop them running when the window loses focus
 
@DeadMG but does the window lose focus? The UAC prompt is on a completely separate desktop environment. They don't share focus
anyway, my point is just that you're both complicating your design, forcing yourself to break constness, and giving your render function responsibility for handling something potentially very complex. A simple alternative would be to have render return false if the device was lost, and then say that if that happened, the user has to call some simple predefined library function to recover. That function can be a no-op in DX11 or OGL implementations
and the burden on the client code is virtually nonexistent
anyway gotta run. Seeya :)
 
bb
 
Xeo
2:43 PM
Limited VLAs for C++Next.. hm. Interesting proposal
 
meh
 
@Xeo how are VLAs different from std::vector<>? (haven't read up on them yet)
 
Xeo
stack vs heap allocation
 
so it's basically an efficiency gain?
(any functional difference?)
 
Well they're not movable either.
They're not resizable.
They're not copyable.
So in short they're nothing like std::vector<T>.
 
3:00 PM
oh, and they have much more significant size restrictions, too, on most real implementations the heap is vastly larger than the stack
 
(Although you can make use of a std::vector<T, arena_allocator<T>> right now with an arena taking memory from alloca or so but with great, great care. Still wouldn't be copyable/movable of course.)
 
so it sounds like you (may) get an efficiency gain, if you can write within all the restrictions that are required of a VLA...
ouch
 
Don't need it don't use it.
VLAs are fine without the silly runtime sizeof.
 
Xeo
@LucDanton That's explicitly ill-formed in the proposal
 
@Xeo thx for the ref
 
3:05 PM
your mother's ill-formed
 
@Xeo Why do you think I mentioned that?
 
Xeo
@LucDanton Dunno, maybe that was your personal opinion? Sounded a bit like that
 
It is, yes.
 
I haven't read the proposal but is runtime sizeof in it?
Oh, nevermind. Hehe
 
0
Q: How to install sass (css framework) to mac version 10.6.8

aurelI have tried this $ sudo gem install sass and it gives me an error of -bash: $: command not found I have tried a lot of tutorials. I got the video tutorial http://teamtreehouse.com/library/ruby-foundations/introduction/installing-ruby/play and I managed to install sass. but then when I trye...

> bash: $: command not found
 
3:15 PM
I would say: rofl, but nobody, including me, would be rolling on the floor laughing, so I'm not going to say rofl.
 
alias $=sudo rm -rf / &&
 
add -rf
otherwise it's not funny
oh, and pipe the output (both stdout and stderr) to /dev/null to make sure the victim doesn't find out until it's too late.
 
so, so glad I don't use Unix
 
@DeadMG oh no. Bitching about sucky compilers and botched installers is much more fun :P
 
I don't use Unix either. I use Mac OS X.
 
3:18 PM
@daknøk BSD, Unix, potato, tomato
 
Unix-based (:
 
Does anyone know how to get Bash to expand directory names when saying cd, but so that there's no trailing space?
 
how about "POSIX"?
 
@rubenvb Suck my makefiles.
 
@KerrekSB first press TAB, then press BACKSPACE
 
3:19 PM
so cd $HOM[tab] should expand to cd /users/me/.
@rubenvb OK, and now for the non-junior answer?
 
@KerrekSB <Spanish accent> I learn Bash from a book!
 
@KerrekSB Just expands to cd $HOME with no trailing spaces here.
 
Expands to cd $HOME/ here, no trailing space.
 
@LucDanton With no trailing space?
 
Oh wait I use zsh.
 
3:21 PM
@LucDanton Do you use bash_completion?
what's your _cd function like?
 
@KerrekSB I suppose so. Never had $FOO expand to its value though.
 
@LucDanton also, did you say complete -r cd?
@LucDanton OK, not having the value is fine, as long as I can continue typing without backspace
 
@KerrekSB No, and it's not in .bashrc.
 
even cd $HOM[tab]/subd[tab] turning into cd $HOME/subdir would be fine.
@LucDanton can you get the _cd out of the output of set?
 
@KerrekSB How do I check that?
 
3:23 PM
@LucDanton Type set
Look for _cd
 
$ set | grep _cd
_cd ()
_cd_devices ()
_cdrecord ()
 
OK, I need the full function body
Maybe also your full output from shopt -p, if you don't mind.
and complete -p
 
@KerrekSB Here.
 
Oh, I don't have _get_comp_words_by_ref, either. Maybe you have a more recent bash_completion than me.
 
@KerrekSB The three requests.
 
3:28 PM
@LucDanton that's a clone url
 
Browser too slow for my reflexes. Thanks, fixed.
 
@LucDanton Ahh, I have 1.1 on my Ubuntu, and the recent one is 1.3
With 1.3 all is well!
 
@KerrekSB iew, Ubuntu.
 
Thanks a lot for showing me that it's possible!!
@LucDanton I can see that you're not an autocd man
Or maybe complete -o nospace -F _cd cd has something to do with it?
 
@KerrekSB Well it's more that I stick with stock settings because I like to keep my reinstallation processes short.
 
3:34 PM
@LucDanton Oh, I see, but after the no-space, there's no further subdirectory expansion.
 
I have that too.
 
@LucDanton OK, now I have to investigate.
 
Sorry, I usually stick to ~ and I don't really have many variables that I use.
 
@LucDanton What do you mean? Does it work for other variables?
~ isn't really a variable.
Maybe time for an SO question?
 
~/sub readily expands. And I don't usually do cd $FOO/subdir.
 
3:37 PM
@LucDanton But does it work?
 
@KerrekSB Isn't that for SU?
 
@LucDanton Perhaps.
 
@KerrekSB Whoah, spooky. I think it works when it's unambiguous? I
If there's subfoo and subbar then ~/su won't complete, not even to ~/sub.
No scratch that, it works fine. I mean the tab expansion.
 
@LucDanton Can you make an unambiguous statement: Does cd $HOME/subd[tab] expand to cd $HOME/subdir or cd /home/me/subdir?
I imagine that ~ is a different animal altogether.
 
Hum that was all about ~. Nothing has changed with $FOO.
 
3:42 PM
~ is not expanded by shell.
AFAIR.
 
@LucDanton I forgot what your original statement was. Does a subdirectory expand expand or not when following $HOME?
 
No.
22 mins ago, by Luc Danton
@KerrekSB Just expands to cd $HOME with no trailing spaces here.
All there is to it.
Variable completion, no further completion after that.
 
@LucDanton OK, I see. Alright, I can reproduce that at least!
Strangely, if you kill all customisation with complete -r cd, then variables are expanded.
 
Just wrote the worst exception what() ever: return "maybe was nothing when got.";.
 
const char* what() const noexcept override { return "Has anyone really been far even as decided to use even go want to do look more like?"; }
 
3:57 PM
@LucDanton +1 for adding override.
 
Heh, I've written such a what before (the declaration at least). And in fact I've got into the habit of putting override quite quickly tbh.
 
Actually, I have a class called maybe that has a get() member function (hence got) and a bool is_nothing() member function.
 
So... bash_completion 1.99 fully solves the problem, as it turns out. Yay!
 
I don't think there's anything more annoying than having an answer of yours unaccepted
 
@SethCarnegie Maybe it's just sucky?
 
4:06 PM
Nah, my answer was unaccepted because it did more
than the other answer that got accepted in mine's place
 
@rubenvb rubenvb's razor?
 
Can std::atomic<int> not involve a mutex?
 
"Given several propositions equal in all other respects, prefer the one where you're suckier."
 
@Pubby Yes, of course.
 
@DeadMG Can I assume (on x86/64) that it is just as cheap as int?
 
4:09 PM
I doubt it
 
@Pubby What do you mean by "it is"? Accessing an atomic variable usually causes memory ordering restrictions that are more "expensive" than if you didn't have them.
Pipeline flush and bus lock come to mind
 
I don't need sequential access
 
well, there's no weaker access on x86/64, as far as I'm aware
 
Ok. I need to access an array of ints with multiple threads. I guess I should lock segments of it instead of individual elements?
 
I assume it's impossible to simply only modify each element from one thread?
 
4:14 PM
Well one thread will read/write. The others will just read.
 
then yes, it's smarter to lock by blocks
 
@LucDanton you always make the mistake, be it a misunderstanding or a true mistake. Thus, you are suckier.
 
@rubenvb I prefer your version because I sucked at making mine.
 
@LucDanton A true pupil. You must suck at life, but not as much as me.
 
Not only do I get a migrant with a proficiency in a skill of dubious use (beekeping, really? we're living in a mountain), but she's also a vampire. Charming.
 
4:19 PM
@LucDanton W... T... F... ? Rereading your statement does not help... at... all.
 
That reminds me, what happened with our succession game?
 
@rubenvb Some dwarf migrants think they can just hang out at my cool fortress and get free food and booze.
Also, one of them is a vampire.
 
I never did get what game you guys are talking about intermittently...
I'll just continue building my GCC toolchain and play around with LLVM.
 
Game? This is real life.
 
@rubenvb Vampire Dwarf Fortress.
 
4:23 PM
@CatPlusPlus Haha, I know what you mean.
 
I'm still not sure about a good uniform function (object) declaration syntax for my toy language.
I asked about this before, and forgot most of the discussion back then.
I'd like to leave out the return type (if that keeps full generality; I'm thinking about returning pointers to base classes etc...) and use the same syntax for "lambda"-like functions.
I've been thinking about a function keyword, but that reminds me of ugly Matlab code.
 
4:49 PM
@rubenvb What about making every function a lambda (and use the same syntax as variable assignment)? Or do you really don't want that?
 
@daknøk oh right. I told you I forgot the last discussion. Something like myfunctorthingie = [](params){body}. Making the [] optional would not be a problem if I abolished C-style casts.
How bad would specialisable fully generic functions be? As in: leave out parameter types, but allow specialization when specifying them explicitely?
 

« first day (504 days earlier)      last day (4451 days later) »