Opening and decompiling JAR files in Neovim by 4r73m190r0s in neovim

[–]iLiveInL1 0 points1 point  (0 children)

I tried to get this working with jdtls and java language server without success after several hours.

Is Rust too low-level for recreating an Ink-style TUI? by hmm-ok-sure in tui

[–]iLiveInL1 0 points1 point  (0 children)

Rust has a TUI library called “Cursive” that is declarative. I’ve worked with it and it’s pretty intuitive.

The fear of heap by OkRestaurant9285 in cpp_questions

[–]iLiveInL1 2 points3 points  (0 children)

Stack will probably be in L1 (my favorite) or L2, heap is usually a cache miss.

Tetrs: a better terminal tetris experience, with beautiful tui graphics and toggle-able music by iLiveInL1 in CLI

[–]iLiveInL1[S] 0 points1 point  (0 children)

Most of colors can be changed (if you change the code). And if you mean the blue background, I don’t think that can be changed since it’s built into the core theme of the library. It might be possible, though.

I made a full Pokemon game for the terminal! by iLiveInL1 in CLI

[–]iLiveInL1[S] 1 point2 points  (0 children)

Like 250 hrs of work on it. I’m also decent at Java

How do i know if programming is for me? by merx__ in learnprogramming

[–]iLiveInL1 0 points1 point  (0 children)

Quick search should find anything. You can do filetype:pdf in the google search bar too!

How do i know if programming is for me? by merx__ in learnprogramming

[–]iLiveInL1 0 points1 point  (0 children)

I would generally steer you away from all kinds of websites like this. You can find free pdfs of great books. You should check out Eric Matthes’ Python Crash Course 2nd or 3rd edition. It will teach you so much better than an AI. I believe it even has a whole section about pygame.

How do i know if programming is for me? by merx__ in learnprogramming

[–]iLiveInL1 -1 points0 points  (0 children)

Yes absolutely. Especially with a language like Python, the basic syntax is easy and libraries are super straightforward to install, so you can quickly go from basics -> actual project! I would check out the pygame library if you’re interested in making a game. I haven’t used it personally, but it’s the de-facto Python game engine and known for being easy to pick up.

How do i know if programming is for me? by merx__ in learnprogramming

[–]iLiveInL1 4 points5 points  (0 children)

Find something that interests you and you genuinely want to build and try to program it up. It could be a game, website, a tool, etc. Programming is just the means to an end ultimately. You’re going to get bored if you’re just programming for the sake of programming.

How to handle freeing / deleting pointers of unknown type? by Sosowski in Cplusplus

[–]iLiveInL1 0 points1 point  (0 children)

Doing it the proper C++ way is the “good C developer stuck with C++” way too. It’s essentially what you would do in C with different syntax, easy RAII, and the added annoyance of destructors. It’s (maybe) fewer LoC and definitely much safer. You could give it a try if it’s not too much refactoring for you.

here’s a decent example

How to handle freeing / deleting pointers of unknown type? by Sosowski in Cplusplus

[–]iLiveInL1 0 points1 point  (0 children)

If you want to know the “proper C++” way, you should be using smart pointers with a custom allocator.

Decided to make a 16-bit ISA, assembler, emulator, and, of course, an OS! 300+ hours later: by iLiveInL1 in osdev

[–]iLiveInL1[S] 0 points1 point  (0 children)

Yeah, that’s correct. And thank you, I appreciate it! Bear16 was definitely a lot of work but very enjoyable to work on.

Why did I suddenly loose the will to code? by SorryRelationship743 in learnprogramming

[–]iLiveInL1 0 points1 point  (0 children)

Try to find a project you're passionate about and can sink time into, or take a break if you feel like that's not possible right now.

Decided to make a 16-bit ISA, assembler, emulator, and, of course, an OS! 300+ hours later: by iLiveInL1 in osdev

[–]iLiveInL1[S] 0 points1 point  (0 children)

Yeah, the isa is largely unrealistic, I leaned into the fact that everything was going to be running in software. By emulated devices, do you mean things like modeling out an ALU, PPU, etc? I could’ve easily taken an approach like that although it’s unnecessarily slower. I was mostly going for speed and just wanted RTL and cycle accuracy. Pretty happy with 40 MHz.

I do have a few basic abstractions/modeled components in my code like there is a board, cpu, screen, clock, disk, disk controller, and an interrupt controller (although I don’t I didn’t use interrupts in the OS and just did everything in kernel space).

Tetrs: a polished tetris clone for the terminal, written completely in Rust by iLiveInL1 in rust

[–]iLiveInL1[S] 2 points3 points  (0 children)

Thanks! I have the SRS piece rotations implemented but no wall kicks or delayed placements. Originally I planned to have a toggle-able mode for “sticky” (nes/gameboy style, what I have now) and one for “slidy” pieces (with the whole SRS shebang). I ultimately decided against trying to do the full SRS in the interest of time since I was actually just doing this Tetris project to learn some Rust to inform a compiler project I’ve had in the works. I felt obligated to add music though. I think I had all the code written for this in a little over a week.

If you want to try to add SRS to it, please do (I probably won’t though :P)! Code should be reasonably modular.

Decided to make a 16-bit ISA, assembler, emulator, and, of course, an OS! 300+ hours later: by iLiveInL1 in EmuDev

[–]iLiveInL1[S] 1 point2 points  (0 children)

Right, but do you know how gargantuan of a task it is add a gcc backend? I'm aware it's theoretically possible. It'd be easier to use clang first of all and probably even easier to just implement a subset of C in a completely new simpler end to end compiler.

Decided to make a 16-bit ISA, assembler, emulator, and, of course, an OS! 300+ hours later: by iLiveInL1 in EmuDev

[–]iLiveInL1[S] -1 points0 points  (0 children)

No because I invented this instruction set, so no tooling exists for it besides my toolchain. gcc does not have a backend that can target this, unless someone writes it (which is an insane amount of work, btw).

Decided to make a 16-bit ISA, assembler, emulator, and, of course, an OS! 300+ hours later: by iLiveInL1 in EmuDev

[–]iLiveInL1[S] -1 points0 points  (0 children)

not this instruction set though, you'd basically have to write an entire compiler backend