« first day (630 days earlier)      last day (4317 days later) » 

user1174868
6:01 PM
Anyone here okay with scheme?
 
sbi
In this room, scheming is highly unwanted. If you have any objections towards another user, you are instead encouraged to speak up about it loud and clear, so it can be solved in the open.
3
 
user1174868
:(
 
user1174868
I am trying to make a sort of for loop in scheme but I can't seem to figure out how to do a counter
 
lol
Oh god, Scheme... hated it. And I couldn't graduate without taking that class.
 
user1174868
It is the only other csci class offered at my school besides the one I have taken
 
6:06 PM
It was supposed to be a "first-time" programmer class... Why would they pollute students with that?
 
sbi
@Jordan I don't know Scheme at all, but TTBOMK it's a functional language. So no side-effect and no variables. Thus, no counter, so no loops either. If you need to iterate, you need to employ recursion instead.
 
Even Java would have been a much better "first-language" if they really didn't want C++.
 
watching this SOAD performance
awesome :)
 
Ell
wow functional programming has no loops?
gees.
anyway I'm off
 
6:08 PM
Tail recursion is loops.
Also PIZZA.
 
user1174868
@sbi That is how I am confused...I am not sure how to do that
 
sbi
@Jordan You're not sure how to recurse?
 
user1174868
@sbi I am not sure how to do recursion with a different variable that will count up
 
Use a fixed point combinator!
 
sbi
@Jordan No variables. No counting. You cannot modify values in FP.
 
6:13 PM
How about map over [0..n] ? That's how I would do it in Haskell
 
user1174868
What is a fixed pointer combinator?
 
user1174868
This is suppose to be done with really basic scheme, I just started the book
 
user1174868
All I need is the expt function, and I can use define, if and cond and that should be all I need
 
Fixed point combinators are how you do recursion in languages without recursion.
Well, they're more than that, but that's the "practical" application.
 
sbi
@ecatmur What? Isn't Scheme a Functional Language? Aren't those all about recursion?
 
6:15 PM
Scheme is multi-paradigm.
 
@sbi Yes, Scheme and Lisp are so functional that they are not functional.
 
sbi
@CatPlusPlus Oh, I was wrong then. Well, I did say "TTBOMK".
 
Are there any real-world uses of Scheme or Lisp?
 
@sbi sure, but you can have functional languages without being able to name functions from within themselves.
 
user1174868
So many words I don't know
 
6:17 PM
@Mysticial didn't Paul Graham write Yahoo in Lisp to begin with? Or am I getting confused with something else?
 
user1174868
so how would I do a counter? I can't imagine doing it without assignment
 
@Mysticial Yes. It's a stupid question.
 
user1174868
Would I define the counter function as starting at 1 when I call it in my other function? I think that might work
 
user1174868
but that is how c++ works, no idea if scheme works like that
 
What do you want to do?
 
user1174868
6:20 PM
I am suppose to find the smallest n that will make b^n > a with a > 1
 
@Jordan You're lucky, getting to write in Scheme. When I was at university, we had to write everything in the untyped lambda calculus, defining our own integers in Church encoding.
 
oh hey, I found this:
17
Q: What is lisp used for today and where do you think it's going?

ldigasNever been a lisp user, so don't take me as too dense while reading this. But what is lisp used for today ? I know there are several variants of the language in existence, at least one which will keep it alive commercially for a while longer (AutoLisp, VisualLisp - pretty big support from Autod...

 
user1174868
all positive integers
 
user1174868
@ecatmur I have no idea what that means, but it sounds intense
 
You tell kids that nowadays, and they won't believe you.
 
6:25 PM
Well, I don't write Scheme, but in Haskell it'd be something like this:
foo b a n | b^n > a   = n
          | otherwise = foo b a (n + 1)
 
ohhh Haskell
 
Hasloll
I prefer the non-Haskell.
Perl, for example.
I like sigils.
Perl is one big sigil.
 
6:56 PM
Lol sigils.
 
7:13 PM
Hello I am new to C and I keep getting the syntax:error missing ';' before type on line 35, 36 and 37 gist.github.com/3067716
 
Haha C.
C is a moronic language.
Your choice of programming language is bad, you are bad, and you should feel bad.
 
@RadekSlupik how appropriate :)
 
Oh my goth, [10] Guy is so fucking funny.
 
@RadekSlupik Some how I find your words hard to swallow ;'(
@RadekSlupik Anyways, can you help with that bi
bit* like i said i am started just now
 
@ladiesMan217 you should declare your variables at the top of your main function
not in the middle
 
7:32 PM
@RadekSlupik @DomagojPandža Accept Groups invite, you lazy people.
 
where is everyone when I'm bored?
 
just waiting to be talked to lol.
xD
 
so what's new with you?
 
@TonyTheLion no, "at top of {}", not at top of function
 
yea, just past the opening brace of the function
that's what I mean
I actually wonder why you have to do it that way in C?
is there a particular reason for that?
 
7:40 PM
@TonyTheLion not much, just getting my face blasted with local variable errors xD
 
HBU?
 
sounds like fun
@ITNinja what's that?
 
How about you :)
 
It's C89-ism. The restriction has been lifted in C99.
Because it was stupid.
 
7:42 PM
@CatPlusPlus restriction where you had do define variable at the top of the function?
 
UnboundLocalError: local variable 'recieved' referenced before assignment sigh
 
strange restrictions
but MSVC still wants you to do it that way, when you compile as C
guess their C compiler is old
 
MSVC doesn't implement C99.
 
sucks
 
7:45 PM
Yes, it does.
 
we have C++, who cares about C
 
Linus Torvalds
 
meh... like one cares about him
 
We have Python, who cares about any other language?
 
@RadekSlupik +1 :D
 
7:47 PM
Python is written in C =\ dammit
 
Python is written in English.
3
 
Python is written in Python.
 
And CPython is hardly the only implementation.
Also accept groups invite, DAMMIT.
 
Python is written in (E)BNF then...
 
Python grammar, not Python.
English.
 
7:49 PM
I dont know whether i want to switch to py3x yet... Ive been sticking to 2.7.2 but most things are finally coming around to 3x.
 
Python is English.
 
@RadekSlupik Not the English I learned -- nor the English I've ever read or heard.
 
English is written in Python
 
GOT IT! WOOT!
successful recieving client ;D
 
@TonyTheLion Sorry, but no. English is written in APL (nothing else could produce such a mess).
 
7:57 PM
`Sent: lol noobs
Received: LOL NOOBS`
 
Then again, the OS for the universe is the longest APL program ever written (almost 200 lines).
 
(just for testing the framework :P)
 
@JerryCoffin hahah
 
@JerryCoffin APL?
 
8:02 PM
A Programming Language.
Yes, that's really its name.
 
@ITNinja A rather old programming language, invented by a guy named Ken Iverson. The name shows great originality -- it stands for "A Programming Language". The language itself is a nearly unreadable mess of Greek symbols and such, but it will let you do more with less code than practically anything else ever.
 
hey guise
 
oh xD
 
I wear a "hay guise" at Halloween somtimes!
Well, not really, but it sounded good anyway.
 
xD this is still my favorite language of all time: ideone.com/3dTps xD
 
8:05 PM
@DeadMG Evening nub
 
came home to my family
cuddled my puppy
 
@ITNinja The exact opposite of APL, but in this case, the opposite ends up almost the same, in at least some ways (though Brainfuck is a lot easier to implement).
 
ate the food; which promptly made me sick
met ye olde family drama
 
checked my bank account and saw the huge cost of the train ticket
 
8:05 PM
Python is Dutch, and therefore it's the best.
 
reminds me why I stayed away
 
how long by train?
 
six hours
 
8:07 PM
@RadekSlupik Hmm...so I'm supposed to believe Dutch food is the best?
 
each way
 
@Jerry Coffin guess what.
It is.
 
@RadekSlupik I guess that prompts the question "best for what?" Reminds me of the time somebody told a friend of mine and me about a new restaurant opening that served "great, authentic Irish food". Having both been raised by Irish mothers, we immediately replied (in practically perfect unison): "So which is it, authentic or great?"
 
nice
 
@DeadMG How long will you stay? Is it permanent until you've found a job?
 
8:11 PM
LMAO visual brainfuck xD
 
@ManofOneWay No.
a couple weeks at most, a few days at least
my father became most agitated at the idea that I had to go back early
 
Brainfuck is too limited.
 
he probably wants to be here when I get my university results so that he can shout at me for failing and tell me how much of his money I wasted
 
The only possible side effects are reading from stdin and writing to stdout.
 
lol. out of sheer curiosity, i wonder if i have the skill to write a python implimentation of it xD
 
8:14 PM
you should
Brainfuck is trivial to interpert
 
@RadekSlupik Brainfuck is turing complete. So no it's not limited. :)
 
i think after im done working on this framework, im going to give it a go at making an interpreter :P
 
@Mystical if a language doesn't allow me to do networking, file I/O, GUIs or working with external libraries, it's too limited for me.
Brainfuck interpreter? Why not a compiler?
 
bu sth is wrong. — kadikoyvapurru 1 min ago
Oh god... this guy can't be helped...
 
What does new int*[n]; mean?
 
8:17 PM
Array of int pointers.
*I think
 
That your code sucks.
 
Everyone knows my C++ is shaky...
 
oh man
I hate password restrictions
 
@RadekSlupik I dont even know where to begin on a compiler xD
 
Everyone knows C++ is shaky…
 
8:18 PM
on Stack Exchange, you have to have 99999 unique characters, uppercase, and digits, and shit
and gmail just told me I couldn't use a password I'm familiar with cause I already used it once
 
@ITNinja map the operators to instructions and use jumps for ].
 
sbi
One more close vote for this dupe of the array FAQ, please.
 
Brainfuck is trivial to write a compiler for.
 
@Mysticial You must be having a slow day. I only had to read "Java" to know he needed help! :-)
 
sbi
@RadekSlupik Except when you want to write the compiler in Brainfuck.
 
8:20 PM
@sbi Poof.
 
sbi
@CatPlusPlus Thx!
 
@sbi but it's possible!
 
@Tony is you still here?
 
@JerryCoffin Oh yeah... when I start looking at newbie questions... you know it's a very slow day...
 
If you remove the 30 kB memory limit, at least.
 
8:21 PM
@sbi Leisure Suit Larry in the Land of the Lounge Cabal.
 
@DeadMG i'm here
 
got an email from a recruitment agency from Monster already
and I didn't even finish uploading my CV, lol
 
sbi
@RadekSlupik You were talking about it being trivial.
 
well, a lot of them suck, but some of quite good
 
sbi
8:22 PM
@JerryCoffin Huh?
 
if you are interested in the job, you have to really follow up with them
 
emailed him back
 
looks like I may get that job I went to interview for on thursday
 
@TonyTheLion Nice :)
 
yea would be nice
 
8:24 PM
@sbi It's being closed mostly by regulars here made me think of "Lounge Cabal", and somehow that dragged up the name of the ancient game, "Leisure Suite Larry in the Land of the Lounge Lizards" (I think that was the name, anyway -- was probably a good 20 years ago...)
@sbi That's easy: write a compiler for some trivial (but decent) language that produces Brainfuck. Then write a Brainfuck compiler in that source language and compile it to Brainfuck.
 
sbi
@JerryCoffin Ah, I never played any of the LSL games, so I didn't catch this being a reference to one of them.
Also, some sites have whole rooms dedicated to gather close votes. We seem to be tame here, schmeming only for our tinsy little tag.
 
@sbi I actually didn't either, but did have a roommate for a while who was nuts about it.
 
@sbi wow
 
Played.
Plaid is a pattern.
 
they probably have loads of shitty noob questions on that SU site
I can only imagine
 
sbi
8:28 PM
@JerryCoffin That's nonsense. If that was true, you could write a program in C++, compile to assembler, and then claim to have written it in assembler. That falls flat on its face the moment you need to change something.
 
shudder in horror at
noob questions that are badly asked
 
@sbi Silly me, I never would have even guessed.
 
Power lusers.
 
@TonyTheLion Why didn't they just name it "Eternal September" and be done with it?
 
8:29 PM
That'd be a good name for the entire network.
 
sbi
@JerryCoffin You mean the SU site? LOL!
 
@sbi And you think hand-written Brainfuck is going to be any better?
@sbi Yes.
 
sbi
@JerryCoffin Only in the same way hand-written assembler is better than generated assembler.
Also, one major roadblock for writing a Brainfuck compiler is that, should you get stuck, you cannot ask for help on SO.
BTW, being one of two question coming two years late, mine is now the 5th most-upvoted of 23 answers on that Brainfuck discussion.
 
Speaking of which, I should probably link that profanity filter question on reddit sometime. (unless someone beats be to it)
17 votes just doesn't do it enough justice...
 
sbi
@Mysticial What are you talking about?
 
8:34 PM
17
A: Regular expression preg_quote symbols are not detected

tchristCannot Be Done I'm sorry, but this “problem” is truly impossible to solve. Consider these: ꜰᴜᴄᴋ   is U+A730.1D1C.1D04.1D0B, "\N{LATIN LETTER SMALL CAPITAL F}\N{LATIN LETTER SMALL CAPITAL U}\N{LATIN LETTER SMALL CAPITAL C}\N{LATIN LETTER SMALL CAPITAL K}" ᶠᵘᶜᵏ   is U+1DA0.1D58.1D9C.1D4F, "\N{M...

 
@sbi I can't agree -- well written assembly language (not "assembler" -- that's a program, analogous to a compiler) is quite readable, but I've yet to see any Brainfuck, written by any person or machine, that was even reasonably close (though we all know that was intentional).
 
That deserves a hundred votes - at the least.
 
sbi
@JerryCoffin Ah, you got a point there. (Here it's mostly called "assembler code" that's why I regularly fail at calling it "assembly", BTW.
@Mysticial Ah, that one. It's got my vote long ago, but it doesn't apply to the stupid meta discussion, because SO relies on human resources to do that job, rather than on a regex.
 
Hi, path() is a directory_entry (boost::filesystem) observer function , observer function like observer pattern in sense? what is observer function?
 
@sbi It's routinely called "assembler" in many places. IBM called it "Basic Assembler Language" (BAL) and lots of people have followed suit. Knowing full well that fighting it is a losing proposition hasn't stopped me from trying for decades though.
 
8:38 PM
Aww... so much for getting the Populist badge... The OP for the Pi question just changed the accept to my answer... First time that's happened. lol
 
sbi
@JerryCoffin I shall try harder nevertheless!
 
Who came up with the idea of a C++ FAQ on SO? I love it
 
@sbi ...and now (for a truly obscure reference) I can feel like the Lord of Light!
 
C++ is one of the few (real) languages that has enough corner cases to deserve its own FAQ.
 
sbi
@ManofOneWay IIRC it came out of a comment discussion between @GMan and me. That discussion used to be linked from my meta question which got this whole thing started, so, unless it's been killed by a mod, you should be able to find it.
 
8:41 PM
@sbi Well, good job :)
 
sbi
@JerryCoffin I fail again at catching the ref. :(
@ManofOneWay Thanks!
 
Haha, are you in the same class as this guy? stackoverflow.com/q/11376894/1343161Keppil 2 hours ago
haha - lot of summer Java classes.
 
sbi
BTW, I have been thinking for a while that many of those basic questions ("How are we gonna handle expletives/comment discussions/... on SO?") were asked three years ago, and the answers given then remain cast into stone all the time since, despite the site now having ten times as many users, including a much greater portion of international ones. I was considering opening a question on meta questioning the practice of not questioning those answers.
What do you guys think about that?
 
hmmm
not sure if meta will be to happy about that
meta being meta
 
sbi
@TonyTheLion Surprising as it might seem, it's not my goal to make meta happy. It's my goal to employ it to make SO a better place.
I was asking what you think about the idea, not what you think what meta will think about the idea, because I think I have an idea about what you think meta will think about the idea.
Wow. I should drink more wine, and less beer. That's a truly astonishing sentence, and it only took two steps to create it.
Room gone quite while everyone is trying to dissect that monster of a sentence.
 
8:50 PM
@sbi In this case, that's expected. The Lord of Light is a book by Roger Zelazny, in which theleading character spends lifetimes as a subversive, fighting against the existing power structure.
 
sbi
Hey @GMan, is that an coincidence or did I just summon you?
 
0
Q: Understanding C++ reconstruct syntax

ThomasMcLeodWhy must I use scope resolution when calling a constructor but not a destructor or any other class method? struct A { A ( ) { cout << "A::A" << endl; } ~A ( ) { cout << "A::~A" << endl; } }; int main( ) { A a; a.~A(); // fine a.A(); // fails, w...

You guys should answer this
 
@sbi Waaaat. Coincidence, but summoning sounds cooler so I'll go with that one unofficially.
 
sbi
@JerryCoffin One of a million such stories. :)
 
@sbi holy shit, what a sentence
 
8:51 PM
@sbi Yes, but being by Zelazny, a bit more original (and memorable) than most.
 
Is there a way to prevent DirectX 11 windows from flickering when being resized? I tried tripple-buffering but that does not seem to be making a difference
 
sbi
@GManNickG I just mentioned you, so thought you were informed about it.
 
@sbi for that reason, I don't see any objections then :)
 
sbi
@TonyTheLion Yeah, and I only just had 3/4 of a bottle of wine.
 
@sbi Hmm...now that's a good idea. I haven't opened a bottle in a long time.
 
sbi
8:53 PM
@JerryCoffin Like the whole day? :)
 
@sbi Unfortunately, quite a bit longer than that.
 
@CatPlusPlus Do you know any programming languages that AREN'T written in English?
 
@CatPlusPlus Besides assembly
 
Polish ones
 
sbi
8:54 PM
@TonyTheLion That would not be enough. All the old farts on meta will try to stomp on the idea to reconsider what they cast into stone back then, so this would either need a lot of votes from us, or it will be stomped out very quickly.
 
@TonyTheLion Really? Poles actually made a programming language?!?!?
 
@sbi I'm not sure I really want to get into it
 
I meant it as in "language is defined by specification, which is written by English", not "keywords are English".
But yes, there are languages that don't use English keywords besides assembly.
 
@IDWMaster Cat is polish, he surely could make a programming language IMHO
 
sbi
@IDWMaster ISTR VBA in German MS Office used to use German keywords. I don't know whether they kept that nonsense, though.
 
8:56 PM
Anyways; any ideas on how to prevent flickering when resizing a DirectX window?
 
@sbi I'm pretty sure Apple translated Applescript to use keywords based on several different human languages. The fact that it ended up ambiguous in about half of them didn't seem to bother them much.
 
Anyone here have any experience with DirectX?
 
@IDWMaster The solution that seems obvious to me would be "Use OpenGL instead", but that's my answer to all of DirectX's many problems. Some here disagree with that though. :-)
 
Ell
@IDWMaster doesn't double buffering prevent that?
 
@Ell Triple buffering doesn't even seem to prevent that.
 
Ell
8:59 PM
@IDWMaster hmm I'm not sure then
 
sbi
@IDWMaster Also, allegedly GCC had, for a very short time, and with very limited geographical distribution, an implementation of C++ that used all German identifiers:
 

« first day (630 days earlier)      last day (4317 days later) »