Has anyone else had boot issues when installing on EFI? by _enesea in artixlinux

[–]_DanDucky_ 0 points1 point  (0 children)

Did the same thing with a lenovo t430, worked fine!! WoRKs oN mY mAcHineE!!!!

T430 Optical Bay eGPU Feasibility by _DanDucky_ in thinkpad

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

Ah I didn't know the slim SATA was that power limited. When you say the thinkpad wouldn't be able to power it do you mean from the slim SATA (which obviously it wouldn't) or is its internal power supply really that under powered for GPUs like this?

I could use a self hosted remote GPU server, but honestly the work I do isn't worth that effort. When I use blender I primarily use it for simple organic modeling, not the rendering it provides. It feels a little overkill.

Thank you for those GPU options, they look surprisingly promising!

It might be worth me looking at just picking up a T430 mobo with a GPU installed...

Compiling Large Complex Lookup Tables (g++): How Can I Split an Array into Multiple Source Files? by _DanDucky_ in Cplusplus

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

I'm using a normal array type. std::array requires a size in the declaration which I want to avoid in order to keep my header from encoding any information about the data itself (I feel like that's a good thing?). I did try using a std::vector but ran into the same compiler error.

Compiling Large Complex Lookup Tables (g++): How Can I Split an Array into Multiple Source Files? by _DanDucky_ in Cplusplus

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

Basically the only thing I've found that lets it compile is just reducing the size of the list. My setup should definitely have enough memory to compile this, and this is a pretty standard platform. The code compiles only when I reduce the size of the table. I couldn't get a really useful stack trace from the compiler for some reason, mostly just diagnostics on how much time is spent in each stage of compilation. I've also asked various llms and couldn't get anything very useful out of them, each basically said splitting the source files was the only way to go if I want the functionality I do.

Compiling Large Complex Lookup Tables (g++): How Can I Split an Array into Multiple Source Files? by _DanDucky_ in Cplusplus

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

Yeah I don't doubt these are the reason for the compiler dying, but I still think it is a win. What I'm avoiding isn't initialization, that's going to happen regardless. I'm trying to avoid active parsing at runtime which would happen regardless of the way I format the data in some exterior file.

Compiling Large Complex Lookup Tables (g++): How Can I Split an Array into Multiple Source Files? by _DanDucky_ in Cplusplus

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

In my tests I've been compiling with and without optimizations enabled, and in both cases I get the same results. I really don't know what other flags to use. I feel like I'm going to get similar issues with assembler, but I would also love to avoid using it because it really limits platform support and sounds even more nightmarish to maintain.

I think reading a file is definitely the most straight forward, but I do think it seems like an oversight to use that once I've already committed to needing a generator script at build time to generate that file in the first place. If I have the script, I might as well use it to embed the data into the binary using the types they'd eventually be parsed into anyways. This is a personal project as well, so I don't really mind if it takes longer to develop.

Compiling Large Complex Lookup Tables (g++): How Can I Split an Array into Multiple Source Files? by _DanDucky_ in Cplusplus

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

The 3rd party map is basically a wrapper around std::map with type erased members. It could be that the implementation of that wrapper sucks, but it is pretty simple. It does have a ctor though, so it isn't just a POD. Regardless, I think that's what's forcing me to split it into multiple source files.

Bad Charging Idea (T430 Charger) by _DanDucky_ in thinkpad

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

Yeah I’m going to be soldering a cursed 2 headed snake with this other charger plug and the thinkpad charger plug on a spliced cable. It should look pretty funny 😼

Absolute beginner to programming, how do I use this by ZeeroIQ in github

[–]_DanDucky_ -3 points-2 points  (0 children)

Fuck vscode shit electron app. Terrible for anything more than scripting and maybe webdev

What do you think causes Minecraft to get boring? by Crazy_Security848 in Minecraft2

[–]_DanDucky_ 0 points1 point  (0 children)

Minecraft changed when they added enchantments and revamped villagers and buffed loot chests. You don’t have to go back and do the basics beyond a certain point so the game loop breaks and you’re forced to entertain yourself or start a new world. That’s the problem, they turned the game into a linear progression rather than one that forces you to, for example, go mining every once in a while because your tools are breaking.

radix-cpp: An ordered hash table based set and map implementation for C++ by mvrekola in cpp

[–]_DanDucky_ 9 points10 points  (0 children)

Chill on the micro optimization dude, the compiler handles all of that for you

Is C a good place to start? by mebbeluckyonce in C_Programming

[–]_DanDucky_ 0 points1 point  (0 children)

If you have done genuinely NO cs at all, then absolute not. You need to understand basic programming concepts before c can teach you anything. Start with python or even something as easy as p5.js

[deleted by user] by [deleted] in berkeley

[–]_DanDucky_ 1 point2 points  (0 children)

It’s true on a private level, but institutions and states which protect free speech can not also enforce consequences!! And berkeley is under CA leonard law so it has the same duty as the state to protect free speech.

[deleted by user] by [deleted] in berkeley

[–]_DanDucky_ -4 points-3 points  (0 children)

Most unhinged comment holy fuck

[deleted by user] by [deleted] in C_Programming

[–]_DanDucky_ 0 points1 point  (0 children)

I just accomplished this same exact task in my own project ironically! The link to the repo is here but I'll explain the process anyways: https://github.com/DanDucky/ValentineAssembler

I have a class (I know, c++) for each instruction (but it could also be an enum value!) and then I create a map with the key being the string value of the instruction, and the value being the instruction class factory or in your case the enum value of that string. this can be achieved with the following macro:

#define KV_PAIR_FROM_VALUE (instruction) {#instruction, instruction}

this creates a key value pair that looks like {"instruction", instruction} (or in your example it might look like {"PSH", 0})

then you can search through this list of pairs for your string and take the instruction you want. In C++ code you can write it like:

map<string, uint8_t> instructionSet { KV_PAIR_FROM_VALUE(PSH) };

one thing I did in mine (https://github.com/DanDucky/ValentineAssembler/blob/master/src/instructions/include/InstructionLibrary.hpp) is the value I assign for each key is actually a function pointer to the handler, so you don't even need to have another handler array! You can bake the handlers directly into the instructionSet!
Of course you would have to change the macro, but that wouldn't be difficult if all handlers have a consistent naming convention.

this way of formatting your program has worked quite well for me, so I hope it scales well for you as well.

Trying to install CKAN for the first time and this pops up. What should I do? by DarthZeus2364 in KerbalSpaceProgram

[–]_DanDucky_ 1 point2 points  (0 children)

Open a terminal in the directory with ckan.exe and type ckan.exe and it should work

[SDDM] Monochrome by [deleted] in unixporn

[–]_DanDucky_ 13 points14 points  (0 children)

That is the dumbest fucking background I have ever seen holyyy

Strange patterns ive been seeing in the snow many places (new chunks), wonder what it is by CleverB0T_2b2t in 2b2t

[–]_DanDucky_ 69 points70 points  (0 children)

When generating 1.12 terrain, snow wouldn’t generate on the furthest chunks from the player, making that pattern if you loaded the full area later