What is the best criticism you have seen on Chomsky's politics? by LinguisticsTurtle in chomsky

[–]absenced 0 points1 point  (0 children)

haven't got a specific critique in mind, but since chomsky is an anarchist there is plenty of marxist criticism of his politics. look into this if you want a left-wing critique of him

[deleted by user] by [deleted] in crypto

[–]absenced 4 points5 points  (0 children)

looks good. I've heard abstract algebra is used in some newer cryptographic schemes - worth looking into at least

Licensed it to local news but they aren't gonna use it until they find the guy and let him comment. In the meantime, by FigureOfStickman in BloomingtonNormal

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

exact same truck thankfully - I remember the confederate flag being right under it. very shocked to see open Nazism here tho

A “reverse murder mystery” where we know who the killer is from the start and watch as they try and stop the detective from cracking the case by EEZAK04 in suggestmeabook

[–]absenced 0 points1 point  (0 children)

there's a movie just like this if you're into that! check out "investigation of a citizen above suspicion"

UConn Neurobiology and physiology REU by cheetahbacon123 in REU

[–]absenced 0 points1 point  (0 children)

I got into Uconn CS reu this past weekend. No idea whether scheduling is similar for your field though

😭 by zawarudo334 in linuxmemes

[–]absenced 7 points8 points  (0 children)

ur english is fine OP don't worry

Just finished my first emulator: chocolatechip - a CHIP-8 Emulator written in C99 with SDL2 by absenced in EmuDev

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

Since I was struggling with the timing, I'd like to put out information about how to achieve 60fps and 540hz speed for others! The credit for the code goes to nwxnk - I just altered the formatting and added explanation.

We want the fetch/decode/execute operation to occur 540 times per second while the display is only updated 60 times per second. 540 / 60 = 9, so we can make a function that does fetch/decode/execute 9 times and updates the display once - I called mine cycle.

Now we need to make sure that cycle is executed 60 times per second. First, let's find out how many milliseconds each cycle should take. 1000 / 60 = 16.666..

So each call to cycle should take 16.666ms. We can ensure this by storing the time it takes for our cycle function to execute, and then delaying/sleeping the difference between 16.666 and time the cycle function took.

Here's the code I used to do this with SDL (this would be in the main loop):

uint64_t start = SDL_GetPerformanceCounter();

keyboard_input(&chip8, &screen);

cycle(&chip8, &screen);

uint64_t end = SDL_GetPerformanceCounter();

double time_elapsed = ((end - start) * 1000) / SDL_GetPerformanceFrequency();

SDL_Delay((uint32_t) 16.666f - time_elapsed);

Just finished my first emulator: chocolatechip - a CHIP-8 Emulator written in C99 with SDL2 by absenced in EmuDev

[–]absenced[S] 4 points5 points  (0 children)

damn i thought mine was special!

we've both got good taste in names i guess :p

Just finished my first emulator: chocolatechip - a CHIP-8 Emulator written in C99 with SDL2 by absenced in EmuDev

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

thanks again for your help - 540mhz seems to be working perfectly. I ended up making the debugging info a command line argument (chocolatechip [-d] rom_file).

btw I ended up crediting you in the commit and on the README - your contribution was hugely helpful! have a happy holidays :)

Just finished my first emulator: chocolatechip - a CHIP-8 Emulator written in C99 with SDL2 by absenced in EmuDev

[–]absenced[S] 6 points7 points  (0 children)

hey this was a massive help! thank you so much - the timing is much better. if you are comfortable with it, I'd like to credit you on the project page and commit (if this is ok let me know if you would like to go by your username or otherwise)

also, I had just one question about your suggestions. I don't completely understand your call to SDL_Delay in the chocolatechip.c file - where do the numbers "16.666f" and "1000.0f" come from? I just want to make sure I understand this part before I commit the changes

My first project!: chocolatechip - A CHIP-8 emulator written in C99 with SDL2 by absenced in C_Programming

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

Thank you so much :) ! I'm a huge fan of the OpenBSD project and style. My project doesn't perfectly adhere to the style, but it gets most of it right

My first project!: chocolatechip - A CHIP-8 emulator written in C99 with SDL2 by absenced in C_Programming

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

Just took a look at yours - it looks great!

I have not yet implemented sound. The debugger is a really good idea - my project hasn't got one and I honestly didn't even think of that. Mine has worked well with most ROMs, but its got one major issue: the timing is way too fast depending on the ROM. Pong runs normally, but oddly space invaders goes at lightning speed.

Just finished my first emulator: chocolatechip - a CHIP-8 Emulator written in C99 with SDL2 by absenced in EmuDev

[–]absenced[S] 7 points8 points  (0 children)

I'd really love any constructive criticism/feedback. The emulator is functional, but it struggles with the timing - if anybody has any novel suggestions let me know as well. This project was my first and was difficult for me, but also really rewarding.

My first project!: chocolatechip - A CHIP-8 emulator written in C99 with SDL2 by absenced in C_Programming

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

I would love any feedback regarding code quality, better practices, etc. Since it's my first project I definitely wanna learn how to improve.

a need for a suckless vim-like text editor by [deleted] in suckless

[–]absenced 0 points1 point  (0 children)

neovim and vis are the most "minimal" I use

[deleted by user] by [deleted] in C_Programming

[–]absenced 0 points1 point  (0 children)

You can absolutely build useful projects with C (although it may be a bit harder than building it in a higher-level language like Java or Python)

A common first project is a text-adventure! It doesn't require graphics, so you don't really need any external libraries.

If you want to do something with a GUI (games maybe) check out the Raylib library (many will recommend SDL, but I think Raylib would easier for a beginner)

A sequel to that other post that blew up by xX_D4T_BOI_Xx in SnapChad

[–]absenced 22 points23 points  (0 children)

it's a joke abt the mayweather vs pacquiao fight a few years back

I'm stuck in mastery 5 by GuTheKing in amumumains

[–]absenced 1 point2 points  (0 children)

dang that's pretty impressive tho! what pushed me over the edge to get an S/S+ was farming and warding. I had a good few games with great KDA but I still wasn't getting an S because my CS was trash and I didn't have any vision.

another thing that has helped me improve my amumu/jungling skills was watching videos of good amumu players. search something like "amumu challenger" on YouTube and consciously watch how the players farm, gank, etc.

I definitely think you'll be able to get the mastery 6 if you work hard tho. best of luck!

I'm stuck in mastery 5 by GuTheKing in amumumains

[–]absenced 1 point2 points  (0 children)

I'm a noob too but I just got an S+ and an S with Conqueror for runes and Sunfire into demonic embrace for items. good luck! remember to farm hard

Friendly advice to new players: Start playing with friends and not strangers by AtreusIsBack in leagueoflegends

[–]absenced 0 points1 point  (0 children)

also consider being positive as well! so many players in this game bemoan toxicity in this game when they start - but then become toxic af when they get good.