HNHacker News
TopNewBestAskShowJobs

_rf

6 karma · joined June 30, 2020

Proud owner of the domain redflames.space
submissionscomments
_rf··on TermiC: Terminal C, Interactive C/C++ REPL shell created with bash
I'm kind of confused what the use case of this would be.

So it's essentially saving you the trouble of having to put code into an "int main()" and putting declarations before it?

And then attempt to run the code after every line you type. Are there other examples of REPLs that work like this rather than all the state of execution being held in the REPL like I imagine Python does do it?

Can it Tab-complete identifiers I introduce in it? Actually, I suppose it's a single 115 LoC bash script, and I really don't mean to dunk on it, it's a neat little experiment. It just kinda made me wonder what REPLs are made for, for the first time. :D

Like I imagine a very basic "interactive" coding session (for any language) could also be achieved by having an editor open and saving after each line, or having that done automatically, and then in another terminal some script watches for those changes and compiles/interprets/runs it.

A REPL like python's is more like... having a debugger attached to your program, but it just sits at a breakpoint and let's you tell it what code to run next, and you can inspect variable contents and such.

Seems like languages that compile to machine code don't work all that well for REPLing, eh.

_rf··on Ask HN: What do you do for online privacy?
I'm gonna pick out one thing I'm always really curious about; what makes you trust a VPN provider more than an ISP? I've never quite understood this especially with how iffy and downright wrong VPN marketing (e.g. ad-reads on YT) can be.

- Why trust a VPN company more than your ISP? To me it seems like a commercial VPN could have equal or more incentive to do questionable things with your info.

- Is it somehow easier for an ISP to track my activity vs. a single VPN company whose servers I'd tunnel all my traffic through?

Sure, the ISP knows where I live and all that but it seems like a VPN could easily identify/know me to the same degree.

( - or is it like a self-hosted VPN sitting in the cloud, and would such a thing be practical/effective at all)

_rf··on Including “And. And. And. And. And.” in a Google doc causes it to crash
I know you didn't write that poem, but I'm 99% certain the apostrophes in "I thought about my body. It's past. It's present." have no business being there :)
_rf··on Fastly Outage
It appears the mention of "Mediation" was made very recently, likely in response to what's currently going on.

https://en.wikipedia.org/w/index.php?title=Guru_Meditation&d...

And it seems to be incorrect, since this "spelling variation" is only used by Fastly and not part of Varnish?...

_rf··on The Postcard Pathtracer, Part 1: Deciphering, Continued
If I'm submitting a link, do I still get to add text here? I have to admit this is my first time submitting, and it's my own content. I love finding interesting nerdy things and software/hardware deep-dives on HN.

A year ago I found Fabien Sanglard's post about Andrew Kensler's postcard pathtracer, and I was hooked. So I spent some weeks digging through the code further, and then set out to write about my findings.

Well, completing the series has taken me over a year. But I consider these four posts done now! So I just hope people will also find something of value within them.

PS: I also have a CUDA implementation going, but I only included a short video as a bonus at the end of post 3. I should get back on that. :)