Pavel
I was doing the project and I was compiling it and the compiler says undefined reference to WinMain@16 can anyone solve it
Not sure, but looks like you started windows application (not a console one) in Visual studio, it uses not main but WinMain. You need to either create this function and use it as the entry point to your program or use console application. Not sure about names as wll because I have not seen this creation wizard for many years.
BinaryByter
BinaryByter
metacall :f
Metacall overcomplicates, but sure ;-)
Ludovic 'Archivist'
its made with weird parsetables
C is impossible to implement with Yacc, Flex and Bison
Wim
C is impossible to implement with Yacc, Flex and Bison
https://www.lysator.liu.se/c/ANSI-C-grammar-y.html
Ludovic 'Archivist'
https://www.lysator.liu.se/c/ANSI-C-grammar-y.html
Let me rephrase, C89 or ANSI C is not implementable with Yac Flex and Bison entirely
Ludovic 'Archivist'
http://www.quut.com/c/ANSI-C-grammar-y-1999.html
This is insufficient to compile C
Ludovic 'Archivist'
It is just the syntax
Wim
Agreed, you'll need a whole lot more work to it
Wim
For 2011 exists too.. http://www.quut.com/c/ANSI-C-grammar-y-2011.html
Ludovic 'Archivist'
Agreed, you'll need a whole lot more work to it
"You cannot make a complete compiler-compiler for C with those tools" may be a better phrasing on my side
Ariana
/warn quite sure you’re forcefully self promoting
Ariana
._.
Ariana
oh
BinaryByter
😂😂😂😂😂😂😂
Wim
None would turn out a completed compiler; you'll always have to add a lot of logic your self too; these tools are made for generating state tables and stuff which you use in your compiler
BinaryByter
state tables
BinaryByter
ewww
Parra
Metacall overcomplicates, but sure ;-)
how? it's just the opposite, it simplifies any embedding or extending api to a common function call
Anonymous
C++ is sweet but I want to learn java
Anonymous
C++ is sweet but I want to learn java
Why Java? Do you want to run code in jvm ? Or do you want a layer of abstraction? Want to lose some performance? If you want to learn Java, be sure to know it's a very high level language compared to c/c++
BinaryByter
The creator of java advises against using java
BinaryByter
@Drazzy
Wim
I'm not the creator, I just worked on creating it?
Anonymous
then why it is official language of Android?🙄
Anonymous
then why it is official language of Android?🙄
Because Android itself is a modified jvm which runs dalvik bytecode
Anonymous
Now even Android is moving to kotlin
Anonymous
then why it is official language of Android?🙄
Still the kernel and most drivers are written in C/C++
Anonymous
Ever wondered why iOS is stable and faster compared to Android? Because of the use of objective C
Anonymous
ooowwk🤔
Anonymous
Java is object oriented only programming language
Anonymous
We must create a class and a main method to even do something really simple.
Ariana
Ever wondered why iOS is stable and faster compared to Android? Because of the use of objective C
or that objective c is painful to write so devs don’t want to go hunting for where the segfault happened so just actually write safe code (dont take this too seriously)
Dima
#ot
Anonymous
Huh
BinaryByter
iOS is just a webbrowser witg kernel capabilities lol
Anonymous
iOS is just a webbrowser witg kernel capabilities lol
Like chrome os? (Sorry I know it isn't the right place to discuss, talk in ot)
olli
Ever wondered why iOS is stable and faster compared to Android? Because of the use of objective C
Having a more limited set of devices makes it easier to optimize.
BinaryByter
Though I agree java sucks
Anonymous
Having a more limited set of devices makes it easier to optimize.
Yes Android is really fragmented with lots of devices and no standards
professor
please ive been ctfing for a year and making money off it and you’re telling me im overcomplicating all pwn challenges
CTF doesn’t teach you, real wold problems grab some CVE and reverse them and create the exploit . You will see what I am talking about.
Anonymous
/please it's had been lot of time I am asking about boolean algebra
Francisco
/please it's had been lot of time I am asking about boolean algebra
There's tones of information on the internet, no one is gonna teach you for free
Francisco
Unless you ask something specific
MᏫᎻᎯᎷᎷᎬᎠ
Java
Dima
😄
Dima
no
MᏫᎻᎯᎷᎷᎬᎠ
Mihail
Even better wait till 60
MᏫᎻᎯᎷᎷᎬᎠ
I mean Sometimes waiting is a good thing
Mihail
So even if you learn something it'll be useless
MᏫᎻᎯᎷᎷᎬᎠ
Wait till NaN
Before he was born
Roxifλsz 🇱🇹
Wait till NaN
Oh no, he has been infected with JS
Anonymous
Wait till 20
Are you crazy I will be in university next year or later And learning programming language will help me a lot strongly in high school that's why I have that subject
Dima
Lol > teaching programming stuff to become good @ high school
Dima
you must be high.
MᏫᎻᎯᎷᎷᎬᎠ
You can't learn anything in just about short time
MᏫᎻᎯᎷᎷᎬᎠ
Patient That is what I lack of
MᏫᎻᎯᎷᎷᎬᎠ
The couch never plays with the team
Anonymous
The couch never plays with the team
My query revolves currently only data file handling and boolean algebra
Ludovic 'Archivist'
then why it is official language of Android?🙄
Because android phones are using more than a dozen different CPU architectures
Pavel
Isn't std::vector supposed to have an optimized version for trivially copyable types? I mean one memcpy instead of iterating over the elements and copying each of them I copy a vector that stores pod types and I see that it doing a lot of stuff to do so, including iterating
Anonymous
C++ is sweet but I want to learn java
C++ is sweet when a person start learning then he knows how much sweet it is
BinaryByter
you need to copy to each memory position once
BinaryByter
you can't just use one memcpy
Pavel
std::vector I don't know, but I'm pretty sure std::copy does optimize
seems like that I need, the documentation says the same, checking it
Ludovic 'Archivist'