HNHacker News
TopNewBestAskShowJobs

viperscape

116 karma · joined November 7, 2015

submissionscomments
viperscape··on 4 developers picking a random restaurant (Problem)
But that means waiting for the third party right?
viperscape··on Ask HN: Security of Passwordless Login?
Magic links are susceptible to man in middle attacks if your DNS is compromised, like on public WiFi, because the reset token is in the URI itself. So you're most vulnerable when you click the link.
viperscape··on Belgium declares loot boxes gambling and therefore illegal
I was just about to comment on magic and pokemon cards! Maybe even baseball packs. All could be traded for real cash, and obviously were! It's such a grey line though, the original intent of the cards is to not be traded around for cash, but be used to play games or simply collect (without the intent to sell) and be enjoyed. To be frank, I'm glad the world is cracking down on the digital forms of this, I think it's a bit corrupt-- explicitly targeting minors with considerably less self-control. In my opinion, it's right up there with apps that use in-game currency gems/coins that you can purchase with real money; because kids targeted by that game audience often don't understand the repercussions on such activities. I think there needs to be a very fine line drawn where a child cannot make a digital purchase, even if inadvertent. Regardless. It shouldn't be a "we suggest you set up parental controls", literally the device should be locked down from entirely preventing such behavior and must then be overrode by an adult.
viperscape··on Features of a successful therapeutic fast of 382 days' duration (1973)
You didn't take a multivitamin? How did your body handle lack of vitamin c? or d?
viperscape··on Why people have trouble reading neutral faces
Have you tried Botox? Might be a good way to test your theory
viperscape··on Hand Made Vacuum Tubes by Claude Paillard (2012) [video]
just recently saw this, where you see two custom 275 lbs monoblock tube amp-- I thought it was extreme but cool: http://www.stereomojo.com/Small%20Speaker%20Shootout%202007/...
viperscape··on Next-Gen Display: MicroLEDs
I don't understand in general why OLED is taking so long to be mass produced for TVs and monitors. It's like just now becoming mainstream, with what seems like two actually purchasable products.
viperscape··on DNA tests can predict intelligence, scientists show for first time
Gattaca, here we go
viperscape··on Caffeine and Cannabis Effects on Vital Neurotransmitters in Rats
The article mentions "cannabis abuse" a few times, what metric is there to put use into the abuse column?
viperscape··on First stable version of Scheme web framework Artanis released
"scheme web framework", except there are multiple scheme implementations and variants. I don't understand why the word scheme is even used, each scheme is basically a silo.
viperscape··on Show HN: Buy Me A Coffee – A free, fast and friendly way to receive donations
How does this differ or compete with platforms such as patreon? Also I signed up and it defaulted to Artist, I feel like major category type should be chosen during onboarding. Also, sign in with Google should be a thing I think.
viperscape··on Launch HN: Slite (YC W18) – Note App for Teams
Looks like OneNote http://onenote.com
viperscape··on Apple confirms it uses Google cloud for some of iCloud
Fun fact, Apple also uses(d) Azure Microsoft services as well.

http://www.theregister.co.uk/2011/09/02/icloud_runs_on_micro...

https://apple.slashdot.org/story/11/09/04/0051209/apples-icl...

viperscape··on Ask HN: What project did you tackle to learn C?
I second this. Write a basic game with 2d graphics, use SDL, and save and load the state to file. To take it a step further and write a networked version with your own basic byte encoding if each move and game state to keep in sync. This would teach you a ton of various topics.
viperscape··on Altered Carbon – All the DNA of great science-fiction with some missing links
The last two bother me especially. Only thing I can think of is that bodies are expendable and for police that means good second skins, they get first or second dibs. No need for cyborg parts when blasters kick so much butt.

The stack backup reasoning is lame, "too expensive" is not really defining, and if a stack can be transferred to another stack, having two with one in a strongbox seems logical. You possibly lose memories then, but live on. It seems to come down mostly to money and socioeconomic disparity. At one point someone says, fixing a broken leg is too expensive. That's ridiculous

viperscape··on LCUI – A small C library for building user interfaces with XML and CSS
This is awesome, thanks for sharing !
viperscape··on LCUI – A small C library for building user interfaces with XML and CSS
A bit of a stretch, but you can use Electron (https://electronjs.org/) which ties to nodejs, and use nodejs to call out to C.
viperscape··on Automerge: JSON-like data structure for building collaborative apps
Good point! I think you'd have to implement a lock of some sort, and check for it in application logic-- that way both can be updated simultaneously... not ideal!
viperscape··on S-Expressions (1997)
> any possibility of ambiguity is effortlessly dealt with

"(+ 1)" is rather ambiguous and evaluates to 1, compared to "1 + ", which is very straight forward-- it's an incomplete expression and no evaluation can be done.

viperscape··on Automerge: JSON-like data structure for building collaborative apps
That sounds like expected behavior. Both users are incrementing a value of 100, which would be 101 in both cases. It's not atomic.

If User A incremented 100, and saved it down; then User B loaded this saved state and incremented 101, it'd be 102.

viperscape··on OpenSC2K – An Open Source Remake of SimCity 2000
Copyright is pretty straight forward in the US. https://www.copyright.gov/help/faq/faq-duration.html This game is still under copyright and including the assets for public consumption is considered illegal, unless otherwise specified by the rights holder
viperscape··on Memory Safety in Rust: A Case Study with C
Having learned Rust and used it for nearly 2 years, I am now happy using C. I think most issues in C are easily catchable. Here me out:

1. If using Int for indexing or any sort of len or count, make sure it's positive when needed, and within bounds of what's allocated. As in if you plan on allocating huge data, plan it out and use the right data type.

2. If you alloc, then free when done. If you free, set to Null; and before you free, check for Null.

3. If you realloc, in particular, check that it actually worked and prepare for basic error handling.

Rust requires all of these steps by default.

Finally, just test some of your code. Rust makes this easy, and encourages it.

I still really like C.

viperscape··on Memory Safety in Rust: A Case Study with C
Why is double free so commonly an issue? Isn't setting to Null after free and checking for Null before hand a common practice?
viperscape··on C++ and the Culture of Complexity (2013)
Not to do the c vs c++ thing, I too prefer c. For over 20 years actually I have preferred c to c++; all the while learning and enjoying other languages like rust. c still is missing some crucial stuff in my opinion-- there are times where I wish generics existed, and when you tie that to a trait system like in rust it's really a pity to not have something like that in c. Couple that with really great package managers for libraries in other languages, and a coherent way to use the libraries, makes one long for more when working in c; it's really missing great and easy code sharing that so many other languages have at their front and center.
viperscape··on After Surgery in Germany, I Wanted Vicodin, Not Herbal Tea
Well depending on the surgery that might be advisable, it's an anti-inflammatory and heading off inflammation is usually beneficial.
viperscape··on Pebble is dead and hardware buttons are going with it
Older resistance style touchscreen s would work well here, this is where the capacitance screens fail easily.
viperscape··on Ivy – A static website generator built in Python
No purchase necessary! The title and the slogan on the site seem to infer something else. It's public domain source, it says at the bottom of the page. Glad to see more static generators, not sure how this is better or different than the other many
viperscape··on Unsafe Zig Is Safer Than Unsafe Rust
Also curious, would one ever do this in C? I understand the need in Rust and Zig, but in C is this usual?
viperscape··on How to Run Your Own Mail Server (2017)
What do you use for the mail server? Do you do any sort of backups or failover? Just curious
viperscape··on An update on Redis Streams development
is it strictly in-mem? for instance if redis is restarted is there an option for unread streams to be saved with redis persistence
Page 1 of 4Next →