« first day (1638 days earlier)      last day (3328 days later) » 

10:00 AM
oh hey we can delete-vote now.
voting to delete right now.
 
guys
I need more opinions on the event timing thing
 
user1804599
-17
Q: can any one of you plz make a source code for this program

Troye SivanIt's opening night at the opera, and your friend is the prima donna (the lead female singer). You will not be in the audience, but you want to make sure she receives a standing ovation -- with every audience member standing up and clapping their hands for her. Initially, the entire audience is s...

 
user1804599
haha.
 
should event queue exposed to the user present the exact timestamp, or should it be hidden if I'm doing fixed frame updates?
 
@райтфолд nice! favorited
 
10:02 AM
almost don't want to delete so that he can get more downvotes
 
@Puppy why don't you let him edit it before closing?
 
@khajvah Yes, I already saw it long ago.
@Cinch Nope, deleted.
 
@Cinch Why would he edit it? It already contains all of his requirement.
 
@BartekBanachewicz uh why do you need a timestamp?
@MartinJames I believe that bad questions should be allowed to be reevaluated and edited for better form
 
10:04 AM
@райтфолд That question shouldn't be deleted. It is useful because it provides entertainment.
 
user1804599
Precisely.
 
@Cinch Never going to happen in that case.
 
@BartekBanachewicz um wouldn't you want to expose?
 
@Cinch There's nothing about that question worth keeping.
 
@Puppy Perhaps. But I guess I'm a bit more lenient and willing to give people a chance
 
10:06 AM
It's gone:(
 
@Cinch You can edit while a question is "closed" (note that it says "on hold"). While questions are on hold and then edited/improved it's sent to the review queue where people re-evaluate the question and possibly reopen it.
 
@Cinch That is a fault that you will lose after sufficient time here.
 
@Cinch to know which event should land in which update
 
@Rapptz did not know that
 
@Cinch I prefer to not expose things I don't have to
 
10:06 AM
You need more rep to know how SO works.
 
I want more rep
But I can't ask any questions
 
too much information on the API can be as harmful as too little
@Cinch I can imagine why
 
And there are no questions I can answer
 
I've asked 0 questions.
:d
 
@Cinch Really? You're question-banned?
 
10:07 AM
@BartekBanachewicz well idk do you plan to have them able to reach in?
 
@Cinch that's the question I'm asking in case you haven't noticed
 
@Puppy Oh, you
 
@Cinch Really? You're answer-banned?
 
@Cinch what?
 
@BartekBanachewicz Well who's the target audience here?
 
10:08 AM
@Cinch well, it's what I gather too. "I can't ask any questions" usually means you can't ask any questions
 
Flags again
 
Do you want easy to use or power?
 
> [...] the audience will eventually produce a standing ovation on its own, without you needing to add anyone
Apt
 
user1804599
standing ovulation
 
@MartinJames No
@MartinJames I'm too unskilled to usually answer questions fast
And I'm question banned because I deleted by bad questions
 
10:11 AM
lol
 
@Griwes Hello
 
@Cinch newbies mostly
 
@BartekBanachewicz Then don't expose it
 
but in general people who want to make games in haskell
 
Am I going to have to learn a new language just to answer questions?
How depressing.
 
10:21 AM
It is Lounge time...
 
@rene hi
 
Has anybody here played KeeperRL game?
How do I send my minions to some location?
 
@wilx What IS this?
 
@wilx No, what I mean is what is it built in?
 
10:29 AM
@Cinch What? I do not understand your question.
 
@wilx It has to be built with some sort of framework or OpenGL or something
It looks like SDL or something but I can't tel
Do you know?
 
@Cinch who cares?
 
@BartekBanachewicz I do because I'm interested in what other people us
 
also there's no way for something to "look like SDL"
this doesn't make a hair of sense
 
@BartekBanachewicz Of course not. It's just a guess.
 
10:30 AM
you should stop guessing and start googling instead
 
@wilx Also this looks similar to Dwarf Fortress
interesting
 
@Cinch No idea.
 
10:44 AM
No, I am just giving you advice on how to avoid the butterfly stompers :). Seriously. They are a pain, but they do good sometimes. — Mike Wise 8 mins ago
 
@райтфолд No elif/elsif?
 
user1804599
No.
 
user1804599
I have not implemented switch yet.
 
user1804599
10:55 AM
When I implement switch you won't need to nest ifs anymore.
 
user1804599
It would look like this:
 
user1804599
switch {
    case divisible?(n, 15) => "fizzbuzz";
    case divisible?(n, 3) => "fizz";
    case divisible?(n, 5) => "buzz";
    default => strconv::itoa(n);
};
 
user1804599
Braces are required for branches of if expressions and I'm not going to special-case else if.
 
@райтфолд ? available for use in identifier is nice.
 
@райтфолд I managed to do it in one line. It's just zoom (...) (StateT myMonad)
 
10:58 AM
I would do name for pure functions, name! for procedures, and name? for predicates.
 
I guess that simply having name be descriptive is too hard.
 
user1804599
@BartekBanachewicz Nice.
 
@Puppy It's too hard, because most people are stupid and can't name things properly.
 
user1804599
Time to implement !=.
 
that's their problem :P
 
11:01 AM
@Puppy It's also my problem when they get to writing libraries which I use.
 
you can't prevent that in any case.
if you're using a library written by a moron, bad naming is the least of your concerns
 
I can't prevent stupidity, but I can prevent mediocrity.
 
user1804599
I can implement != in Mill instead of C++!
 
@milleniumbug No, you really can't
 
I think I can.
Also, vec.empty?() vs vec.empty!()
Bad naming can happen to everyone.
 
user1804599
11:06 AM
I prefer empty?(vec).
 
Natural languages don't help unfortunately.
 
user1804599
Do they help fortunately?
 
They also don't :P
 
@райтфолд what about some way of flagging the switch to do all that match? so you don't need the '15' handler
 
user1804599
default always matches so that would be silly.
 
user1804599
11:10 AM
A multiswitch, lol.
 
I wonder what natural language would be better than English for writing identifiers in (ignoring historical and encoding issues - that's a hypothetical scenario)
 
@райтфолд it would be used only if no other matcher matches
 
German looks nice - they uppercase the nouns.
 
user1804599
Interesting control structure.
 
user1804599
I will add it to the list of ideas.
 
11:11 AM
mine?
 
user1804599
Yes.
 
it's much like a classic switch really, except you don't just fall through from one case to the next
 
user1804599
And you aggregate the results into a sequence.
 
hmmm
I need to split a list into n sublists
 
user1804599
Also multimatch. :P
 
11:14 AM
also... you don't need it as a language feature really... it could just be done as a function like "switch(input, list_of_pairs_of_patterns_and_functitons, optional_default)
 
user1804599
You don't need any control structure as a language feature.
 
true
 
user1804599
All you need is function application and lambdas. :P
 
'if' would be the only one you would really need though... I think...
 
user1804599
No.
 
11:17 AM
no?
 
user1804599
function true(then, else) { return then; };
function false(then, else) { return else; };
function if(c, then, else) { return c(then, else); };
if(true, 1, 2); // results in 1
if(false, 1, 2); // results in 2
 
how can you avoid basic branching being a language feature?
hmm...
 
user1804599
In fact, in Smalltalk, if is a method on Booleans.
 
but you would need someone of converting a boolean value into a function to call...
 
user1804599
Booleans are functions.
 
user1804599
11:20 AM
Well, in Smalltalk they're objects, but objects are tuples of functions, so you can say expr ifTrue: [statements to evaluate if expr] ifFalse: [statements to evaluate if not expr].
 
@thecoshman lambda calculus is turing complete
@thecoshman you should read the 2nd chapter of Types And Programming Languages
 
user1804599
Smalltalk is an object-oriented, dynamically typed, reflective programming language. Smalltalk was created as the language to underpin the "new world" of computing exemplified by "human–computer symbiosis." It was designed and created in part for educational use, more so for constructionist learning, at the Learning Research Group (LRG) of Xerox PARC by Alan Kay, Dan Ingalls, Adele Goldberg, Ted Kaehler, Scott Wallace, and others during the 1970s. The language was first generally released as Smalltalk-80. Smalltalk-like languages are in continuing active development, and have gathered loyal...
 
@BartekBanachewicz nah, I'm far to busy procrastinating from getting Catch set up for testing my code :\
 
@thecoshman um it's pretty simple really
you write out what you want the code to do
 
yeah, but effort :\
 
11:24 AM
@thecoshman what effort
 
did that guy ever get his bio paper back?
 
writing tests is easy
 
user1804599
Programming languages are fun.
 
for most of the things at least
 
@BartekBanachewicz ergh.....
 
user1804599
11:25 AM
You have a Smalltalk implementation called Squeak, a derivative of Smalltalk called Newspeak, a language called Squeak and a language called Newsqueak.
 
user1804599
It's really easy to confuse all those.
 
@thecoshman you take every function you have and write out edge cases for input and output
then you check whether what function returned is equal to the desired output for a given input
 
@BartekBanachewicz errrrrrrggghhhh
 
user1804599
@BartekBanachewicz meh
 
user1804599
you have quickcheck generate the edgecases for you :P
 
11:26 AM
yeah not everyone uses proper languages and tools
poor fucks
 
user1804599
That reminds me.
 
user1804599
I should implement calling of module initialisers by the VM.
 
user1804599
But it's difficult because of concurrency.
 
@Columbo ?
 
user1804599
Module initialisers can suspend the current fibre, which means I have to load modules on the thread pool.
 
user1804599
11:29 AM
But currently they're loaded not on the thread pool.
 
user1804599
Well I guess I can create a queue of module initialisers and then call everything on that queue from a fibre.
 
user1804599
11:44 AM
Yay, unit tests are now executed.
 
@райтфолд Nice
 
Is someone from Norway or Sweden?
 
user1804599
Yes.
 
he's lying
I'm hungry
 
@райтфолд Who?
 
11:52 AM
refp, johan larsson
 
user1804599
Johan and Philip.
 
Probably no one from Norway though
 
Nice, my new objective in life is to move there
Probably Sweden though :P
 
@райтфолд Philip moved to Finland though.
 
user1804599
I'd rather move to Norway than to Sweden.
 
11:55 AM
@Jefffrey they want you
 
I'd rather not move anywhere the cost of living is higher than here
Romania FTW
 
user1804599
But the best is to stay here because Noord-Brabant is the best place in the universe.
 
@Jefffrey If that's the reason, no need to go that far :P
 
@StackedCrooked You sarcasm hurts a lot :c
 
11:57 AM
Also I'm asexual, the fuck am I looking at?
 
user1804599
I might move to eastern Netherlands.
 
user1804599
There are more trees and hills there.
 
user1804599
And fewer Belgians.
 
And then I'll work remotely for the best country that values programmers. Like a real bitch.
No loyalty whatsoever.
 
user1804599
Also wait until you're past the conscription age if applicable.
 
12:00 PM
@райтфолд You were conscripted?
 
user1804599
No.
 
user3010322
@Rapptz Emscripten.
 
@ThePhD Does Sol currently support returning Lua bytecode?
 
user3010322
"Returning lua bytecode" what does this mean?
 
@ThePhD It means whenever you load a Lua file, it has its data written onto the stack or something, and you can dump this
 
user1804599
12:02 PM
There's no conscription in NL.
 
user3010322
AFAICT lua has no official intermediary representation...
 
user3010322
Oh.
 
user3010322
You pull it all from the stack.
 
@ThePhD It's a function in the C API already so idk why there would be no reason to do this
 
user3010322
But we didn't officially wire the debug routines lua provide.
 
12:03 PM
Maybe I should try and do this
 
user3010322
I don't see why you would.
 
> Formally, the Netherlands has not abolished conscription; that is to say, the laws and systems which provide for the conscription of armed forces personnel remain in place, and Dutch citizens can still, theoretically, be mobilized in the event of a national emergency.
 
@ThePhD That's not a debug routine i think
 
user3010322
@Cinch I can't specifically find the function you're referring to.
 
It's from Lua 5.1 so idk
 
user1804599
12:05 PM
@Jefffrey ohlol
 
@ThePhD This seems like this would be useful
 
user3010322
I.... really wouldn't see why.
 
user1804599
Well, in case of emergency this country is doomed anyway, since the Dutch army has the same amount of tanks I have.
 
@ThePhD Well it makes the files faster to load, I presume
 
12:06 PM
oh so ReSharper for C++ was released
 
Or at least it doesn't need to translate
 
user1804599
> Waterboarding at Guantanamo Bay sounds super rad if you don't know what either of those things are.
 
user3010322
@Cinch Out of curiosity, which function would load your binary chunk?
 
@ThePhD lua_loadfile I believe
21
Q: Compile lua code, store bytecode then load and execute it

WoLfulusI'm trying to compile a lua script that calls some exported functions, save the resulting bytecode to a file and then load this bytecode and execute it, but I haven't found any example on how to do this. Is there any example available on how to do this? How can I do this? Edit: I'm using Lua + L...

idk
 
user3010322
@Cinch We have an interface for script_file and script
 
user3010322
12:11 PM
So the only thing you'd need to wire up is lua_dump.
 
@ThePhD Oh so you'll hand it to me?
Goodie!
 
user3010322
FWIW, you can call regular lua functions by just going to lua_State* l = sol::state.lua_state()
 
user3010322
And then calling lua_dump( l, writer_callback, ... )
 
@ThePhD hm....
Should I add a function into Sol for specifying which file to dump to?
Or...
 
user3010322
writer_callback is all the interface you need.
 
12:21 PM
@ThePhD right
 
gah always have to dress warmer at my parents because cold
 
God I'm terribad at this
 
I can't sit in my underwear in my room anymore
how can someone enjoy sth like 18C ambient
24C is where it's at
 
user3010322
@Cinch You can write a static templated wrapper that calls stack::dump( L, some_thing, strip_args );
 
@ThePhD something something bah i'm bad
 
user3010322
12:23 PM
I guess I'll type up an example.
 
Let me think for a bit and then...
How do I pull recursively again?
@ThePhD NO
 
Too funny but true that 50YB files are too big to been stored. — rekire Feb 18 at 6:59
what a troll account
Posted two google code jams verbatim too
 
did you jam?
 
user1804599
I want to construct a video game.
 
we can construct this instead
does it make any sense?
I want to create some kind of template
 
12:29 PM
did you switch from C# .NET to JS? :P
 
playing with some web but avoiding js as much as I can
css has elemenst of nice from what I have seen
ewascript is ew
 
I read something interesting about OOCSS in some booklet attached to my favorite games magazine
 
that was many generations ago
 
user1804599
@StackedCrooked :(
 
12:34 PM
I wanna buy a new laptop this xmas but I feel so bad about abandoning this one :(
 
@райтфолд what makes are you unhappy about this development?
 
user1804599
People.
 
@AlexM. what is oocss?
 
object oriented CSS
@JohanLarsson here oocss.org
@StackedCrooked class Hestia { private: std::string _string; }
 
user1804599
Ugh, you cannot edit posts with pending edits.
 
12:37 PM
done, I replicated her string
 
@AlexM. lol
not sure if it's private though
erm, on second thought, it probably is
 
user1804599
I'm voting to close this question as off-topic because it is an unformatted blob of text followed by a wall of code. — райтфолд 5 secs ago
 
there should be a new kind of visibility
even more public than public
something like plstouch
where you get a reward for accessing said stuff
 
user3010322
 
user3010322
But that's the gist of the implementation that'd go in sol.
 
12:43 PM
@AndyProwl is it any good yet? Last preview version I tried still had pretty big problems
 
wtf I keep on winning bets I shouldn't win and lose bets I shouldn't lose :\
so I keep winning shit and losing ~80% of what I have
every time
 
@melak47 I don't know. I just installed it
 
also...shouldn't it be called Re++er? :p
 
user3010322
We'd have a default file_writer in the detail namespace that'd allow use to write a function sol::stack::dump_file( ... )
 
@melak47 what kind of problems did you see?
 
12:44 PM
ah fuck it
I don't belong in Lounge<C++>
 
@AndyProwl mostly "bla bla bla is not supported yet"
i.e. template this, alias that
 
oh, I see. I'll give it a try
 
Oh, it's only 599€ for the whole package, or 220€ for ReSharper C++ :/
 
@Cinch does anyone?
 
or free for students :3
 
12:47 PM
resharper C++?
isn't it like C# only?
 
not anymore
 
user1804599
No, ReSharper C++ is not C#-only.
 
but where's the sharp in C++
it should be RePlusPluser
 
user1804599
 
@райтфолд dammit, I was too slow
you don't need that many ++ though :p
 
12:50 PM
C+++=1
 
user1804599
@melak47 nice
 
@melak47 topkek
@AlexM. (C+=1)+=1
 
Ugh that's it I suck
I hereby declare that I just suck
 
Yeah yeah we heard you. Surprisingly, we already knew
 
@sehe What?
No you're supposed to plonk me
 
12:51 PM
2 days ago, by sehe
I don't plonk Cinch because he's not evil. He seems really motivated and truly devoted.
 
C <<= 2 > C++
 
@sehe you have patience
 
@AlexM. too much maybe
 
user1804599
Now that fizzbuzz works, I can implement switch expressions.
 
I wonder what reverse psychology Cinch is implementing here. Seems he expects some kind of pity/attention.
Simple fact: we all suck. Moving on
 
12:53 PM
@melak47 good one
 
I just couldn't take his lame attempts at whatever it was he was doing
they made me uncomfortable
 
user1804599
27
Q: Why don't I get any syntax errors when I execute my Python script with Perl?

DacavI just wrote some testing python code into test.py, and I'm launching it as follows: perl test.py After a while I realized my mistake. I say "after a while", because the Python code gets actually correctly executed, as if in Python interpreter! Why is my Perl interpreting my Python? test.py l...

 
user1804599
lol
 

« first day (1638 days earlier)      last day (3328 days later) »