Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "compiler"
-
I always put redundant parentheses in formula like ((b - a) / 2) + a because I just don't trust the compiler.22
-
Sometime I’m developing in Rust and I do something wrong.
Then I look at the terminal and it says...
“You did X, did you mean to do Y”
Then I do it and it works perfectly, and I’m like...
Why do I even have a job if the compiler is this good?10 -
The ability to convince the compiler that there's no errors.
"Shhhhhh.. trust me, there's such things as a duoble. Now just tell me the build was successful"2 -
Never look at your computer when it's compiling, it can sense you and it becomes more prone to errors.
#CompilerConspiracy4 -
Ah, C++. Where the compiler optimisation is fucking you so hard that you don't need a girlfriend anymore 😒10
-
"Fatal Error"
Exceptions? No, let's just halt the entire program.
Apparently a CS professor wrote this code.
"Needed to keep the compiler happy"17 -
Photoshop,...
because why use an:
IDE / editor,
terminal,
SASS/LESS compiler,
package managers,
git,...
when you can make your website as a photo, slice it up and export to html. EASY PEAZY6 -
When I'm forced to maintain a C project having recently done a lot of C++:
Compiler: Declaration may not appear after executable statement in block.
Me: dEcLarAtiOn mAy NoT aPpeaR aFtER eXeCuTAblE stAtEmEnt iN BloCk. *pffffttt*2 -
writing an assembler for my compiler, Manticore.
Currently working on writing a hand written parser and parse tree node system.7 -
Ok. Yesterday I finished building my compiler I have to say: it was a pretty darn big thing with 7000 Lines of code.
I did it alone and with almost no help.
I wanted to give some advice in case someone wants to program a compiler. I knaw its useless in times of lex and yacc, but anyway.
-have a good idea for the language
-learn about parser/lexer
-learn assembler
-do it like me: output the assembler to a file and let it assemble/link by the linux standart-tools (call the commands)
-Have fun. Fun is essential in coding
I hope I was able to help people who want to build a compiler alone... Yau can always ask questions ;~)
-3 -
When i lost in a competition with a super project against a person that did something that would take 5h of coding.
I codod a compiler, he made a sudoku solver2 -
i have this friend who says he has already finished his python code, but it has to be compiled and he cant seem to find a compiler....6
-
Or maybe I could build a C compiler and be responsible for ";" !
Making programmers cry and scream.3 -
*** don't use compiler ***
Question in class today:
int n = 0;
for (int i = 1; i < 10; i++) {
n = n++;
System.out.println(n);
}
what will be printed?50 -
Turns out writing interpreters is just a gateway drug and all I want to do now is build a compiler and custom language runtime...23
-
First dev job: port Unix on Transputer, a (now defunct) bizarre processor with no stack, no registers and no compiler. That was fun! And that was in 1991 😎3
-
Just finished up my first compiler, with accurate extensible error reporting, and the syntax system is generically typed so I can reuse it. Pretty fucking pleased with myself12
-
I was working on windows before, had to do an assignment for a course.
And was stuck on....visual studio python compiler not working.
So I decided to do this.13 -
The Dragon book has arrived
Yup some folks don’t like it some stuff is missing and it’s not presented in a different way but it’s still the compiler book of compiler books5 -
[long]
When searching for internship via school I found this small startup with this cute project of building a teaching tool for programming. There were back then 2 programmers: the founder and the co-founder.
Then like 1 week before the internship started, the co-founder had a burnout and had to get off the project, while the company was so low on budget the founder, aka my new b0ss, had to work separate jobs to keep the company alive. (quite metal tbh)
It's funny because I'm a junior developer, 100%. I've been coding as a hobby for around 8 years now but I've never worked in a big company before. (No exception to this workplace either)
First project I get: rewrite the compiler. The Python compiler.
"But wait, why not just embed a real compiler from the first case?"
-nanananana it's never simple, as you probably know from your own projects.
The new compiler, as compared to existing embedded compiler solutions out there, needed these prime features:
- Walk through the code (debugger style), but programmatically.
- Show custom exceptions (ex: "A colon is needed at the end of an if-statement" instead of "Syntax error line 3")
- Have a "Did-you-mean this variable?" error for usage of unassigned variables.
- Be able to be embedded in Unity's WebGL build target
All for the use case of being a friendly compiler.
The last dash in the list is actually the biggest bottleneck which excluded all existing open-source projects (i could find). Compliant with WebAssembly I can't use threads among other things, IL2CPP has lots of restrictions, Unity has some as well...
Oh and it should of course be built using test-driven development.
"Good luck!" - said the founder, first day of work as she then traveled to USA for **3 weeks**, leaving me solo with the to-be-made codebase and humongous list of requirements.
---
I just finished the 6th week of internship, boss has been at "HQ" for 3 weeks now, and I just hit the biggest milestone yet for this project.
Yes I've been succeeding! This project has gone so well, and I'm surprising myself how much code I've been pumping out during these weeks.
I'm up now at almost 40'000 lines of source and 30'000 lines of code. ‼
( Biggest project I've ever worked on previously was at 8'000 lines of code )
The milestone (that I finished today) was for loops! As been trying to showcase in the GIF.
---
It's such a giant project and I can honestly say I've done some good work here. Self-five. Over-performing is a thing.
The things that makes me shiver though is that most that use this application will never know the intricates of it's insides, and the brain work put into it.
The project is probably over-engineered. A lot. Having a home-made compiler gives us a lot of flexibility for our product as we're trying to make more of a "pedagogic IDE". But no matter that I reinvented the wheel for the 105Gth time, it's still the most fun I've had with a project to date.
---
Also btw if anyone wants to see source code, please give me good reasons as I'm actively trying to convince my boss to make the compiler open-source.
Cheers!4 -
So I recently started going to a university, and I am being taught C. I have previously learnt C++ in school so its all pretty easy for me compared to those who are programming for the first time.
So, one of my classmates run into a problem with their code so he asks to check where he went wrong. So, the teacher comes and checks his code and then concluded that the compiler is F****** broken!! And i am like FFS theres a missing semi-colon, even the compiler pointed it out....just because you couldn't figure out the problem doesn't mean the compiler is broken.7 -
Me after a long coding session with a well prepared working flow: I am such a great computer scientist, I can conquer the world.
Right after that I found a repository for computer science papers and got immidiately hooked. Well, the level of knowledge and theory is so immense that it brought me back to ground of reality again: I know so little that it is almost ridiculous, even if I read and code 16 hours a day I may never understand computer science as a whole.
Le me sad.11 -
The myth about the missing semicolon. I don't get it, if your editor doesn't pick it up, the compiler og interpreter will. How is this a common problem?4
-
Please actually pay attention to compiler warnings. They exist for a reason beyond just being a nuisance. If you're willingly ignoring warnings then you're accepting unnecessary risk into your project.4
-
I've just managed to add the ability to call functions to my compiler. Currently, the capabilities are rather limited but I am pleased with it.
It keeps the schematics of the source code well enough that it can handle
recursive calls.
:D
On the Image, you can see the program's output (left), the generated x86_64 assembly, and the source code of the compiled program (bottom).6 -
Dear Santa, please bring me a compiler that generates compile errors instead of runtime bugs. Thanks.10
-
"We have this Fortran code that should be translated in that Matlab software, is there a system or a compiler to do that?"
"Yes, that is called a Programmer"9 -
1 little bug in the code
1 little bug in the code
put a little ; in now
compile it around
991 little BUGS IN THE CODE1 -
I fucking nailed my c exam.
Had to write C on paper today. Fuck my uni for that. But I think I aced it. I coded C for weeks and hopefully finally payed off.
Fuck coding on paper though. They are just too lazy to make something digital. But man at least let me get some compiler messages. It's not like anyone codes without compiler messages anymore. -
I guess I could say back to the old LOGO turtle days, but it wasn't until university that I began using the good turbo c compiler and it's DOS platform4
-
The one colleague who wants to type -0.5 but accidentally types 0-.5 and leaves it like that because the compiler accepts it and in the end its correct.5
-
I hate it when code line are structured like this.Get().Start().Trim().Where(a=>a.id = newId).ToList().ConvertAll(...).EndMaybe().Name
Are you a fkin compiler or what3 -
You know it's been a hard day when the compiler finishes without errors and you assume it malfunctioned.
-
When you debug for 2 hours. Due to a logic error. You go through every line. It all makes sense. You find a semicolon after an if statement... Shouldn't the compiler have caught that?4
-
I love how people miss the location of ";" when most of the time the compiler error tells you the exact line...1
-
- finish compiler
- get into gamedev
- learn Android dev
- finish framework (or at least make reasonable progress)
- create scripting language
We'll see what else comes to my mind during the year5 -
With the brand new Microsoft C++ compiler, what you see in the debugger, is not always what you get...8
-
Wow @ewpratten and I just witnessed, for the first time in history, the GCC compiler being useful!5
-
Day 2 in ComSci class (following my last rant)
"Okay, so! All of the schoolwork and homework will be done on paper and pen, submit and I will grade it. Only once, no second chance"
Okay. Okay. This went over my head. What are you gonna do? OCR the code into the compiler, compile it and run to see if we fucked up to give us an F? What are you, god? Here's a brilliant idea, teach them Assembly! Guaranteed error to give us Fs! FUCK YOU3 -
So legitimately accidentally started building a compiler... Don't ask how because I don't know...
(No it's not a 'true' compiler that will create executables, it just a compiler to make some data easier for my runtime to read it)2 -
!rant
I bitch a lot about the complexity of Rust. But every time I do it I go ahead and applaud just how fucking good the compiler messages are.
A fucking thing of beauty.2 -
Not quite a interview question, but in a competition (I had build a compiler) the jury (they all told me they had all studied informatics) asked me what a compiler is... Not in a "lets try to catch him off manner" but rather in a "i am too stupid for this world manner" he asked me what a compiler was... And it got even worse: my compiler is based on linuxes utils (nasm+ld) the guy didnt know about linux. Assembler was much too much for him and when my compiler threw an error (I wanted to show them the error system) he told me I shouldnt present unfinished projects... Atleastthe other two were really nice and i still got 2nd place (behind a person who prorammed an Nxt thingy)7
-
Making my own game console.
I work with FPGAs and have access to a bunch of pretty nice dev boards, so building a workable CPU and GPU is definitely possible. I even have architectures for both in mind, and have planned ways to get compiler support (i.e. just use RISC-V as the ISA as much as possible so that I can reuse an existing RISC-V compiler with minimal changes) so that I don't need to write assembly.
But, lack of time. Sigh.4 -
well, for now, my biggest dev ambition is to become a compiler designer/programmer... or OS designer/programmer.
In short, systems programmer (compilers or OS).
😅😅😁😁3 -
wow... no kidding.... so C++ is like a language without a compiler holding ur hands and catching u when u screw up...8
-
Everytime I think I'm smarter than the compiler, I'm... absolutely not smarter than the compiler lol4
-
My best dev-memories of 2016??
First in february I won a competition (Jugend - Forscht) in which i had programmed an interpreter. And then, the first time my selfmade compiler actually printed hello world... -
How the fuck do you people develop on Windows? 30GB of Visual Studio dependencies to get a compiler going, now this???8
-
Working on a compiler which Convert JavaScript Code to Purescript Code Which Complie back to JavaScript.
I don't understand this decision of my Manager8 -
It's the time of AI, so add that mf AI to our compiler that we don't have to fix the errors anymore!😈4
-
Compiling software on Linux:
Python interpreter? Easy peasy, just some dependencies here and there. Make does a good job.
Linux kernel? Piece of cake, 20 years of development will be freshly served on your machine after one hour compiling (I have a pretty powerful computer).
Tensorflow? Fuck this shit I am outta.
What is your story with self-built software? Which piece of code has the most terrible dependency hell?5 -
Lets learn bubble sort!
Type the following code to Visual C++ 1998 and compile it. Then run it. Write the output to the paper i just gave it to you.
Reality:
• Takes 5 mins to compile and run
• Too many errors in the given code so obscure output
• Teacher thinks we are so smart that we can understand c by typing and looking at the output.
The worst part:
• Different output per compiler
- Correctly compiles in the compiler in VC++ 98.
- Differs in GNU GCC, compiles wrong
- sends out obscure dummy output in VS2015~2017
- Works well in tutorialspoint.com compiler
WTF is this, guys?
@@@@@@@@@@@@@
Oh, and i have gone off topic...
Why does he think we are smart that we can understand bubble sort, and 4 more by only typing the code and looking at the output without knowing how does this algo work?
@@@@@@@@@@@@@
Answer to weekly question.
The teacher said to understand sorting algos by typing the code and looking at the output which differs per compiler.5 -
Dear compiler, I know you have plenty of files to compile (like a lot), but could please stop flushing an error when I'm trying to read it ?4
-
❤️ Swift ❤️
"Module compiled with Swift 5.1.3 cannot be imported by the Swift 5.2.4 compiler"
but srsly2 -
Java teacher writes code on blackboard in comp lab
He tells us to try it out at our workstations.
We do. The code does work. We tell him.
He says: "There is something wrong with your compiler..."
Question is...we were around 30 students. Can all our compilers not work if we had used the lab before and the code we run worked clean??!?!?!?
We were flabbergasted2 -
C++ type fuxor we found by accident in our code. I am not upset about allowing 2 different types to have the same type name. I am upset that the compiler thinks they are the same type and allows pointer assignment. I didn't know you could fool the compiler this way. I suppose this might be useful if the types are in sync. But damn, this is kinda fucked.13
-
Rust: Unclear error output is seen as a compiler bug.
Me: 👏
SSIS & SQL Server: Unclear or absent error output is seen as an enterprise feature. It's so mature!
Me: 😩 -
When you're in a rush to write a new feature but your compiler keeps nagging about not handling exceptions2
-
Here's a short cliché marriage scenario.
He: I think you’re my compiler. My life wouldn’t start without you.
She: -
Leaving an intentional compiler error on Friday so I know where to continue on Monday.
Now I have a compiler error and not a fucking clue of what I'm supposed to do with it.4 -
People often rant about a missing semicolon,
I added an extra after if condition
if(...);{
}
Compiler can't take this as error.
Debugged the logic for hours,
Wasted a lot of time, lol5 -
Try to convince people that html isn't a programming language and there's no need for a compiler to work with html.3
-
WELCOME TO THE FUTURE
WHERE YOU HAVE TO EDIT THE COMPILER TO FIX ERRORS
Made by @cozyplanes. All rights reserved.10 -
Ever got that thing, when your IDE says that you have a syntax error in your code, and you reread it again and again and just can't see it, so you just delete the whole thing and write it again - exactly the same - but now it compiles fine?3
-
How on earth are there people in their second year of a computer science course who are unable to understand how to read build errors. It's honestly not that hard, just look at the fucking build log and see where the error is and what type of error it is, but yet they don't bother reading the log and say that their "compiler is broken" when their 5 line code won't work.
If this was still first year I'd understand since many of the class didn't have much programming knowledge, but if you're in your second year and you struggle with this (that too for a Hello World script) it looks like you aren't even bothered and just expect the computer to magically understand what you mean.3 -
Best: building a compiler in C and using LLVM as an IR tool
Worst: my job, and a group project of 5 people which I ended up working on alone1 -
Fifty little bugs jumping in the code,
One tracked down and dev started to code,
Developer called the compiler,
And the compiler said
Hundred more bugs (& errors) found in the code -
Coming back to c++ after far too long in python...
Compiler: "Do you even know what a semicolon is?!"7 -
Compiler is like my mom. Every time when something wrong happened, they blaming me. And actually that's true.
-
When you put your hands together and start chanting almighty compiler gods to have mercy on your soul.
-
Why do programmers prefer dark mode? 🌑
Because the light attracts bugs! 🐛
"When you try to make coffee but the compiler keeps saying 'Syntax error: Coffee not found.'" ☕😅1 -
Create a bug-free compiler for a Lang like c# but a little less overcomplicated and a lot faster. I don't believe a strictly typed and garbage collected language needs to be much less than half as fast as c++.2
-
launched a new online compiler todays, its very easy to use and fast ,guys check it out http://sapphire-engine.com/
p.s - still some features to add -
To instantly know *exactly* what caused a compiler or runtime error and *exactly* how to fix it in the best possible way, every single time.2
-
Pair programming a major refactoring, colleague tries to change _everything_ simultaneously. Spent hours fixing compiler errors, now it's not linking. ¯\_(ツ)_/¯
-
Setting up a Haskell environment on Windows is fucking AIDS. Guess I'll screw it and just use ANTLR for my compiler.6
-
Once again, we delivered our semester project and this time, we added working concurrency to an existing functional language compiler, which is pretty cool. But I'd probably be more happy if I had been developing more on the compiler than once again being stuck writing the fucking paper because none would be arsed to write it otherwise...
-
Someone around here once said that they believe that Rust compiler errors are generated by first sending the compiler noise to some dude in India and then they parse the errors and send them back to the compiler.
This was not a nod against our friends from the land of India, but instead, I think, a praise.
Thus I would like to add a request to the rust devs to see if they could include more "trademark Indian" sassy remarks in the messages that the compiler generates. But I am afraid that they think I am being racist or something.
For reference: My Indian friends are all beyond sassy in the way they clap back at mfkers when having friendly arguments, I have been left with a "well, damn" in multiple occasions because I am incapable of reaching that level of sass myself.12 -
When your compiler is too smart and inlines and unrolls the function call with its own implementation on a preemptable kernel code a simple memcpy call can be used to destroy the system :D4
-
I am a single-pass compiler.
Why?
Well, when I have to do the food shopping for the week, I have a look at the buying list, keep the things in mind, go through the shop exactly once and everytime I see a match with the list, I put it into the shopping trolley.
Efficient and quick.
Soo, on the other hand, my girlfriend is a multi-pass compiler.
What that mean, you ask?
Well, she doesn't have any look at the buying list until she is in the shop. Then, she runs through the whole building until she finally finds the first thing on the list... and repeats with the next one until there's no entry left.
She needs three times longer than me for this, is totally exhausted after it, and, not forgetting, then SHE is angry about ME, because I wanted to have these "special" sweets she had too run through the shop twice for because she couldn't find it at first try.1 -
FUUUUUUUUCK!!! Even the compiler has given up on this codebase! And it's still 2PM..............ON A MOTHERFUCKING MONDAY2
-
Anyone able to link me to some good reading material on compilers, interpreters, emulation and CPU design?
Keen to actually get some of this knowledge under my belt, don't mind if it requires a little investment as long as it isn't written in (fucking) python, preferably C if anyone knows of anything.
Thanks guys! :-D9 -
Simple ANTLR project for compiler class accepted .
Easy money
(btw I had no idea about what antlr was , so i googled everything :D) -
Developing a compiler is the only thing in programming that is as difficult as building an Operating System.2
-
I still don't know how I feel about programming tests here in my university being on paper. Literally, we code on paper and that's it. Teacher corrects it like a compiler.7
-
Can we please stop making everything in javascript? Pretty please?
Like, I get it, js makes it easier to find developers and speeds up development, but writing a compiler to run on node? That doesn't make any sense to me. Typescript is taking ~11s to compile a medium-sized project, out of which ~9s are just type-checking (if I disable type-checking it takes ~2s to compile). Even Rust, which is considered to have a slow compiler (because of the borrow checker I assume) takes less time to compile a project of roughly the same size.
This is getting very irritating. If I want to keep type-checking, every single time I make a change on a single file I have to wait 11s before any tests start running. This was heavily affecting my productivity (and sanity), so I decided to disable type-checking and threw out the window 90% of Typescript's advantages.
Why the hell wasn't typescript written in an actually performant language? Just so you could say that typescript is written in itself? I don't get it, I really don't.14 -
Fuck golang, apparently enums are too complicated for the human mind. Someone looked at C and decided to make it shittier, like now I have to deal with C shit, and use a garbage collector on top of it or use fucking C++5
-
If I ever get asked to write code in C for a contract again. I am going to use the llvm C++ to C compiler. Then deliver the machine generated C code to them.6
-
Working with Microsoft.CodeAnalysis.CSharp
where I work with CSharpSyntaxTree
I can compile the code in code.
So basically,
SyntaxTree syntaxTree = CSharpSyntaxTree.ParseText(@"
using System;
namespace InAppCompiler
{
public class Writer
{
public void PrintText(string message)
{
Console.WriteLine(message);
}
public void ALLCAPS(string msg)
{
Console.WriteLine(msg);
}
}
}");
Freaking cool!3 -
I added a method to an interface. Was to lazy to find all use cases so I just hit Run and waited for the compiler to throw all places where the method is missing. #effectiveJava1
-
I saw multiple attempts to convert an int to a String by concatenating it with an empty String...
String s = someInt +"";
(I'm guessing the compiler uses a StringBuilder here which still ends up calling Integer.toString())2 -
MSVC will sometimes compile our code. Sometimes it throws an error.
No changes. Just a shitty compiler.2 -
My idiotic teacher doesn't know the difference between Java and JavaScript , asked us to use a old version of Code::Blocks(some c/c++ IDE) just because she thinks that a update would modify compiler in such a way that basic code would never give the same output , she blames the compiler just because she isn't capable to see her mistakes and gives me bad grades just because she walked through college and I didn't.2
-
My compiler tells me, "Hey, you have an error at line 389, resolve it!"
Me [In wonder]: What the heck are you talking Mr Compiler, my program is of 32 lines only!!!2 -
My weirdest dream about programming?
I was sitting with my buddy and we were programming, and literally, verbally arguing with compiler that he should compile, and he was spewing out different errors each time we compiled, and it somehow matched our arguments, so it literally was "replying" with different kind of errors ;-;
I mean, we didnt change code, but tell to compiler "no, no, no, you dont understand. This error is wrong, becouse here and there is this and that and it just should work" **pressed compile again and gets different errror**
Yes, that was after few nights of c++.
Edit:
yes, in that dream compiler was spewing out bullshit errors that didnt made sense.2 -
Crawling around in a legacy project. Need to rewrite 500 lines of SCSS, to regular CSS. Fuck it. Runs compiler, beautifier and copy paste that shit.4
-
Is it wrong that I feel a genuine sense of accomplishment for having once written code so bad it caused an access violation in the compiler?1
-
Compilers should just work for raw C with only static memory allocation. This isn't the bad old days where a couple of dudes wrote a short book explaining how C might probably should possibly work. I hear supposedly we have standards now.
Well, last week I lost 2 days to our compiler randomly forgetting that it wasn't okay to put a globally allocated uint32 at an address ending in 9. What? It had been handling this case without issue for more a year, but now after changing completely unrelated code we have this problem.
I'm not sure how to even deal with this idiocy so no doubt I'll continue working on it this week, too.
Thanks a lot, GCC.1 -
python + rename == nightmare.
I cannot be fully confident every rename is safe. Because there's no compiler check to tell me o.o17 -
Is there a good offline C# compiler for iOS? I want to program on the go as I am not by my pc a lot.2
-
When you're working with an unfamiliar codebase where there are tons and tons of compiler warnings to start with... So of course your latest build-breaking mistakes are completely buried.
-
!rant Scary Stuff...
Not sure what are the rules on sharing external content, but this story freaked me out and I wanted to share with you.
Pretty scary stuff, maybe something like this is already in the wild? Especially with the NSA and other power groups trying to exploit vulnerabilities and infiltrate everything...
Found it originally on the rational subreddit. Here is the link:
https://teamten.com/lawrence/...
Spoiler alert:
It's about the The Ken Thompson Hack:
"Ken describes how he injected a virus into a compiler. Not only did his compiler know it was compiling the login function and inject a backdoor, but it also knew when it was compiling itself and injected the backdoor generator into the compiler it was creating. The source code for the compiler thereafter contains no evidence of either virus."
How to detect/deal with something like this? better no to think too much about this. -
Just found out that Ruby does not have any formal langauge specification. Instead, they just use the ruby-spec test suite. If your compiler can pass those, then it's probably a ruby compiler.
This is a pure duck typing at a compiler level. LMFAO.4 -
When someone specifies file path of file as below
File fileToRead=new File("C:\Users\You\Desktop\testfiles.Zip\test.txt");
Compiler be like1 -
i adore compiler based programmers. yesterday i changed a bit of python code without being able to run it only to find out later i wasn't even able to spell True and False correctly.7
-
I taught myself C. I had a Commodor-64, and I bought a C compiler for it. My first project was a random character generator for the original D&D RPG. That was in 1985.
-
Same code, same chip, different platform and compiler(arm64 and amd64) and exactly one bit flipped on the chip init from the same binary, is this even possible...4
-
A bit confused
I have a code and it is giving different answers in different language and compilers
the code is
Int a=4
Int b = ++a + a++ + --a
Please ignore the syntactical errors
But this logic give different answers in different compiler and language like in
C(turbo c++ compiler) it gives 12
C(gcc)- 16
Java- 15
Python- 12
Can anybody explain the logic behind this...10 -
so llvm core was written in c++
and it's used to build good compilers.
and they used it to build llvm-g++, a c++ compiler (now deprecated)
huh...1 -
In Java, I use dummy variables to set breakpoints and get around the return unreachable compiler/Eclipse check2
-
Swift can sometimes be just a bit too type safe, to the point where you have to put ! everywhere there is an optional variable to stop the compiler from complaining2
-
C compiler : you have 27 errors and 35 warnings 😐.
Me : ok let's recompile it.🧐
C compiler : ok! You can go now🤣.4 -
First time programming. I'm sure I got it right. Compiler must have a bug. My instructions were very specific. Wait... what... I don't even...
Credits r/ProgrammerHumor. -
It drives me crazy when there are unclosed parens or quotes anywhere.
Is it too much to ask for people to run their Facebook posts through a compiler first? -
>compiling Linux 3DS' zImage overnight
>start compiler at 4PM
>11:54PM -- compiling clang: <file>: conpiler: *internal compiler error*: segmentation fault
okay, well, maybe if we continue make from there it'll fix itself? Might've run out of RAM...
>make
>5 seconds later, segfault again
FUCK1 -
Non-co-worker rant:
Today:21 Jan, projects 5: 3 games:1 unity, 1 Java, 1 vba; 1 angular app and 1 lex compiler. due date 24 Jan.1 -
Today I realized that compilers are children, and must be treated as such. Generally, you might tend to expect a language to follow the same rules consistently, but oh how wrong you are, my sweet summer child.
I have a framework that I've been reusing across several personal Unity3d projects for a while, and all was well. This week, I was tasked with creating a PoC that combines a web app with Unity WebGL for data visualization. My framework has a ton of useful stuff helped me create the PoC very quickly, and all was well.
Come 3 days ago and there's one last piece that isn't working for some reason. It almost appears that this one bit of code isn't executing at all. Today, after countless hours of swearing at the computer and banging my head against the wall, I realized that the WebGL compiler has a different implementation for the method that checks assignability of types. An implementation that has different rules than everything else. An implementation that has no documentation about this discrepancy anywhere. I have no words.
tl;dr: The language changed the rules on me. Fuck me right?1 -
Whether I care to admit it or not....
My most prolific teacher has been compiler error messages (oh, and intellisense). -
Just spent 3 hours trying to understand why my compiler isn`t even trying to compile my code until i found out it was a known clang bug.
-
I've been watching hours of Rust programming streams. Looks like no one knows what they're doing. People depend on the compiler to fix their errors but can't write one line without getting an error.7
-
Named my current project "dumpster fire" so I can say "This dumpster fire doesn't even get through compiler anymore!" will work on that level too.2
-
Trying to learn something new.
Find a library in a foreign language. It's c++.
Unable to include lib.
Copy contents
Try absolute path
Compiler gives me the finger
Abandon project -
!(rant)
https://github.com/MaximilianJugend...
what diya think about my self-written Compiler? Also my first GITHUB-commit :) -
On my University exam of compiler design I got this question
Write difference between pascal and C programming language.1 -
Use Rust they said. It will be much less hassle they said.
And now rustc just stops working in the middle of compiling. No error or anything it just doesn't want to continue compiling so I'm stuck forever on "Building ...". I thought I would never have to experience this again after deciding to pretend C++ doesn't exist but alas systems programming appears to forever be a right pain in the ass7 -
Well. I have to go on a competiton about informatics in two weeks.
This is my programm: https://github.com/MaximilianJugend...
As its a competiton for kids, I dont expect anybody to match a compiler (not trying to be rude. The competitors try to compete with nxt programs.), but it wouldnt look nice, if there were Bugs. So shoutout to german people who are bored to death: could you please test my program and open as many issues as possible? ;) thanks in advance5 -
TL;DR: Brainfuck & Abstraction is so cool!
One of my dreams is to make a Mandelbrot Fractal with Brainfuck as the one on Rosetta Code.
I'm too lazy... So i'm writing a Compiler for Brainfuck.
At now i have 900 line of Python code and the operation VAR, SET, ADD, SUB, MUL with nested operation compatibility, IF, ELSE, ENDIF...
Probably i will doing it fast directly with BF but damn if abstraction is so cool!!4 -
I just started learning Norwegian. Does anyone know how I can enable branch prediction in the compiler?1
-
(heading)How a programming language is created? Because I want to make my own.(heading)
I am learning C and next I will learn C++, SQL,DS&A, Assembley, Lex&Yacc,Operating Systems, Computer Arcticture, Computer Networks because I think it's enough for my goal. The only reason I am learning this, to make my own C++ clone with my own knowledge. But I really don't know how can I create my own programming language like C++ from scratch. Like what are the first steps to began with. As I know that C, first step is Preprocessor then Compiler then Assembler then (Loader/Linker).
Anyone please give me a step by step guide like learn this language first then this then this. So I can finally reach that amount of knowledge which I can implement to create my own programming language like C++.6 -
I wonder why the css class inside the css file throws an angular compiler error at '{' ... shit, it was configured with sass, not scss 🤦
-
Programmer: Type type(2);
C++ Compiler: // Okay, I'll use the constructor that takes 1 argument
Programmer: Type type();
C++ Compiler: // I see there is a constructor that takes no arguments, but surely you don't want that. Everybody loves functions, a function shall be declared!
Who, in their right mind, thought this syntax is a good idea?! Syntax inconsistencies drive me crazy...11 -
Is there a programming language or library that lets you customize the shit out of it? Something like C++ templates but with special symbols as custom operators?7
-
Me during HR interview.
Q) What makes you Happy?
Ans: when my code compiles successfully in the first attempt.1 -
My thought process..
a compiler found a type error, oh thank god i was not using python or even worse js. this could have been hard debug error, type do matter huh!. what if compiler was even strict that could have found more error and i could really write even safe code. Ohh may be i should learn/finish Rust
** suddenly conscious slaps in the face**
first finish one project, STOP language hopping ..
Oh! right!1 -
That Feeling when Eclipse removes Maven dependencies, put his compiler and Build Path to Java 5 when you're with Java 8, and cookies aren't good since it's not yours.
Yay for git -
I have an assignment where I have to make a language that has a purpose, for example: make sql easier to understand or in my native language.
Do you guys have any ideas?10 -
So my compiler has been compiling the newest version of my compiler for about five hours now, and progressed 10% in the last hour... Looks like my poor laptop is gonna have to pull an all nighter2
-
`Not really a function, but inserting a ${variable} like this is so convenient in JS.`
Closure Compiler will make it IE proof at the end, but I like having nice code in development. -
I was trying to learn Java and Python at the same time. Ended up being proficient at Jython.
Now I,m trynna find a compiler that understands my language. Can anyone help?3 -
Just coded a simple SDL program after a two weeks break without a compiler error(more than 100 lines) from memory . Something must be missing . I don't trust this program 🤔1
-
shower thought : if i made a compiler for my own programming language and it compiles to python. would it be a python dialect or a new programming language?5
-
Python's ast package is the coolest thing I've recently came across. If you're a compiler writer, you can translate your language's source code into python's ast. And your language has instant access to all of the python's libraries.
-
Hate when I forget I rename x variable to y just for the compiler to fuck me in the ass by telling me x variable doesn't exist. FFS!!!1
-
Compiling a project (Not BIG but still pretty big)
C# compiler : YOLO, you have 12 Cores ? I'll use 12 cores. BAM : 3 seconds, compiled !
SASS compiler :
Rolf, I'm gonna take file by file, recompile all dependant files to produce a single file. 2 Seconds per file. X 150 files.... 6 Minutes SASS is still running....2 -
I still wonder why there's this "a man writes more optimised code than compiler" stuff. Why?
Compiler is automated work, in the worst case it should be able to create multiple e.g. asms and compare the time, right? You can dump all instructions into compiler, it should be able to choose the right one even if it would compile whole days, right? You can't be possibly serious with such a statement.
No "time" arguments, please.2 -
What are my odds that V8 will recognize my efforts and convert my for loop to use SIMD? It literally just adds the elements of a Float32Array to another, it's the single best chance for compiler optimizations to shine.4
-
Compiler Question
Things you hate/don't like about JS/Javascript/ECMAscript/ES. Or what do you think are the issues4 -
I was in my IDE writing up a new program, but my compiler didn't accept the encoding format of the files. Because I used special characters, it flipped a lot of encodings around. Then I changed my projects master encoding, then all of the source files they all messed up. The all the files were composed of "????????" I went to a backup and they were messed up too. I exploded... Control Z couldn't even be my hero this time.3
-
"Unexpectedly found nil while unwrapping an Optional value"
What dev thought this would be a good idea in Swift? Sometimes I hear the compiler's thoughts as it comes across this:
1. The dev explicitly told me this value would be optional.
2. I have a record from the database, and I see a 'nil' in the column for this value.
3. That's not "None" , Oh my god, I need there to be an explicit "None<CustomType>".
4. Shit shit shit shit. Oh my god.
5. PANIC!4 -
Compile and debug program, no local variables show.
Clean project, debug program, build errors.
Thanks Mr. Compiler -
Wait, I HAVE to use double quotes when referring to RiotJS tags within JS, otherwise the in-browser compiler just spits out errors? FU
-
Stop giving us assignments that are meant to remake old stuff (like "construct a Turing Machine Simulator" or "Make a compiler").3
-
Sometimes, GCC is cool with you, warn you for every no-return int function or little parenthesis which could make the code easy to read.
And sometimes, you can get the fuck off, because initialized variables are no big deal. Really ... -
What the ****? I added a call to one method, how the hell it could broke it so badly?
> Compile failed with 1163 errors; see the compiler error output for details.1 -
Learned to program by shutting myself in my dorm room with a Shareware Modula-2 compiler and a well-written tutorial.
-
Java is to JavaScript as car is to carpet, but check this out: https://developer.mozilla.org/en-US.... Rhino is a JS -> JVM bytecode compiler. That’s pretty neat!3
-
Check out this link i found. Tell me what u think.
https://twitch.tv/videos/178393926/
Guy posts reads related to computing.
Also im wondering y all my posts have 17 likes. Every single one. -
HELP
Why does gcc fails to compile?
main.c:10:1: error: unrecognizable insn:
10 | }
| ^
(insn/f 18 4 19 (set (mem:SI (pre_dec:SI (reg:SI 1 bx)) [0 S4 A32])
(reg:HI 0 ax)) "main.c":8:1 -1
(nil))
during RTL pass: shorten
main.c:10:1: internal compiler error: in insn_default_length, at insn-attrtab.c:221
0x61f93f _fatal_insn(char const*, rtx_def const*, char const*, int, char const*)
../../gcc/rtl-error.c:108
0x61f95b _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
../../gcc/rtl-error.c:116
0x742291 insn_default_length(rtx_insn*)
/home/user/Documents/gcc/build-d16i/gcc/insn-attrtab.c:221
0x9ee716 shorten_branches(rtx_insn*)
../../gcc/final.c:1118
0x9ee78f rest_of_handle_shorten_branches
../../gcc/final.c:4753
0x9ee78f execute
../../gcc/final.c:47828 -
Wish the Objective-C compiler had better type checking. There's no reason for it to not error out when I'm migration a property from one type to another.
-
!rant
If you're into compilers AND AI, check out Glow Compiler.
https://arxiv.org/pdf/...
Explains the idea well, casual read, almost no math just clean code examples and lots of easy reading explaining the ideas and theory behind it.
You can find the project at https://github.com/pytorch/glow and and also https://ai.facebook.com/tools/glow/1 -
Theres a kid competicion on infocmatics, I will take part of. I have built a compiler, and wanted to have an eye catcher for my project-presentationstable. Any good Ideas? IT schould be understandable by non-tech people3
-
The compiler is like a math teacher marking your script except you don't get to pass and proceed until you get a perfect score.1
-
My programming class kinda sucked. Here's why.
1. They taught C++. To students who had never seen a line of code in their lives. The language with 90+ keywords.
2. The teacher. We had to use switch statements to do something. It took around 300 loc. I used an array and shortened it to 5. He took some points away for not doing it correct. IT LITERALLY WORKS THE SAME AND IS SHORTER. This was not the first time I had shortened something/made it more readable and been docked points on the assignment.
3. Commenting. He told us to comment as much as possible, which is not correct. Comment what needs commenting. Not everything.
4. The compiler. We worked on windows with an online compiler. He decided teaching us to set up a compiler was too hard. We used onlinegdb, which isn't inherently bad. However, onlinegdb is based on Linux. He compiled our programs with a windows compiler.
Maybe these are just problems because I've programmed before that, but I still think they are red flags. What do you think?3 -
At work we are currently planing to migrate our source code to the latest compiler version. But I don’t think that we will migrate everything from the old version to the new version this time. Then we have to use three different compiler versions at the same time, with three different IDE versions. And how many VMs are you using at work?
-
A compiler and assembler set for bootstrapping the whole gcc Code tree and cross compiling each level1
-
Is anyone frustrated like me with ES6 and the frameworks using typeScript? Are we supposed to code through a compiler for the next 10 years?1
-
I am working on a java project and I want to know where are compilers and interpreter stores machine code? According to this post https://interviewbit.com/blog/... Compilers store machine code in the disk storage but not an idea about the interpreter. Any suggestion5
-
I once made a minimal basic compiler in JavaScript. Inspired by shiffman's work to make a logo compiler in js .
https://babanomania.github.io/JS-BA... -
Today my 16 yr old cousin asked
me...
"If the compiler knows that..
"semicolon is missing at line no 16
in Helloworld.java", then why it can't
simply put a';' there instead of
telling us..."
He got a point.3 -
Note to self:
Variadic C++ templates combined with obfuscated combinations of stl containers put you on the right path to be a "compiler message decryption" archmage.
Especially when you use MSCV... -
Hello All, Can anyone know how the java compiler works? Currently, I am using this online compiler to execute the program https://interviewbit.com/online-jav... and want to know the process of this online compiler and its working4
-
I just created a new_file.rb in a crystal project and didn't notice until the compiler complained. I probably offended the compiler.
-
Do only developers have to do such tasks like Cinderella sorting out the lentils from the ashes?
Poor co-workers
* who had to program against the undocumented closed, ever changing API from Exchange Server, supporting over a decade old versions
* who had to compile a c++11 compatible clang or gcc on some sick old OS and almost got it working with compiling a fresher gcc with one that got stuck in one of the build stages. -
*Solve this question*
*Me: Compiler?*
*Question- Fek just solve me :v*
*Me: GCC would give correct ans*
*Question- Fuck no, Mingw ;_; *
#nubCProgrammer ;-;
Sed Loif3 -
What is your favorite programming language to implement algorithms and data structure?
Or to be more specific, if you write interpreter and compiler, what is your choice of tool?5 -
When I copy some lines of my source code into other functions but getting desperated when compiler says something like "...'Double' but 'Array' was expected" because I forgot to change the value for the functions.
-
Just seen F# and really like it. Sadly its compiler throws all kinds of errors on Linux with Mono because for some stupid reason it uses the Mono 2.0 DLLs...undefined lots of debugging tomorrow whyyy it said that it ran on linux all will be functions hail functional programming
-
> pass optimization flags to the compiler for inlining small functions even in debug builds
> runtime performance is over 4 times worse
Ah, it's that kind of Friday -
Agrrr... I hate to do code review of that shit! I hate to write docs for that shit! I hate to talk to PM! I hate dumb developers!
But there are several things about programming that make me calm and happy. When I'm thinking about one of those things I just sit and smile.
One such a thing is the process of upgrading gcc from sources.
1. Build new gcc with old gcc.
2. Build new gcc again with newly built gcc. Call this build A.
3. Build new gcc once more with build A. Call this build B.
4. Compare that A and B are exactly identical to the last bit.
5. You now have self reproducing compiler.
That is just beautiful and literally gives me chills.