HNHacker News
TopNewBestAskShowJobs

shultays

1,740 karma · joined January 13, 2014

submissionscomments
shultays··on 1 in 5 online job postings are either fake or never filled, study finds
(paypal me 0.1$ to see this reply)
shultays··on I Switched to Firefox and Never Looked Back
There is still embedded ads or promotional content or whatever that you can only block with sponsorblock
shultays··on Show HN: Bad Apple on RP2040 [video]
Yeah, the display is just white and black. I converted video to one bit
shultays··on UBlockOrigin GPL code being stolen by team behind Honey browser extension
It is the filter list, which are the things that defines ads and loaded by adblocker to block them.
shultays··on Making memcpy(NULL, NULL, 0) well-defined

  However, given how low-level a language C++ is, we can actually break this assumption by setting i to y-x. Since &x[i] is the same as x+i, this means we are actually writing 23 to &y[0].
But that is undefined, you can't do x + (y - x) ie a pointer arithmetic that ends outside of bounds of an array. Since it is undefined, shouldn't C++ assume that changing x[..] can't change y[0]

edit: welp, if I read a few more lines into article I would see that it also tells it is undefined

shultays··on Making memcpy(NULL, NULL, 0) well-defined
Is it allowed to return anything else in C? Is there anything in standard C that would allow oracle() to access memory address of x?

Sure different compilers might allow inlining assembly or some other ways to access x on previous stack perhaps but then it is not really "C"

shultays··on Microsoft says it's built an Xbox game store on Android but can't launch it
Isn't that what "free trial" means? If I am buying free trial, I would expect myself needing to manually cancel it if I am not happy
shultays··on The two factions of C++

  “We must minimize the need to change existing code. For adoption in existing code, decades of experience has consistently shown that most customers with large code bases cannot and will not change even 1% of their lines of code in order to satisfy strictness rules, not even for safety reasons unless regulatory requirements compel them to do so.” – Herb Sutter

  with large code bases cannot and will not change even 1% of their lines of code in order to satisfy strictness rules
Do people really say this? Voice this in committee? I have been in a few companies, and one fairly large one, and all are happy to and looking forward to upgrade newer standards and already spend a lot of time updating their build systems. Changing 1% of code on top of that is probably not really that much compared
shultays··on Trump wins presidency for second time
Don't kill squirrels just before election
shultays··on Steam games will need to disclose kernel-level anti-cheat on store pages

  Didn't Magnus Carlsen say he only needs a single move from a chess computer in the right moment to be virtually guaranteed win
If we are thinking of the same quote, iirc he said all he needs is a prompt from computer "there is a winning move here"
shultays··on Steam games will need to disclose kernel-level anti-cheat on store pages
Not only future drones will get better at killing you, they will also learn to shit talk after doing that
shultays··on SmartTube – an advanced player for set-top boxes and TVs running Android OS
I don't know if it would work on Sony TVs but a while ago I switched to Projectivy launcher on a Philips android tv and I am quite happy with it

Alternatively you can reset your TV to factory settings and then disable auto updates for TV and google play. You will probably want to check google play from time to time and manually update the apps you are using though (just don't update things like "home screen" or whatever that will put ads backs). I was doing that but I was not comfortable leaving my TV unupdated

shultays··on Australia/Lord_Howe is the weirdest timezone
Even ignoring the energy saving part, it sucks waking up and leaving for work or school while it is still dark.

A while ago Turkey switched to a different timezone and stopped doing DST for reasons and now everyone was waking up one hour early in winters. Considering how bad traffic is in larger cities that meant a lot of people will be waking up and going to work or school while it is still dark.

shultays··on Debugging my wife's alarm clock
I am no expert but from what I read & remember: it can have fluctuations and lagging behind or leading "real" time but it gets corrected and synchronized back later
shultays··on A step toward fully 3D-printed active electronics
I think it is valid to point of feasibility of something. For fast prototyping there are already breadboards or PCBs that you can just solder wires on, so it doesn't really help with tracing PCB lines. Printing transistors or other things that are good and compact enough to use, even for prototyping, seems to be indeed a stretch
shultays··on C++ proposal: There are exactly 8 bits in a byte

  02:21
or instead of digits from 0 to F, the letters would go up V. 85 would be 0x2k I think (2 * 32 + 21)
shultays··on Turkish language has a gossip tense
Turkish also has distinct words for grandmothers that works in a similar way. Father is baba, mother is anne and for grandmothers we have "babaanne" "anneanne" (generally pronounced & shortened as "babane" and "anane")

But interestingly no distinct words for grandfathers, both grandfathers are called "dede" (so no "babababa" or "annebaba")

shultays··on Why Gov.uk's Exit this Page component doesn't use the Escape key

  In virtually all browsers, pressing Escape while a webpage is loading stops the loading process.
Whoa, never knew about this or noticed it
shultays··on I Am Tired of AI
There are areas it doesn't have to be as "precise", like image generation or editing which I believe better suited for AI tools
shultays··on Lesser known tricks, quirks and features of C
Can't it reuse v's memory for other things before v is defined? Say there is "int a = 4;" at the beginning of main that is no longer used when it reaches "int v = 1;", can't a & v share same memory location?
shultays··on Ask HN: Platform for 11 year old to create video games?
Agreed, hook your kid to wc3 and its custom maps first and scripting new maps will come neutrally. At least it happened to me back when I was a kid
shultays··on Paraguay Loves Mickey, the Cartoon Mouse. Disney Doesn't
Or you can try neither and use a year format that does not confuse us plebs.
shultays··on In 1870, Lord Rayleigh used oil and water to calculate the size of molecules
An idea: if oil forms a two dimensional shape, ie a single layer of molecules, then adding 2x amount of oil would give you twice the area. If it is three dimensional, say oil makes a bubble, then it would look smaller.

Of course this also fails if the oil formed a disc of X layers of molecules

shultays··on iPhone 16 Pro Storage Expansion 128GB to 1TB [video]
For donor phone, they probably kept 1TB NAND intact but CNCed away the rest of phone
shultays··on iPhone 16 Pro Storage Expansion 128GB to 1TB [video]
1TB storage comes from another donor iPhone apparently so it makes sense it just fits and works. I guess Apple didn't think of matching them to specific motherboards so you can still reuse them
shultays··on iPhone 16 Pro Storage Expansion 128GB to 1TB [video]
I don't have an answer but you can upgrade your existing phone you already bought using that method/service. Otherwise cost of official "upgrade" is $500 and a new iphone
shultays··on Paraguay Loves Mickey, the Cartoon Mouse. Disney Doesn't
It just sounds like a way for people to try showing how smart they are while in reality it just adds confusion to completely irrelevant discussions, such as this one.

I think the campaign does opposite of what it says. Using 5 digits limits your dates to dates to a maximum of year 99999. While not giving a fuck, using the digits needed to represent a year, works for all years. No one is clamping their years to 4 digits when they say '2024', they are just using the necessary digits needed for that year

shultays··on Mapping 20k ships that sank during WW II
I think the visuals are subjective (and imo think they are fine). I was mostly talking about how "custom scroll" and animations that reacts to scrolling is implemented. If one wants to implement one, this is an OK way of doing it in my opinion
shultays··on Mapping 20k ships that sank during WW II
<3 the scrolling implementation of this website. The browser scroll is as default, nothing is hijacked. It is just the background & images on webpage are updated as you scroll it creating those animations. You can use page down, space key, the scrollbar or whatever to scroll and it just works
shultays··on Phind-405B and faster, high quality AI answers for everyone
Recently I asked an AI following question

  const MyClass& getMyClass(){....}
  auto obj = getMyClass();

  this makes a copy right?
And it was very confident about it not making a copy. It thinks auto will deduce the type as a const ref and not make a copy. Which is wrong, you need auto& or const auto& for that. I asked it if it is sure and it was even more confident.

Here is the godbolt output https://godbolt.org/z/Mz8x74vxe . You can see the "copy" being printed. And you can also see you can call non-const methods on copied object, which implies it is a non-const type

I asked the very same question to phind and it gave the same answer https://www.phind.com/search?cache=k3l4g010kuichh9rp4dl9ikb

How come two different AIs, one was supposed to be specialized on coding, fails in such a confident way?

← PreviousPage 2 of 32Next →