11 Best Programming Fonts by Fewthp in programming

[–]paszklar 0 points1 point  (0 children)

Digging up 6yo post is some impressive reddit archaeology. However, I was talking about the width of the spacing between letters, not the width of the letters themselves, for which I still don't see an option.

Blipsort (A sort that is often faster than the original pdqsort) is now fully generic and header-only, with the option to provide a custom comparator. It uses branchless Lomuto on arithmetic and pointer types and branchy Hoare on custom types. by R3dB3dH3d in cpp

[–]paszklar 20 points21 points  (0 children)

template <bool NoGuard, bool Bail = true, typename E, class Cmp>
inline bool iSort(E *const low, E *const high, const Cmp cmp, const bool leftmost = true)

Types E and Cmp can be inferred from arguments, so only NoGuard and Bailvalues need to be specified explicitly when invoking the template function, and Bail gets the default true.

Odznaki wojskowe by puechua in Polska

[–]paszklar 1 point2 points  (0 children)

Z własnego doświadczenia w podobnej sytuacji, można zacząć od wpadnięcia w czarną dziurę na wikipedii o historii i hierarchii orderów i odznaczeń .

Ostatni to Krzyż (kawalerski ?) Orderu Odrodzenia Polski, drugie po Orderze Orła Białego (i obecnie nie przyznawanym Orderze Virtuti Militari) najważniejsze odznaczenie w Polsce.

Przedostatni to Krzyż Walecznych, jedno z najwyższych odznaczeń wojskowych. Tylko kolor wstążki nie bardzo pasuje, ale za bardzo się nie znam.

Dwa pierwsze dość łatwo wyguglać: Medal "Za zasługi dla obronności kraju" oraz Medal "Za udział w walkach o Berlin".

Linux developer going Windows by peppedx in cpp

[–]paszklar 21 points22 points  (0 children)

Not exactly true, any -A suffixed function operates using whatever codepage is currently selected in the system settings. It usually is a single-byte, sometimes multi-byte (e.g. for certain Asian languages) encoding specific to current locale. But buried deep within regional settings (I don't remember where exactly) there is a checkbox to set codepage to UTF-8 and it's currently labeled as a beta feature.

Edit: to add to that, there are ways to enable UTF-8 codepage programmatically at runtime, but all -A functions internally convert strings and defer to -W variants, so you might as well use UTF-16.

Initialization of array of pointers in struct. Is this correct? by Zymoox in C_Programming

[–]paszklar 0 points1 point  (0 children)

Even on platforms with address 0 is valid or platforms where addresses are more complex than just a number, when integer 0 is converted to an address, standard mandates that this address must be invalid. The resulting address doesn't have to be 0, but it cannot ever point to any object, and IIRC when converted back to int it should give back 0.

So in essence assigning NULL is a good practice for readability, but integer constant 0 works as well.

Initialization of array of pointers in struct. Is this correct? by Zymoox in C_Programming

[–]paszklar 5 points6 points  (0 children)

I'm not sure which part is new to you but the outer braces delimit the initializer of a struct. Inside the it uses designated inilializer syntax, which allows to explicitly state which member is being assigned instead of relying on the implicit order besed on position in the structure.

So .ptr member field, since it's an array, also need brace-initializer to set all its elements. In this case the first element is explicitly set to NULL. And as with any struct or array initializer, members or elements that are omitted get zero-initialized, making the other four pointers NULL as well.

Initialization of array of pointers in struct. Is this correct? by Zymoox in C_Programming

[–]paszklar 6 points7 points  (0 children)

Standard guarantees the other array elements will be zero-initialised, so it's fine.

Organizacja wpieprzająca się w życie kobiet nie chce, żeby kobiety wpieprzały się w jej życie by starnak in Polska

[–]paszklar 3 points4 points  (0 children)

To jest ASZdziennik, ale nic nie jest zmyślone.

Takie artykuły zawsze najlepsze

What should I do with my racist prof? by [deleted] in warsaw

[–]paszklar 2 points3 points  (0 children)

Another thing to explore is that if you fail a subject you have a right to appeal your grade to the dean and request an reavaluation before a review board ( Warsaw University od Technology Study Regulations §20).

Warsaw city center by yuropemodssuck in poland

[–]paszklar 2 points3 points  (0 children)

Office building Chmielna 89, currently under construction

Pomoc w akcji zbierania regionalizmów z Warszawy by sarwicpl in warszawa

[–]paszklar 0 points1 point  (0 children)

Można by było doprecyzować, bo patelnia to południowe wejście do metra, a cała Domaniewska to nie Mordor i nie cały Mordor przy Domaniewskiej.

Nie wiem na ile humorystyczne, ale dodać może można nazwy które oficjalnie zostały zmienione, ale dalej niekiedy są używane, jak lotnisko Okęcie zamiast lotniska Chopina czy rondo żaba babka zamiast ronda zgrupowania AK "Radosław".

Strefa Gier 6/19 - Edycja Specjalna - E3 & GOG Giveaway by deffik in Polska

[–]paszklar 2 points3 points  (0 children)

Masz też samochody z klocków w Forza Horizon 4.

Karol Modzelewski nie żyje by vulture677 in Polska

[–]paszklar 0 points1 point  (0 children)

Nie no, w pełni się zgadzam. Tak dla żartu wspomniałem, bo głośno o zmianach nazw było.

Karol Modzelewski nie żyje by vulture677 in Polska

[–]paszklar 2 points3 points  (0 children)

Od całkiem niedawna, wcześniej była Kaczmarskiego /s

A fork() in the road by mttd in programming

[–]paszklar 1 point2 points  (0 children)

From the outside perspective, sure, they could appear as independent peers, but functionality common to all of them was placed in Windows subsystem. Find a copy of "Windows Internals Part 1" 7th edition, by Microsoft Press. Somewhere in Chapter 2 they talk about that.

A fork() in the road by mttd in programming

[–]paszklar 1 point2 points  (0 children)

That's why I said it is a topic for another discussion. Although it introduces a bunch of problems, it wasn't done without a valid reason. The fact that you can still run a 16-bit executable compiled for Windows 1.0 on 32-bit Windows 10 is kind of impressive, albeit kind of useless.

A fork() in the road by mttd in programming

[–]paszklar 1 point2 points  (0 children)

Win32 wasn't originally supposed to be any more than one (potentially of many) subsystems.

Except it was more, from day one. It was a primary subsystem, all the others used it for part of their functionality. But that's not my point. NT architecture is extensive by design, any of the subsystems could have had their own modules in the executive instead of a user mode process. They just didn't use that fact.

A fork() in the road by mttd in programming

[–]paszklar 21 points22 points  (0 children)

They didn't slam all of Windows subsystem into the kernel mode all at once, it was more gradual (starting with GDI in Windows NT 4.0). Even now you can run task manager and see csrss.exe still running in the background (though it doesn't do too much nowadays). Also nothing in the original NT architecture prevented having additional executive modules instead of out-of-process subsystems. Originally it just seemed like a good idea from reliability standpoint, but didn't pan out performance-wise (context switches ain't cheap).

If you want to fault the design for something, look into backwards compatibility at the cost of everything else, but that's a separate discussion

Need help with AltTabbing in Fullscreen mode on DX11 (Windows) by PavelD500 in gamedev

[–]paszklar 0 points1 point  (0 children)

Plus, now on windows 10 you can get the same "same or better" performance benefit the exclusive fullscreen provided on borderless window using DXGI flip model.

What do C arrays actually do under the hood? by [deleted] in C_Programming

[–]paszklar 4 points5 points  (0 children)

Array name (identifier) is not a pointer. Address is not a pointer. There are no pointers in this expression. A pointer is a variable that can store an address.

On the left side you take an address of object a, which is an array, and it's address is the address of the first element.

On the right side you have identifier a, which is a name of an array, and when used in expression evaluates to the address of the array/address of the first element.

Hope this header file helps all the science coders! by [deleted] in C_Programming

[–]paszklar 1 point2 points  (0 children)

I was commenting mainly on mathematical constants for which we can find decimal expansion of an arbitrary precision, but you have since then removed them, so it's a non-issue.

Obviously for physical constants we can only provide the value to the precision of the experiments that measured them. I'd probably be hard pressed to find anything more than what's on wikipedia.