Тёмный
louisb0
louisb0
louisb0
Подписаться
Комментарии
@amrabdellah6769
@amrabdellah6769 5 часов назад
I really like these compiler videos. And you should improve sound in the video it is usually low.
@louisb0-yt
@louisb0-yt 3 часа назад
Glad to hear - as in poor quality, or too quiet?
@HelloworldXY32
@HelloworldXY32 2 дня назад
I always wondered; are compilers typically written in C/C++? For some reason I expected it to be done in Assembly. Also, have you thought about trying it out in Rust?
@louisb0-yt
@louisb0-yt 2 дня назад
It really depends. The biggest compiler backend, LLVM, is written in C++. The v8 engine which runs a lot of the worlds JavaScript (while not a compiler, but an interpreter) is also written in C++. A lot of big languages, e.g. Go, write their compiler first in C/C++, then re-write it in their own language. I'm not too sure the trade-offs made or why the creators chose these. Assembly would take forever to write :)
@scarysticks66
@scarysticks66 2 дня назад
finally someone doing something in cpp thats not a game!
@InvictusForever
@InvictusForever 2 дня назад
Interesting stuff!
@sikepoop430
@sikepoop430 2 дня назад
What are you doing? What kind of project are you working on?
@louisb0-yt
@louisb0-yt 2 дня назад
A compiler - it's the piece of software that translates your code in text into instructions for the CPU
@vladvladov3117
@vladvladov3117 3 дня назад
Consider emitting machine code in an ELF executable directly instead of piping assembly to GNU assembler. It's actually not that much harder to do and then you have an "actual" end-to-end compiler.
@louisb0-yt
@louisb0-yt 2 дня назад
I really like this idea. I've been wanting to learn about the structure of executables. I'd just need to see how much complexity is introduced with syscalls, it's nice to emit just 'call printf'
@vladvladov3117
@vladvladov3117 День назад
@@louisb0-yt On linux, it's actually easier in my opinion to directly emit syscall instructions (move syscall number + argument registers + 0F 05) than populate the symbol table for libc functions like printf. Once you are below libc, you can actually innovate (e.g. GoLang's goroutines). Please don't make yet another llvm wrapper with a standard library that wraps libc. The world has enough of those.
@niclassic8322
@niclassic8322 4 дня назад
Really cool video series, keep it up! I enjoy the long, uncut sessions 👍🏼
@harrisondiambrosio9729
@harrisondiambrosio9729 9 дней назад
what window manager are you using
@louisb0-yt
@louisb0-yt 8 дней назад
i3 :)
@swellen_king
@swellen_king 9 дней назад
Which is your window manager? Sway or i3
@louisb0-yt
@louisb0-yt 9 дней назад
I've been using i3 for most of this year. I've found I only need to remember about 3-4 different keybinds total. It takes a bit of getting used to though :)
@swellen_king
@swellen_king 9 дней назад
@@louisb0-yt yes, i also experienced some friction while remembering i3 keybindings, btw i will encourage you to continue uploading such raw videos, they are good and helpful for many.
@Impromptu21
@Impromptu21 10 дней назад
keep it up bro
@believeinkarma939
@believeinkarma939 10 дней назад
I'm also new to programming.. Keep it up..👍🏻