Anonymous
bcz I don't have any knowledge of how these are defined and all the developer stuff
Artöm
what data-member of string class is the "abcd" getting assigned
https://github.com/llvm-mirror/libcxx/blob/master/include/string#L737-L739
Anonymous
Sorry for a noob question : but who are the library implementors? R they the cpp developers?
Artöm
They are
Mihail
Sorry for a noob question : but who are the library implementors? R they the cpp developers?
no they are people who write standard libraries. there are many standard libraries and everyone can write one.
Mihail
popular ones are the MSVC standard library, libcxx and libstdc++
Stephanos
libcxx is core-maintained by marshal clow and loius dionne
Anonymous
no they are people who write standard libraries. there are many standard libraries and everyone can write one.
But if anyone can write a standard lib, then who decides whether it is exactly following the CPP STANDARDS laid down by the developers?
Anonymous
and if anyone can define them then is there must be some chance of faulty implementation
Mihail
But if anyone can write a standard lib, then who decides whether it is exactly following the CPP STANDARDS laid down by the developers?
1. why caps? 2. if you decide to use a specific library you know whether it does or doesn't comply
Mihail
obviously all the major ones do
Stephanos
the std-commitee decides whether you are allowed to call your compiler a c++ compliant compiler
Stephanos
if you market yourself as a cpp compiler without talking to them, chances are, that you get sued
Anonymous
If they wrote the kernel on it, it would be available from the box. The reason the kernel is not rewritten in C++ not because C++ is worser than C. You usually do not rewrite projects just because there's a new language. Otherwise we would constantly rewrite our code.
You're right. The kernel is not the topic of this conversation. The topic of the conversation is that guy who doesn't know which language he should start off. Over years, people think of C as a programming language which provides basics of knowledge about *programming world*. That is, if one learnt C, there would be no problem for them (maybe tiny ones only) to jump into JavaScript or PHP, and the same with C++ - the question is just codestyle as far as I get it. There's meaning called "C-like syntax".
Stephanos
this one helped me understand how it works. Thanx brother
np. you just need to understand, that the commitee is a loose stucture that works democratically. anyone can attend the meetings, anyone can vote in some, but not in all issues
Mihail
if you market yourself as a cpp compiler without talking to them, chances are, that you get sued
i don't think you would if you claim being compliant with a specific draft and not the official release
Stephanos
to vote for the final std you need to be a bodymember of a country that works in the iso
Artöm
what data-member of string class is the "abcd" getting assigned
libstdc++ https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-v3/include/bits/basic_string.h#L166-L175
Stephanos
i don't think you would if you claim being compliant with a specific draft and not the official release
well,... we could argue about that, i am sure. thing is: everybody may write a cpp compiler, but if you want to sell it, using a trademark, make sure to talk to the people about it before selling it ;)
Stephanos
but,... if you are able to write your own std-complient compiler, you probably already know most people from the std-commitee
Artöm
But if anyone can write a standard lib, then who decides whether it is exactly following the CPP STANDARDS laid down by the developers?
Implementation clsims some level of support, users check if it's documented, file bugs etc
Stephanos
btw, if anyone wants to attend the next std meeting. its in two weeks in cologne ;)
Artöm
So this is diff from the one you sent earlier
Because standard doesn't say "string must have these fields", it says "it must have following functionality"
Anonymous
Can I put it like "MSVC is one of the standard CPP library" ?
Anonymous
Can I get any response??
Artöm
They use dirkumware std, which is c++ std lib (one of)
Anonymous
libcxx
Anonymous
?
Mat
Can I get any response??
Can you just wait? It's not like you're entitled to get one as soon as you post your question
Artöm
One from clang/llvm, also std lib
Anonymous
diff b/w cland and llvm
Artöm
?
Formulate question properly
Stephanos
clang is the c/c++ compiler llvm is the compilerproject, that also builds other compilers
Stephanos
so the compilers name is CLANG
Artöm
diff b/w cland and llvm
Clang compiles to special language, then llvm compiles from it to asm
Anonymous
Formulate question properly
Can I say that "libcxx as a standard CPP library"?
Artöm
Yep
Stephanos
libcxx is one of three major implementations of the cpp std library
Stephanos
And what is a compilerproject?
a bunch of people that created a framework to build compilers for different languages
Artöm
Dirkumware
Artöm
In msvc
Stephanos
you can build different frontends for llvm, that get compiled into an abstract syntax tree which then gets compiled to asm
Anonymous
libcxx is one of three major implementations of the cpp std library
You seem to understand and explain things well to a NOOB.
Stephanos
ir, not ast
ahh yeah,... you are right
Stephanos
intermediate language
Stephanos
fail^^
Stephanos
Ajay not abstract syntax tree
Anonymous
Hello guys. We have enough bitter kola(Garcinia kola) and Sesame seed, If you are interested in buying it. We supply any quantity. Inbox me.
n1coc4cola
HOLYSATAN
/saved
Anonymous
How do I link DLL file in vscode
Anonymous
@Bjoekel Does LLVM works in tandem with clang
Anonymous
I framed it really badly.
Stephanos
CLANG is a user-frontend to LLVM
Stephanos
CLANG parses C++ into an intermediate language.
Stephanos
LLVM compiles this IL to asm
Stephanos
as I said, you could also have other LLVM frontends
Anonymous
Like ?
Anonymous
can you name others
Stephanos
https://llvm.org/
Stephanos
for example there seems to be a rust compiler on top of llvm
Anonymous
Like ?
Like other languages
Stephanos
there definitly is a GO compiler on top of llvm
Stephanos
funny, I just saw that there is a LLVM ir -> javascript compiler :D
Stephanos
this should be burned alive i guess
Anonymous
So the job of LLVM is to convert IL to ASM.
Stephanos
yep.
Stephanos
IL or as some say IR, intermediate representation