« first day (1090 days earlier)      last day (3873 days later) » 

8:00 PM
The rest is macros
 
user1804599
lol
 
And I'm not even kidding
 
File List
D:/work/binarytiers/binarytiers/lib/core.h
hahahahahaha
 
Ell
God that is awful
 
8:00 PM
> After allot of research of trying to find what is the best language for Web App development. We realized that all the interpreted languages were either created for fun of the language designers or to solve problems that originally had nothing to do with modern Web Application Development, instead they have evolved after the years.
2
 
:cripes:
 
Allot of research
 
user1804599
Use Erlang.
 
user image
10
here is your drink sir
 
8:01 PM
@Cat CHANGE IT
NAO
 
The thing about webapps is that they don't benefit from being low-level
At all
 
user1804599
Cat needs another monocle.
 
> Getting Stared
Doesn't look like a quality thing.
 
user1804599
People stare at you because you use C++ for a web application.
 
Facebook compiles PHP to C++, but that's mostly because PHP is a huge pile of shit
I don't really know any other big things that even come near C++
 
8:02 PM
@CatPlusPlus OMG IT FUCKING IS
 
user1804599
@CatPlusPlus Google, IIRC.
 
Gosh, a big pile of junk.
 
Xeo
2 mins ago, by Cat Plus Plus
And I'm not even kidding
 
It's Java/C# in ~enterprise~ and mostly Python/Ruby/etc everywhere else
 
Xeo
> This user has been automatically suspended for posting inappropriate content and cannot chat for 26 minutes.
It really was inappropriate - web dev in C++.
 
8:04 PM
@not-rightfold Eh, maybe the search backend, but you will never have to worry about a load even remotely that big
 
> An Array is a list of strings.
 
I just can't read "C++ webdev" and not cringe
 
user1804599
@R.MartinhoFernandes lolwtf
 
Ell
@R.MartinhoFernandes lordy lordy
 
@R.MartinhoFernandes Told you
btw
It also uses global state
 
Xeo
8:05 PM
Did you use that thing before or something?
 
No, I just looked at the other doc sections
 
I just thought it was regular bad, not really fucking evil bad.
 
Nobody used that fucking thing before
Because nobody does C++ webdev
It's a gimmick and it's not a very popular one
@R.MartinhoFernandes That core.h:
00036 using namespace std;
Ahahaha and also stdext/__gnu_cxx
For maximum fun
 
No comment at the explain function.
 
Ahahahahahah that REDIS_RES data structure? It's a macro
00066 #define _REDIS_RES
00067 typedef struct {
00068     int redis_count;
00069     redisReply *redis_reply;
00070         char *redis_fields;
00071 } REDIS_RES;
Oh no, it's not, nevermind
I'm disappointed
 
user1804599
8:08 PM
lol reserved identifier
 
All those extern char* globals make up for it though
 
user1804599
Isn’t that UB? If it is, it could be a macro. :P
 
@CatPlusPlus lol
 
HIGH-PERFORMANCE C++ WEB APPLICATION FRAMEWORK
It somehow got to version 2.4.2 in 9 commits
4
> Themes are CPP files with embedded HTML.
 
user1804599
> void explain ( vector< string > & items )
 
8:11 PM
Can't stop laughing.
 
Separation of concerns hardcore
It's PHP, but as C++ EDSL
 
user1804599
wut why not const reference
 
lol
 
@not-rightfold Because they don't know C++?
 
Or C. Or anything.
 
user1804599
8:12 PM
Right. :P
 
I'm surprised he managed to figure out git.
> Commercial Licenses are also available
 
Ell
xD
 
/**
* AHAH object.
*/
AHAH = function(key, element_settings) {
Ahah is right
 
user1804599
> #define Array vector <string>
 
user1804599
8:14 PM
WHY
 
2 mins ago, by Cat Plus Plus
It's PHP, but as C++ EDSL
 
> BinaryTiers outputs the HTML code directly to the HTTP output without any post processing, supporting binary output using Deflate and GZip. Even though MySQL is also supported.
 
LITERALLY
 
> Avoid security holes of other interpreted languages like PHP, Ruby, etc.
lol
 
8:15 PM
Love to my fellow feline
 
Ahahahaha
 
user1804599
string microtime()
 
And C++ with char* everywhere no less
 
user1804599
haha
 
user1804599
8:15 PM
microtime is a PHP function
 
See those social webthing images at the bottom? They're not links.
 
@CatPlusPlus Don't even remind me.
I want a good night sleep
 
@LucDanton Nobody likes this shit
 
user1804599
> Themes are the programming interface to extend BinaryTiers look and feed.
2
 
user1804599
Look and feed. The cat.
 
8:16 PM
Oh my, now I can't stop laughing
 
I love that the JavaScript is just as terrible as C++ code
Globals everywhere
"Autocomplete object" is called AV
 
> System administration and web interface for the GNU C++ compilers
 
Because
 
pcre as a dependence, is that usual when it comes to the web?
 
Everyone needs regices to parse HTML.
 
8:17 PM
Oh oh oh there's search
 
Oh, right.
 
user1804599
@LucDanton Perl-like regexen are common.
 
I want to use this library. IT SAYS IT'S WEBSCALE.
 
user1804599
Not sure if PHP, Python and Ruby use PCRE, though.
 
user1804599
IIRC PHP does.
 
8:18 PM
Python doesn't
PHP has PCRE and some deprecated POSIX-based one
Ruby dunno, but likely PCRE
 
user1804599
How about Perl? :P
 
Perl uses its own engine afaik
> As of Perl 5.10.0, Perl supports several Python/PCRE-specific extensions to the regex syntax.
Perl supporting PCRE extensions is incredibly funny
 
user1804599
Erlang and Elixir use PCRE.
 
@CatPlusPlus No, Ruby uses StupidRE.
 
else if (isset(spec["precision"]) && isset(spec["scale"])) {
   sql += "(" + spec["precision"] + ", " + spec["scale"] + ")";
}
Oh my god it really literally is PHP EDSL in C++
 
8:21 PM
I was gonna say, it looks like PHP
I wasn't even mad
Whoever thinks that this is a good idea?!?!
 
Hmm. When I exit tabs in Chrome, I hear a faint swipe sound. I never noticed it before.
 
I mean, in all seriousness, its just plain lunacy
 
@Joe Use Casablanca and be on your way.
 
@MohammadAliBaydoun swipe sound? wut
 
8:22 PM
@CatPlusPlus I'm going to cry in a corner now
 
Ahahahahahahaha there is literally nothing good about this piece of shit
 
@melak47 I don't know what it is, but it's there. :o
 
@CatPlusPlus I see the power.
 
lol
"Write your own HTML! Inside C++ string literals!"
 
Oh my what the hell is this
 
8:24 PM
It's like MediaWiki templates, but worse
 
a match made in Hell++?
 
PHP on crack
What state of mind are you in when you think: "Oh lets write web framework in C++"
 
Hell++ would indeed be the best implementation for this.
@TonyTheLion "Let's not learn from others' mistakes"
 
yea that
 
Because then you can say it's ~~FAST~~ and use words like ~~PERFORMANCE~~ and ~~SCALABILITY~~
 
8:27 PM
surely, purrrformance is an argument
@ScottW lets write it in assembler
cause purrformance and shit
 
Let's make a C++ Web Framework using commonly seen game development idioms.
 
Oooh, you like sadomasochism ;)
 
Data oriented Web Framework.
 
so who came up with this "bright idea"?
 
@EtiennedeMartel To be fair, that would be a whole lot better than this.
 
user1804599
8:29 PM
Ugh.
 
@ScottW There's only one struct there.
 
this is too hilarious
 
user1804599
This Netherlands–Russia shit about the drunk diplomat is so silly and pointless.
 
My dynamic array is 50x faster than std::map
 
@R.MartinhoFernandes Indeed. But even @not-rightfold's nightly brainfarts are better than this.
 
8:29 PM
@ScottW ohhh sexy. Naked pointers.
 
HTML is faster as C++ string literals
 
Ok, so, like I said, gonna sleep. Good night.
 
good night
 
8:30 PM
room topic changed to Lounge<C++>: Belgium is a single struct. [c++] [c++11] [c++-faq] [no-questions]
 
struct Belgium {};
 
There are no members in it because we want to ~~~~SAVE MEMORY~~~~
 
Single Belgium seeks good struct.
 
One struct to rule them all...
Lets generate HTML using TMP
be faster
be cooler
 
Joe
ok well I was researching it. there exists other more mature C++ web frameworks.
 
user1804599
8:32 PM
struct belgium {
public:
    ~belgium() = delete;
    static belgium& instance();
private:
    belgium();
};
 
Joe
and some guy actually admitted that internally they used C++ to build sites (assuming he was being honest ) he claimed that some big sites run on it
 
Making your site as the big ones do won't make it big.
 
Hmm. Come to think of it, I wonder if Casablanca is a good fit.
 
Joe
Let me just clear things up for you guys. I dont intend on doing any major production on it , I just want to learn about it
 
8:33 PM
@Joe Facebook doesn't count.
 
It is a futile excercise
 
Joe
See this one: webtoolkit.eu/wt
 
user1804599
Use Python.
 
@Joe Why would you torture yourself like this?
 
Joe
@R.MartinhoFernandes Read my previous message. its just to learn buddy
 
8:34 PM
Learn C++ by using it for something sensible
or you know what?
skip C++
learn Haskell
 
@Joe Wt has the exact same problems as Qt.
 
Joe
@TonyTheLion I like challenges. Besides, I was going through the PHP spaghetti and I'm not too pleased with it. I'd definitely use Python though, and C++ is just a way for me to get back into really challenging stuff
 
With additionnal issues coming straight from WebForms.
 
Joe
@TonyTheLion Can you shed some light on Haskell? What about Scala?
 
Namely, it's a huge (and leaky) abstraction.
 
8:35 PM
@Joe Its also a way to burn yourself out really quickly.
 
user1804599
PHP is more of a challenge than C++ for web development.
2
 
^ from a PHP expert
use Python
also, don't do web dev
just do something sensible, like
 
Joe
@TonyTheLion true, but isn't it worth it to at least try? I will obviously fail, but I don't mind. I'll actually learn deeper knowledge about CGI at least
 
suggestions anyone?
 
user1804599
Who the hell uses CGI.
 
8:36 PM
@ScottW good idea <3
 
Write a girlfriend
 
@not-rightfold Perl developers.
 
@MohammadAliBaydoun what an idea
 
user1804599
@EtiennedeMartel They use FastCGI. :v
 
@not-rightfold I'm fairly sure they didn't back in the day.
 
user1804599
8:37 PM
FastCGI is slow.
 
user1804599
@EtiennedeMartel uses, not used.
 
It's faster than CGI.
@not-rightfold Good point.
 
Ell
@MohammadAliBaydoun wut
 
@TonyTheLion She'll be SCALABLE and FAST
 
Joe
I understand what you guys are saying, but many of you are killing me off without understanding my viewpoint. I know its difficult, but if everything easy was only ever done, we probably wouldn't have a transistor
 
8:38 PM
Yea cause fast girlfriends are good
 
user1804599
I’m listening to a voice.
 
I don't know what that means
 
Ok, I've resorted to my plonk button
 
user1804599
C++ web apps are difficult to write and inefficient.
 
8:39 PM
I can't read no more of the argument for using C++ for web apps
 
@Joe I like learning. I really do. But I'm also very pragmatic, and I dislike the golden hammer.
 
user1804599
Use Erlang. It’s web scale.
 
user1804599
Speaking of Erlang, my book will probably arrive tomorrow. \o/
 
user1804599
I should have ordered it to my work address rather than my home address.
 
its your bday?
 
Joe
8:40 PM
So do any of you guys switch between languages easily? Like Java to C++ or maybe even scala?
 
No, it's my birthday ;)
 
@Joe I use C++ and C# daily.
 
user1804599
@Joe Yes.
 
@ScottW I originally disliked how I looked naked. Until recently.
 
user1804599
8:40 PM
I use each of PHP, C++, Erlang and Haskell at least twice a week.
 
C:
@Joe I'm lame and only use C++
 
Joe
I'm gonna have to look into Haskell. I've read good things about Scala
 
user1804599
And JavaScript. :c
 
Xeo
@Joe C++, ActionScript, Haskell, Python.
 
I really want to learn and use Haskell properly however.
 
Joe
8:41 PM
@MohammadAliBaydoun that would explain why you're so morbid
 
user1804599
I use Perl whenever I need to parse some text in that’s in a simple format.
 
user1804599
I use Ruby for CSV. :v
 
Joe
Why do you guys hate Javascript though? I know its not a well-designed language, but it really is useful for the end-user
 
user1804599
Because it’s not well-designed.
 
@Joe What makes you say that? ;_;
 
user1804599
8:42 PM
Use a language that has a compiler that targets JavaScript.
 
user1804599
Such as Haskell or Gear.
 
Joe
@MohammadAliBaydoun well for one, the only thing you could think of coding was a girlfriend.
 
@Joe Oh, that's just an idea I throw around every now and then <:
 
Joe
@ScottW Only in your world it isn't
 
> Guns don't kill people. I mean, until you shoot them. Then they kill everything!
 
user1804599
8:45 PM
> return new HelloApplication(env);
 
user1804599
llooll
 
user1804599
Our new intern has a funky haircut.
 
string urlencode(string decoded)
{
  size_t needed_length = decoded.length() * 3 + 3;
  char stackalloc[64];
  char * buf = needed_length > sizeof(stackalloc)/sizeof(*stackalloc) ?
    (char *)malloc(needed_length) : stackalloc;
  UrlEncode(decoded.c_str(), buf, (int) needed_length);
  std::string result(buf);
  if (buf != stackalloc) {
    free(buf);
  }
  return result;
}
 
user1804599
> stackalloc
 
user1804599
lol
 
user1804599
8:47 PM
C#++.
 
Joe
ok well it is complicated
 
user1804599
That code is absolutely not making any sense at all.
 
Naming is terrible too.
 
Joe
If you google this however, you will see that I'm not the first person who has ever asked this. Google: c++ web development
 
user1804599
Use std::vector<char> and return an std::string(v.begin(), v.end()).
 
user1804599
8:49 PM
At least.
 
Joe
tons of stackoverflow questions about it
 
user1804599
So what?
 
user1804599
It’s still horrible idea.
 
user1804599
Hmm.
 
Joe
I dont get the bashing. I'm sure they're just curious about it too.
 
user1804599
8:50 PM
case () of in Haskell can be used like switch true in Go. :)
 
Joe
Keyboard anger is strong here
 
user1804599
So what?
 
user1804599
It’s still a horrible idea.
 
user1804599
No matter how many people are curious about it.
 
user1804599
Web development is 90% boilerplate, unless you use a language in which you can write code that generates that boilerplate for you behind the scenes.
 
8:53 PM
What languages do that? I never did web dev before.
 
Joe
Well instead of trying to make it work as a webapp, maybe writing a web server will be 'fun'
 
user1804599
@MohammadAliBaydoun Python with Django is a great example.
 
user1804599
Or Ruby with Ruby on Rails, even though the end result is quite annoying.
 
Joe
You say very little about anything PHP @not-rightfold
 
I'd go with Python if I were to succumb to Web development. I've dabbled in Python before and it seemed quite nice.
 
user1804599
8:56 PM
@Joe I write PHP on my job. That’s about 6.6~7 hours per day. I don’t want to think about it outside work.
 
Joe
I was going through the laravel guide yesterday. do you use any frameworks at work?
 
user1804599
CodeIgniter :killme:
 
user1804599
We’re migrating to Python next year, though.
 
Joe
Django I assume?
 
user1804599
Jup.
 
8:59 PM
@Joe For learning? Sure.
 

« first day (1090 days earlier)      last day (3873 days later) »