sorted by: new top controversial old
[-] pelya@lemmy.world 0 points 23 hours ago

Extend C++ for safety

I stopped reading after this. Why do you think C++ is unsafe in the first place? Someone decided ro extend it, and now you cannot even read an error message without finishing an university course on lambda calculus first.

[-] pelya@lemmy.world 14 points 4 days ago

Back in the 80386 days there was one model of BIOS that would print 'CPU not found' if you had your CRT monitor and VGA videocard plugged in.

[-] pelya@lemmy.world 16 points 1 week ago

You simply need to accept the risc.

[-] pelya@lemmy.world 2 points 2 weeks ago

Yet I still had an urge to explain an obvious thing. Because it's C++, so everyhing goes. There are even tools to auto-generate C++ interfaces, because of course someone decided that C++ is inadequate and must be improved using some kind of poorly-documented ad-hoc extension language on top of C++.

[-] pelya@lemmy.world 1 points 2 weeks ago

I know at least three ways, one of them involves variadic macros.

You don't even need to look that far, take any sufficiently aged library, like OpenGL.

[-] pelya@lemmy.world 33 points 2 weeks ago

C++ is fiiiiine. Just use the modern variant of the language, don't bother with hand-optimizing your memory allocators, and generally avoid anything involving pointer arithmetics. So, basically, use it like you would use Python.

[-] pelya@lemmy.world 2 points 2 weeks ago

I guess that phone would use eSim, so no slot is needed.

[-] pelya@lemmy.world 5 points 2 weeks ago

This needs some simple hardware trigger, that can be queried by bootloader, but specific wnough so it won't trigger in your pocket. If buttons are unavailable, I can propose several idead:

  • Cover the proximity sensor 10 times per second. Requires good motor skills.
  • Shine separated red, green, and blue lasers into three of the phone cameras. You'll need a box with three different-colored LEDs to cover cameras module.
  • There is a low-speed data channel in wireless chargers. Just add the button to the charger instead of the phone.
  • Put your phone at exactly 2.5G of acceleration. Accelerometer is easy to use even from the bootloader, however you will need to put your phone in a centrifuge and reboot it while it's rotating.
  • An option 'Reboot into recovery' in system settings, duh. Won't help if your ROM fails to boot.
[-] pelya@lemmy.world 21 points 2 weeks ago

wcsoll is a mispronunciation of wcscoll

[-] pelya@lemmy.world 8 points 3 weeks ago

You've mispronounced wcscoll.

[-] pelya@lemmy.world 2 points 3 weeks ago

Where's My Water

It does not require great screen-tapping skills, characters are designed by Disney, and it's premium.

[-] pelya@lemmy.world 11 points 3 weeks ago

I'm pretty sure Apple and Google already rewritten all important GNU parts into something with Apache or BSD license, to throw everything GPL licensed out of their embedded systems. The biggest and most important part was obviously GCC, replaced by Clang.

How many GPL-licensed system libraries and tools are in Android right now, except for the kernel? I'm pretty sure the answer is zero.

view more: next ›

pelya

joined 1 year ago