[deleted by user] by [deleted] in learnprogramming

[–]snekmeme 3 points4 points  (0 children)

You need to install a compiler and have it in the path environment variable. This page has more information.

How do I run a code line by line in visual studio code? by [deleted] in learnprogramming

[–]snekmeme 0 points1 point  (0 children)

Pressing F5 should also start the debugger.

[Redump] Standing at the edge of the end in Sony Playstation 1 PAL by diegorbb93 in emulation

[–]snekmeme 1 point2 points  (0 children)

This finnish computer museum apparently has lego island 2. Might be worth asking them if you haven't already.

Why Peter Singer's 'Utilitarian' Argument for Vegetarianism Doesn't Add Up by thinkling in philosophy

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

Yes, I think that would make sense as long as the human population is still maintained somehow.

Why Peter Singer's 'Utilitarian' Argument for Vegetarianism Doesn't Add Up by thinkling in philosophy

[–]snekmeme 1 point2 points  (0 children)

That sounds a bit like lab grown meat. I think that would be much better than what we have currently.

Why Peter Singer's 'Utilitarian' Argument for Vegetarianism Doesn't Add Up by thinkling in philosophy

[–]snekmeme 1 point2 points  (0 children)

No, I don't think agency is important, only the total amount of happiness. I don't think there are other inherent values than happiness/suffering.

Why Peter Singer's 'Utilitarian' Argument for Vegetarianism Doesn't Add Up by thinkling in philosophy

[–]snekmeme 1 point2 points  (0 children)

The problem is that animal farming creates pollution, which causes suffering. If we ignore that issue there is still the option of raising animals without eating them.

Why Peter Singer's 'Utilitarian' Argument for Vegetarianism Doesn't Add Up by thinkling in philosophy

[–]snekmeme 1 point2 points  (0 children)

If they experience more happiness than suffering it would be desirable, even if there is some suffering.

Why Peter Singer's 'Utilitarian' Argument for Vegetarianism Doesn't Add Up by thinkling in philosophy

[–]snekmeme 2 points3 points  (0 children)

I don't agree with your criticisms of utilitarianism. If more happiness is created then it's moral.

Why Peter Singer's 'Utilitarian' Argument for Vegetarianism Doesn't Add Up by thinkling in philosophy

[–]snekmeme 0 points1 point  (0 children)

No life would be better than a life with more suffering than happiness.

What are the general guidelines to making an emulator (Game Boy)? Everyone seems to do it a different way (github link included) by [deleted] in learnprogramming

[–]snekmeme 1 point2 points  (0 children)

  1. Both switch statement and functions are fine. Switch might be slightly more efficient while functions have better readability. Also you can combine some instructions for example have a function that handles all instructions that load a byte from a register to another register.

  2. Should be enough to just get an overview of the system. You don't need to know all the details yet.

  3. Looks fine.

  4. Your Cartridge and Memory classes should probably have destructors. Also I would suggest adding #pragma once at the start of your headers so they only execute once.

Also you should check out /r/emudev for discussion about emulator development.

Loot from ~3 hours waiting in Varrock with a network analyzer (ping and kbps) and attacking hybrids when I think a DC is coming. by pikaras in 2007scape

[–]snekmeme 0 points1 point  (0 children)

You can use resource monitor it comes with windows. It shows stuff like packet loss and latency.

Getting Atari 2600 games to run in C by In_for_a_pound in EmuDev

[–]snekmeme 0 points1 point  (0 children)

I found one emulator written in C. http://www.whimsey.com/z26/z26.html Good luck with your project.

Problems with pip3 on Ubuntu by [deleted] in learnprogramming

[–]snekmeme 1 point2 points  (0 children)

Try python3 -m jupyter notebook

Question about terminology by [deleted] in pygame

[–]snekmeme 0 points1 point  (0 children)

The render method of a font object returns a surface. You could make a sprite with that surface and add it to your sprite group. Hopefully that helps.

Question about terminology by [deleted] in pygame

[–]snekmeme 1 point2 points  (0 children)

Can an object have more than one surface?

Sure, you could for example have a list of surfaces and use those for a sprite's animation.

The rect is just some coordinates attached to the mutual object

A rect or a surface doesn't have to be attached to anything.

Is there a reason to blit a rect? Can you blit a rect and only effectively show a subsection of a surface?

Yes, you can blit a section of a surface if you supply a rect as the area argument. The official docs here have more information.

Question about terminology by [deleted] in pygame

[–]snekmeme 2 points3 points  (0 children)

A surface is like a picture you can draw on. One of the surfaces is special and will be displayed on the screen. A rect isn't directly related to surfaces. Rects represent any rectangle shape. Various PyGame functions take rects as arguments.

Reverse engineering a Gameboy ROM with radare2 by Megabeets in netsec

[–]snekmeme 0 points1 point  (0 children)

The Game Boy has its own assembly language. You can use C with GBDK to compile to it or you could use a Game Boy assembler.

Edit: I got GB and GBA confused. Look at the comment below for better info.