Writing an assembler for my Compilers course.
Professor says we can use any language we want except Ruby.
What should I write it in?
Writing an assembler for my Compilers course.
Professor says we can use any language we want except Ruby.
What should I write it in?
Other urls found in this thread:
flint.cs.yale.edu
ffconsultancy.com
docs.julialang.org
twitter.com
C++
Python
ruby
MATLAB
English :^)
lisp
>any language we want except Ruby.
Wonder what abomination got shat out for him in Ruby that caused him to ban it.
OCaml
Julia.
Then the prof will ban that as well.
Brainfuck
This, it is the best for such things
Javascript
PHP
x86 assembly
Assembly.
Absolute madman
Powerpoint 2003
Write a C compiler in ruby and use that compiler to compile a ruby compiler
Haskell.
ruby.
Clojure. Bonus points if you use instaparse library to solve the whole thing in a couple dozen lines.
Binary
depends though honestly. I know a few useful tools in javascript I could use to shit out a basic parser/compiler pretty quickly, same with ruby. ANTLR is a thing as well as flex/bison too.
guys, how do I write my own compiler? I'm too lazy to read whole dragon book
English
OP here.
A few people in class are doing it in Rust and Python. The rest are all doing Java.
I'm somewhat leaning towards writing it in obscure language just to make the project more interesting.
I'm currently considering FORTRAN.
Powerpoint, it is turing complete after all.
Please don't. I'd rather write a fortran transpiler in haskell or scala before actually writing it in fortran. For maximum shittyness write a super shitty ruby transpiler
CSS is also turing complete
also use erlang or elixir
>doing projects because your professor told you to
Professional: C/C++
Memes: Haskell
Want to one-up your classmates but still be semi-professional: Kotlin
If it really is just an assembler rather than a compiler, you can probably use whatever language you want since assembly and machine code have a pretty close relationship.
You should consider OCaml like others said if it's actually a full blown compiler. It's fast, has a great type system and great recursion support.
flint.cs.yale.edu
But if you think it would take too much time to learn the functional paradigm and syntax, then use an imperative language.
ffconsultancy.com
What kind of skin disease does this man have?
Seing how he's covered in the number of the beast and all his zoomer fans are tattooing it too, I'm pretty sure he's the literal antichrist.
Forth, if you want to keep things easy
Looks like a chimp who found the drawer with magic markers.
Last semester I failed my Formal Languages so I'm doing it again this semester. Except my new professor is kind of shitty.
Is that course really that important for Compilers? I might take Compilers on Spring 2019.
Yeah, he does look harmless doesn't he. Until you look into him and find out that he raped a 13 year old and then encouraged others to gang rape her afterwards while he filmed it and sent it around on Snapchat, almost like it was some sort of satanic initiation ritual.
Google it if you don't believe me.
C
>Looks like a chimp who found the drawer with magic markers.
based
be madman and write it in assembly
Write it in an excel macro.
Or perl
spanish
If he's the antichrist, the rapture will last only an hour
6502 Assembly
/thread
SCUM GANG
Write it in machine code
iffy nigga detected
You need an IQ in the double digits to post in here.
wish I had a button to instantly vaporize every soundcloud/meme "rapper" du jour ever
Write it in Crystal to blow him the fuck off.
verilog
POP THESE NIGGAS LIKE A WHEELIE NIGGA
YOU A SILLY NIGGA
COBOL :^)
Elixir
Visual Basic 6
Do it faggot
>Professor says we can use any language we want except Ruby.
not a Rubyfag but why specifally not Ruby?
what I like about Julia is the fact that I can write \delta+tab to get a delta variable in the REPL
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.5.2 (2017-05-06 16:34 UTC)
_/ |\__'_|_|_|\__'_| |
|__/ | x86_64-linux-gnu
julia> δ = e^pi
23.140692632779267
SCUUUUUUUUUUUUUUUUUUUUUUUUUUMMMMMMMMMM GAAAAAAAAAAAAAAAAAAAANNNNNNNNNGGGGGGGGGGG
COBOL
x86 assembly targeting a Pentium 3 and windows 98 compatibility.
writing a compiler is advanced. You aint doing shit unless you study for it or are exceptionally autistic and write you own language while your at it.
FORTRAN is love if you're crunching numbers are a big iron. I like it becasue my grandfather used it. He used to let his personal code compile at work over night back in the day. shits neat.
Just use ply
That guy sure is nr. 69.
HOLY C
Write it in assembly using nothing but mov commands.
>I like it becasue my grandfather used it.
My dad used it. We still have his antique FORTRAN book.
Go to bed soon, Son.
Haskell, if you know it.
very yes to ocaml
you'll spend the first week learning ocaml, and the next hour writing the compiler
>not writing an assembler in the same assembly language that you're writing it to assemble
If you're at this point in your studies then your professors already taught you about bootstrapping compilers, get busy OP
x69 assembly
C
C
Why is Ruby banned?
1. A language you know well
2. A language historically used for such a task
3. A language that is easy to write in
The answer should be C.
I'd tell you but only if you promise to shoot the rust using students dead
Rust
red and pilled
basado y rojoempastillado
so what language did you pick?
SCUUUUUUUUM GAAAAAAAAAANG
mount&blade scripting language
kek this.
Prolog
Whitespace
GameMaker
Who the fuck is this abortion and why is he a meme?
*SNAP*