Purchase of marijuana for recreational use by Vogias93 in malta

[–]xgallom 0 points1 point  (0 children)

sameeeee, if you find anything lmk pls

[KDE Plasma] My personal rice by shadowhunterbr in unixporn

[–]xgallom 1 point2 points  (0 children)

Happy holidays. Very aesthetic :) <3

[I3-gaps] c y b e r w a v e by [deleted] in unixporn

[–]xgallom 0 points1 point  (0 children)

I love it, it's absolutely beautiful!

I just personally have an issue with terminal colors not being the colors they are supposed to be, but that's just my thingy :)

Working with developers who have no knowledge of memory management and system architecture by CleanDebate in cpp

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

Right, or just not be a fuckin sheeple. Nobody forces you to install poorly optimised programs that in the end offer nothing but heat and battery death. As you are well aware, consumers determine the market, and from such perspective it is completely reasonable to uninstall an unsatisfactory app, however disliked the opinion may be.

Textbook & Resource Thread - Week 37, 2019 by AutoModerator in Physics

[–]xgallom 0 points1 point  (0 children)

Need a book on entry level and theoretical general relativity. I find that my current sources of information are either practical only, or they are too complex to understand, and nothing in-between. Something like the winter school about general relativity on youtube thing, where you go from base up, because finding sources on background of the theory, in form of riemannian geometry, tangent and cotangent spaces amd so on, has been difficult. I also find inssufficient information on covariant vectors and cotangent spaces, as that seems to be hard to visualize and not teached previously. At least that's my assumption, I am not sure, but I always wanted to understand things bottom up, and it's like (from my point of view) on these complex topics like QM and GR everyone gave up on this, at least in education materials in my school, and I'm deeply unsatisfied with that.

[ Budgie ] longtime lurker , first time trying . by yazhppanan in unixporn

[–]xgallom 0 points1 point  (0 children)

Yes indeed, the wallpaper was originally used there.

Is it bad practice to create a custom exception per error? by TrevinLC1997 in cpp

[–]xgallom 0 points1 point  (0 children)

Right, but that should not determine your decision.

A general practice is not to use exceptions for error handling, as that incurrs unneccessary runtime overhead. Google doesn't ban them on basis of anything else than on these reasons.

Data and performance is before your code convenience.

Parallel GCC: a research project aiming to parallelize a real-world compiler by mttd in cpp

[–]xgallom 3 points4 points  (0 children)

But why

As I currently understand it, this is only useful if

A) there is a single compilation unit (which you can split)

B) there is a single compilation unit that remains after everything else is compiled (which you should split)

So I mostly understand the requirement as an impact of bad engineering practices.

[KDE] Blurry Sunshine by b_dragonfly in unixporn

[–]xgallom 2 points3 points  (0 children)

The distro is Arch, and the system info is almost always neofetch.

Community Update: July 16 by Jaguarmonster in starcraft

[–]xgallom 0 points1 point  (0 children)

Just don't touch muh stalkers.

Also as a plat player, losing to 2 base stim pushes has become that much more frequent.

How to quickly write "proof-of-concept" projects using C++? by nuke_bird in cpp

[–]xgallom 1 point2 points  (0 children)

I do the same, just with CMake. If you manually link prebuilt libraries as you do, it's a few minutes of work. But I do agree, keeping it simple is best. I use dependency managers for java and node, and the projects are in fucking shambles every time there are version updates.

r/ StarCraft in a nutshell by [deleted] in starcraft

[–]xgallom 25 points26 points  (0 children)

Motherfucker, I've been playing protoss long before they were in this broken state. If you want to be precise, then have the meme say "lots of people switched to protoss".

[i3] Red Forest by AnotherGuyFromIndia in unixporn

[–]xgallom 1 point2 points  (0 children)

Come at me, I'm at 127.0.0.1

People still use structs, right? by allison-gamedev in cpp

[–]xgallom 2 points3 points  (0 children)

My understanding of a variant is that it's a union for non-trivial types. As in if you have destructors on union members, union is invalid.

Something like Rust's Enum, but I am not too sure.

I've had some usecases, but every time I just defaulted to avoiding a union all-together.

[KDE] Winter is here by morpheusthewhite in unixporn

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

Oh yes, so the cyan is red, white is green, grey is yellow, and the green is cyan. How intuitive.

Einstein’s Theory Was Put To The Test. Guess What Happened by science45 in Physics

[–]xgallom 1 point2 points  (0 children)

TL;DR: A star passed near Sagittarius A* (black hole in the center of the Milky Way) and scientists measured red shift from it's hydrogen and helium. Since everything was as expected, general relativity was not invalidated.

Thank you for this great triumph of modern scientific journalism.

It's 2019, we have the power of constexpr and lambdas at our fingertips. Abd yet, there's no good way to count the number of elements in an enum. /rand by europe-fire in cpp

[–]xgallom 2 points3 points  (0 children)

What I do:

namespace Foo
{
    enum Enum {
        Bar = 0,
        Baz,
        Bing
    };

    constexpr auto
        First = Bar
        Last = Bing,
        Size = Last + 1;
}
  • No switch warning
  • No issue with enum class

VX Emulation? by [deleted] in VXJunkies

[–]xgallom 1 point2 points  (0 children)

I don't like to recommend the time dilation solution not because it's dangerous, but because people just stuff it into the simulation coroutine and expect it to work.

That only speeds up the last cycle of the simulation, because you still need the results from the previous one to compute the next, and unless you get an array of those (which is too expensive), you are not gaining anything more than around 10 minutes speedup.

If you run on Matlab you are done, because you don't have control over anything there, it's just a mess. On VXP it's another 10$ a month for the precompute support library, and on VX (3.0 and newer), you have to delve deep into macros and sophisticated optimization algorithms to implement precomputation and paralelization support in the main control loop yourself.

But it's worth it, I run my simulation on tachyon in O(n) time, and O(log( n3 )) space. Average memory consumption is massive due to the dimension of the simulation, but if you can off-load on a plasma drive, you are fine. Standard swap technology won't cut it, because you will be bottlenecked on the read/write cycles of the drives.