« first day (381 days earlier)      last day (4793 days later) » 

19:00
Howdy! "An iterator is not a pointer"
@Als I'm pretty sure a C programmer wouldn't come up with such a mess
Als
Als
@FredOverflow: Oh i thought it was like few japanese words where mood dictates meaning not the word....in that case turn it around 360* and multiply it 10times i meant that
@CaptainGiraffe Hi. Nice joke.
@CaptainGiraffe No.
Als
Als
@EtiennedeMartel: C programmer for sure....
okay considering a clean slate how should the new implementation should be? good design suggestion anyone?
19:03
@CaptainGiraffe "Not all iterators are pointers" would be more appropriate perhaps.
@Als no globals
What's that code for anyway?
Just being cute for a good welcome, thanks. I just recently found out about the functions argp_parse and isatty and I think they are awesome =) Does that make me a poor c++ advocate?
@CaptainGiraffe What do they do?
Als
Als
@EtiennedeMartel: An ill designed Middleware stack
@FredOverflow "Some iterators are pointers on a masquerade"
@FredOverflow parse environment variables like a king, and checks if cin is connected to a pipe
19:05
@Als Could you be a bit more vague? There's way too many details in that.
@CaptainGiraffe Googles it Oh my god, it's C!
kik
Damn. I meant "lol", but my fingers were shifted.
@FredOverflow --version / -v is free of charge =)
Als
Als
@EtiennedeMartel: A STB middleware and the code mains the channel list
@CaptainGiraffe Well, sounds very useful.
covers in bullet proof vests
19:06
@RMartinhoFernandes juj
@CaptainGiraffe This is not an RP thread for teenagers, you don't have to describe what you do.
@FredOverflow also stuff like --help/-h and all those other common things are free.
@CaptainGiraffe Yeah, I get it :)
@EtiennedeMartel Of course, they were new to me, thought it might be fun to share. Won't happen again.
@EtiennedeMartel What is RP?
Als
Als
19:08
role play
lulz
@CaptainGiraffe I was refering to the whole bulletproof vest thing
@EtiennedeMartel Ah, sry that will happen again, please indulge.
It's alright, we're not that abrasive anyway. You can crack jokes, as long as they're funny.
I thought you meant repost.
@EtiennedeMartel There is no bulletproof vest in C++, you can always cast your way around it.
2
Als
Als
19:10
crazy guy and his questions
0
Q: getcontext and then setcontext from a forked process

MetallicPriestAssume that I call getcontext from thread 1 of process A and then call setcontext from thread 1 of process B, where process B has been forked from process A. In process B, the thread 1 is recreated and assigned the same stack area as of thread 1 of process A. This is done because fork only keeps ...

@FredOverflow ++1
@CaptainGiraffe You can't increment scalar rvalues.
@FredOverflow Anyway it won't protect you, in C++ you shoot yourself in the foot, not in the chest
2
@Als Er, MetallicPriest... I'm not touching that.
@EtiennedeMartel lol
19:11
Do they manufacture bulletproof boots?
This is bash.org(or whereever the new site is at) worthy =)
@RMartinhoFernandes Maybe. But C++ is a high caliber rifle. Not to be handled by children or ex-Java programmers
@RMartinhoFernandes Shouldn't be that hard to build one yourself.
Build one out of a bulletproof vest?
Sounds unwieldy.
sounds like overkill
19:13
There's no kill like overkill
@RMartinhoFernandes cast it to a pointer type
reinterpret_cast the shit out of reality.
Reality does not have standard layout.
and if reality isn't good enough just const_cast your way to your dream
A radical solution to the whole shooting yourself in the foot problem would be to have both your feet amputated.
19:14
what does this mean? "integers are discrete if i say that add number in array between 1 to 100 of type double or float then that array will become continuous array"
@AlfPSteinbach Holy run on sentence, Batman!
@AlfPSteinbach I have no idea :) Link?
@FredOverflow And put them on the table. Now you can shoot them without pointing down.
@AlfPSteinbach Where's that nonsense from?
@FredOverflow And replace them with thrusters.
@AlfPSteinbach That could have a quantum mechanical interpretation that also made no sense.
Als
Als
19:16
that could be total BS too.
We wont know because we dont know what it means
:)
Oh, I already edited that. Silly Internets.
I guess the answer is "avocado" or "asparagus"
@RMartinhoFernandes hey R, swap always works!
Yeah, Randall Munroe does not like string theory.
19:17
Well, he's got a point: string theory is pointless.
Not always as intended, but the results are good for the receiver.
Als
Als
The answer is G-Strings
hahaha
Summoning Tony?
@RMartinhoFernandes well you can dispense with the strings and keep the waves?
Als
Als
@RMartinhoFernandes: Tiny vibrating "strings" think of that lol
19:19
@RMartinhoFernandes And you love "pointless", don't you? ;)
Oh wait, it was "pointfree" :(
Als
Als
stress on vibrating while you think
@Als A very good solution for many problems. At least as good as raii, I would presume.
Damn, I can't write "lol" today.
Als
Als
19:19
@CaptainGiraffe: No Strings attached.
:)
@RMartinhoFernandes We need a special keyboard for you with a "lol" key.
@Als But ownership would have to be declared =)
Als
Als
Nice Question:
0
Q: How do I start creating a small compiler for a school project in java or c#

franko_camronfor my final exam (to graduate from university) I’ve been asked to create a tiny compiler, with the following requirements: The student must develop a basic compiler with all the design parts that conforms it (lexical analysis, syntaxis analysis, parsing, etc). This compiler will have an...

create a compiler? er..what? for school project? really!
steal from yacc?
It would be an advanced course, but there are plenty of courses that requires you to build a compiler.
@Als What's wrong with it?
I wrote several compilers as school projects.
Most of them for tiny toy languages.
Als
Als
19:22
@CaptainGiraffe, @RMartinhoFernandes: Never did computer science so I may never know
My bad in that case.
@Als It is a very appreciated project when completed. ( I teach that stuff)
@Als Well, when you have a course named Language Processing (previously it was named Compilers), it makes total sense :)
Compilers lose a lot of their magic once your start writing your own tiny ones. Or if you look at their source code ;)
Als
Als
@RMartinhoFernandes: While you were learning that, I was learning Nuclear Instrumentation...so yeah You know better
anybody should be able to trivially write a Brainfuck compiler
even I did it
Als
Als
@CaptainGiraffe: Yet another teacher I see
@FredOverflow This is so true. And I think this is a big part of why my students appreciate it so much , though it is still a lot of work.
@DeadMG Was your brain loved in the process?
@DeadMG Yeah, but you're hardly a good example. You're a genius (or so you say).
19:24
@Als Yes, I appreciate it here =)
@DeadMG Was it optimizing?
Als
Als
@RMartinhoFernandes: Remember the other day, our conversation, Now you see why I said it sucks
@RMartinhoFernandes Tis true. I'm more of the "pinnacle of human intelligence", rather than what's practically achievable for most people
and no, I didn't bother optimizing :P
Als
Als
19:25
That makes @sbi, @AlfPSteinbach, @FredOverflow, @CaptainGiraffe 4 teachers around here now.
Why bother optimizing, just spit out C and let gcc have its way with the code ;)
Als
Als
Whats this an school! :P
@FredOverflow But GCC is not designed to optimize Bra*nfuck code!
@RMartinhoFernandes Brainfuck->C->gcc
19:26
I think the proper spelling is a school of fish/teachers.
It has very special needs.
actually
I spat out C# and let the JIT do it
@Als Yes, and our alphabet starts with @, the 0th character!
That's no fun.
Als
Als
huh
19:26
it was super fuckin' easy, though
@DeadMG Right, no fun.
heh
it worked, that was fun enough
Als
Als
Bot
@DeadMG Why go to c# instead of msil? Seems more complicated
In my school project I implemented a couple of optimisations for extra credit.
19:27
how could it possibly be more complicated?
@peachykeen Do you know Bra*nfuck?
more letters
Welcome @peachykeen
the C# code for Brainfuck equivalence is incredibly easy
you do something like
@RMartinhoFernandes I know what it looks like, not much about it
19:28
byte[] arr = new byte[30000]; int current = 0;
then Brainfuck instructions become things like arr[current]++; and while(arr[current])
The "hardest" part is that you need a stack for the loops.
Oh, that makes sense.
not when emitting into C#
@DeadMG The translation to Turing tape instructions seems trivial
@DeadMG Oh right, not even that.
Als
Als
19:29
hmm Now that everyone talks/brags about their school exploits I feel outta place.
I better go Sleep.
Later folks.
@Als g'nite
Ok, so can I keep bragging about my school?
well, not so much about my school, but cern.
This is 13 years ago, and all I remember is poor code from my fellows along with a sign under the accelerator beam that said "Danger, radiation Please walk fast"
The Cern C/fortran library is pretty awesome though.
@FredOverflow source code of g++ was Kernighan & Ritchie C the last time I looked... :-(
19:36
@AlfPSteinbach Really? foo(a, b, c) int a; int b; int c; { /* ... */ } syntax?
yeah
Now I feel kinda dirty using gcc :(
@FredOverflow yes
19:37
@AlfPSteinbach When was the last time you looked? 10 years ago?
@FredOverflow me?
@FredOverflow could be, i'm not sure. i remember the context, it was about providing a real example for exception handling syntax I proposed.
could have been 1998?
Okay so maybe they've converted to ISO C in the meantime? :)
what do you guys think of Aspect Orientated Programming?
bullcrap
19:39
I still have a green printed book from 1994, that was the reference.
@DeadMG Cute but not useful IMO
@FredOverflow looking at related stuff i think now it was no earlier than 2003
yeah
that's what I thought too
@DeadMG There is only one kind of programming, the rest is just buzzwords.
heh
WTF is "Kanban"?
19:42
As a point in matter, I think that my experience have taught me that language proponents of any kind (In this case fortran vs C), should be looking for the correct tool, not the ultimate language.
Oh it was later than the stuff I found. There was a lot of development from this innocent little stupid beginning where I suggested new C++0x feature:
* "goto try" syntactically within a catch-block
sends execution to the corresponding "try", and
the presence of this construct obligates the
programmer (enforced by the compiler) to place a
"throw;" at the end of the catch-block, and
to not exit the catch-block by any other means.
> We are a community of motherfucking programmers who have been humiliated by software development methodologies for years. We are tired of XP, Scrum, Kanban, Waterfall, Software Craftsmanship (aka XP-Lite) and anything else getting in the way of...Programming, Motherfucker.
lol
@CaptainGiraffe In my experience, the Ultimate Language doesn't exist
@FredOverflow This is true for way too many people.
that's why I'm making it
19:43
@FredOverflow Gotta love Zed Shaw.
@DeadMG I wish you the best of luck =)
thanks
I'm going to return it for store credit, though
don't need luck when I have my massive balls brain
@CaptainGiraffe It's pretty much impossible to program in C and not look out for a better language ;)
@DeadMG Now your'e just quoting Duke Nukem =)
19:44
@AlfPSteinbach Sounds a tad like Ruby's retry statement.
I love to quote Duke Nukem, but I'm not aware of that being a quote
@RMartinhoFernandes You mean Eiffel's.
@CaptainGiraffe I always misheard one of Duke's famous quotes as "You're an inspiration for bird control" :)
@AlfPSteinbach Or that. Don't know Eiffel.
Ruby has retry.
19:45
@FredOverflow It is still easy to find proponents for Fortran that says: Any serious computing on a parallell scale has to be done in fortran
@CaptainGiraffe I don't really know Fortran, only what this video taught me:
What I ended up advocating was a more restrictive feature "succeed or throw", that required much more syntactical support, hence tinkering with g++.
Syntax like this:
> Me for example, I'm a great programmer!
  succeed_or_throw_block:
      succeed_or_throw_clause +
      (fallback_clauses | nothing) +
      (cleanup_clause | nothing)

  succeed_or_throw_clause:
      "succeed_or_throw" compound_stmt

  fallback_clauses:
      fallback_clause | fallback_clauses fallback_clause

  fallback_clause:
      "fallback_to" (xinfo_object_decl | nothing) compound_stmt

  cleanup_clause:
      "clean_up" compound_stmt

  xinfo_object_decl:
      "(" xinfo_class_name xinfo_name ")"

  xinfo_class_name:
      identifier  // Name of class with certain properties.
19:47
@FredOverflow Only "great"? I pity you and your children, inheriting your lousy genes.
@DeadMG Not me, that guy in the video :) Also, I don't have children.
@FredOverflow I did 7 spaces before each statement, end at column 79, in 1997 with fortran 77.
> How are we going to keep these machines busy? They're so tremendously fast!
lol
yeah :)
obviously, we're going to make them render pornography
that should keep them busy
19:50
Well, several reports states that porn has fallen behind in the advances.
What advances? What are you talking about?
how would I declare a variable 'x' that's a reference to a pointer to nonstatic member integer?
Porn is very... primitive.
They are no longer the frontier. (a good thing *tm)
std::advance(porn);
19:51
@FredOverflow std::generate( porn );
"int & something::*x" ?
@CaptainGiraffe Here, let me help you: ™
@myrkos typedef int something::* ptm; ptm& ref;
@myrkos With an intermediate typedef? But why on earth would you want to?
it's ok, everyone needs help from me every once in a while
19:52
@RMartinhoFernandes huh? but, thinking about it, note that porn seems to prove that people become aroused by seeing other people have sex. And that this is some behavior we have been evolved for. Does that not indicate that humans, at one time, evolved to fit into a society where public sex, not to mention mass orgies, was common?
I don't think so at all
@DeadMG yep lol from me too
people can become hungry by watching other people eat
the same effect happens for yawning, laughter, vomiting
there's nothing sex-specific about performing an action as a group
@AlfPSteinbach Wait, mass orgies aren't common anymore? Then what am I still doing on this planet? :(
19:53
@FredOverflow Mass public orgies. You need to get out more.
A mirror neuron is a neuron that fires both when an animal acts and when the animal observes the same action performed by another. Thus, the neuron "mirrors" the behaviour of the other, as though the observer were itself acting. Such neurons have been directly observed in primate and other species including birds. In humans, brain activity consistent with that of mirror neurons has been found in the premotor cortex, the supplementary motor area, the primary somatosensory cortex and the inferior parietal cortex. Mirror neurons were first described in 1992. Some scientists consider this t...
@RMartinhoFernandes like in libraries or theaters?
lol, a mass orgy in a library
@DeadMG Rule 34.
> Okay people, we've read each and every fucking book. You know what's next!
19:54
Mass public vomiting orgies in a library.
(hi, btw)
@DeadMG My school librarian was awesome, this was int the 80's though.
@DeadMG This reminds me of this TED talk by Ramachandran about mirror neurons that I saw only a few hours ago.
I feel the need to post this link: blackboardsinporn.blogspot.com
By the way, the little monkey in the picture was finally squeezed hard enough so as to make his tongue come out, but his bowels stay inside. Nice feat
> And remember that sticks and stones may break your bones, but being called Dr Vagina every day of your working life will never hurt you.
19:56
What language is the speaker speaking?
@FredOverflow Yes, we actually try to understand them.
Hindi?
Sri Lankish?
Yes of course.
The understanding would go for the books not the Indian youtube tutorials.
Is he intentionally trying to sound funny?
Sri Lankian?
Sri Lankianish?
19:59
Ok, lets take a quick poll.
Who of you have heard "Rebecka Black - Friday" and has read "Farenheit 451"

« first day (381 days earlier)      last day (4793 days later) »