Better HN
topnewbestaskshowjobs
Log inSign up

RicardoLuis0

166 karma · joined Dec 19, 2019 (6y ago) · 64 submissions

Submissions

comment 4d ago · link · parent

> very little heat

hypothermia wants a word with you lol

comment 4d ago · link · parent

short-term? yeah long-term? i don't see why not, the gravity isn't unsustainable, and there's local water sources (polar ice) and local power sources (solar/possibly local uranium), and plants can be grown with just water and power, and oxygen can be produced from either the water or the CO2 in the atmosphere with the available power as well, and basic materials can also be sourced locally (iron, aluminum, titanium, copper, nickel, gold, lithium, silicon, etc have all been found in mars samples https://en.wikipedia.org/wiki/Ore_resources_on_Mars#Direct_e...)

comment 1w ago · link · parent

but then it's incremented again after the else, and the while condition reads one-past-the end, entirely skipping the null terminator

comment 2w ago · link · parent

wasn't it just the strategy with vista and everything before it? seems that since 7 it's all been designed to run on contemporary hardware (which is why 7 was so rock-solid over its entire lifespan)

comment 2w ago · link · parent

> If it is true that what is offering is some kind of "super-simd" processor

if it is, that has been tried before and failed (with itanium/etc), because the optimization burden on compilers means that they never end up getting the projected speeds over conventional execution

comment 2w ago · link · parent

for one, there used to be multiple cool projects posted here every day on ShowHN, now ShowHN is a deluge of slopcoded shit with a handful of cool projects every month (so much so that i barely open ShowHN posts anymore, while before they were the first posts i went to on the front page)

comment 1mo ago · link · parent

doom's rendering is 2.5d (but is still fully accurate to 3d rendering, if the pitch of the camera is fixed to 0), but doom's _logic_ is fully 3d (the only reason enemies were infinitely tall was to save on cpu speed (and different to enemies, projectiles always had full 3d collision), it was just a few lines of code change to make them have real height for player-enemy collisions, which was done in heretic, another game using the same engine as doom)

comment 3mo ago · link · parent

bjarne/hsutter and their whole "club" have been (from my admittedly outsider perspective) using the "founding principles" in bad faith in the c++ comittee for a while now, see the strong-arming of safety profiles into the standard while they are in no way workable or anything more than a half-useless solution to anything they claim to solve https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p34... / https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p34... / https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2025/p36...

comment 3mo ago · link · parent

smoking tobacco is bad, but smoking cigarettes is much, much worse because of all the extra shit that's added in to make them even more addictive (and more carcinogenic) https://en.wikipedia.org/wiki/List_of_additives_in_cigarette...

comment 5mo ago · link · parent

> Measuring productivity with LoCs is like measuring output with cash burn.

companies are doing that as well lol (re: tokenmaxxing)

comment 5mo ago · link · parent

more that, most C++ developers aren't "C++ people", the ones that are are a very vocal, but very small minority, though they're disruptive enough that some projects (re: the aforementioned linux kernel) elect to abandon C++ entirely just to avoid them

comment 5mo ago · link · parent

> I wonder what starting point and success criteria do you assume for that 2 year timeline. About a year ago I wrote a deferred renderer with dynamic lights, and shadow mapping, and few post effects in about a month of free time (Less than a week of full time work).

i'd assume it means fully understanding what you're building, if you already know 3d graphics or are just copying example code around, sure you can build something quick, but to fully understand the concepts from a background without previous graphics knowledge takes time and dedication

comment 5mo ago · link · parent

just because someone writes or wrote C++ doesn't make them a "C++ person", and "C++ people" are very much against rust

comment 5mo ago · link · parent

while SEO has made search worse, i don't think it's the core reason why things are impossible to find, i think it's simply the fact that, over time, google has been butchering the ability to search for exact terms in favour of "natural language" searching, which makes simple things like "how do i make an orange cake" or whatever return useful results, but makes any actually technical query return a lot of pure garbage

comment 6mo ago · link · parent

yeah, but those are using conventional explosives, only countries like the US and Russia have enough nukes to do the same with nuclear explosives, a country like japan would need a sophisticated missile instead

comment 11mo ago · link · parent

that's exactly the point, the _lack of_ humans during its evolution is what it has to do with us, a mushroom may be poisonous to the species that it evolved around, while at the same time not being poisonous to humans

comment 1y ago · link · parent

consumer cards don't share dies with datacenter cards, but they do share dies with workstation cards (the formerly quadro line), ex. the GB202 die is used by both the RTX PRO 5000/6000 Blackwell and the RTX 5090

comment 1y ago · link · parent

it's worth noting as well that the windows API has been a thing since 1985, _before_ C was standardized, such old versions of C were incredibly untyped

comment 1y ago · link · parent

or possibly the malware has spread to multiple of their devices?

comment 3y ago · link · parent

that's the altered part -- those more restrictive terms of the VVVVVV license only apply to the _assets_, and the license for the source code itself is far more liberal:

https://github.com/analgesicproductions/Even-The-Ocean-Open-...

comment 3y ago · link · parent

if your data's sequential, creating an iterator in C++ is as simple as returning a begin and end pointer, and will be optimized away by any level other than O0

https://godbolt.org/z/WEjzEr5j4

comment 3y ago · link · parent

> So why aren't we doing this?

isn't IPv6 is basically that? just restricted to internet addresses

comment 3y ago · link · parent

and it's not like SRAM isn't used in modern computers -- it's baked directly into the silicon of your CPU to serve as register banks and cache

comment 3y ago · link · parent

> the case of a run-away string

that, i'd guess, is one of the reasons why most languages don't allow multi-line strings without special syntax

comment 3y ago · link · parent

it seems to be on github, but the commit history doesn't go beyond 2017: https://github.com/beejjorgensen/bgc

comment 3y ago · link · parent

that one in particular was not really caused by goto, but rather by braceless if statements, it'd be a vulnerability all the same if the line was a "fail" function that was called instead of a goto.

comment 4y ago · link · parent

just about any electronics here in brazil are ~2x the price, be it phones, computers, computer parts (CPUs, GPUs, MOBOs, etc), or anything else (not just apple, any brand)

comment 4y ago · link · parent

it's not guaranteed atomic, and if you ARE using volatiles, "maybe" doesn't really cut it, so now you need to do `++*v` the proper way (ex. `lock cmpxchg` / `__atomic_compare_exchange`), or explicitly write it out the long way (`*v = *v + 1`) and risk the small chance of the value changing under you between read/write

comment 4y ago · link · parent

that's still wrong, the integer data model is defined by the target, which is not specified in the quiz, not solely by the compiler, ex. clang uses 32-bit longs when compiling for windows, and 64-bit longs when compiling for linux:

* windows - https://godbolt.org/z/WWWzarEsK

* linux - https://godbolt.org/z/57WK45o6e

same for gcc on linux/windows (mingw)

comment 4y ago · link · parent

there's a minecraft-style 4d sandbox game, with a playable demo: https://store.steampowered.com/app/1941640/4D_Miner/
123