HNHacker News
TopNewBestAskShowJobs

vitiral

1,239 karma · joined August 9, 2016

https://civboot.github.io
submissionscomments
vitiral··on Circle C++ with memory safety
Segfaults are a result of violating memory safety. They are the BEST case since you can actually detect the program yolo'd

Far worse is your program starts corrupting your data and suddenly you are executing a routine you had no intention of ever executing

vitiral··on What I think about Lua after shipping a project with 60k lines of code
No, what you phrased is a common argument but IMO doesn't follow from natural language. The fact that C uses pointer offsets as it's "indexes" is IMO the truly counterintuitive thing.

Obviously I use 0 based indexes for most of my programming. I have not found 1 based indexing to be a serious problem since Lua is a high enough language that I'm rarely doing complex index arithmetic.

FYI I didn't downvote you.

vitiral··on A secure embedded operating system for microcontrollers
Pretty sure this isn't so much a rewrite as a completely new architecture enabled by Rust's lifetime system.
vitiral··on What I think about Lua after shipping a project with 60k lines of code
Indexes do start at one. Offsets start at zero.

If you have a table of 5 apples and the middle one is rotten do you say the rotten one is the 2nd or 3rd?

vitiral··on What I think about Lua after shipping a project with 60k lines of code
I would start at https://lua.org/

I'm creating a set of libraries to make Lua into a (still lightweight) application language

https://github.com/civboot/civlua

vitiral··on What I think about Lua after shipping a project with 60k lines of code
Never made a game (want to!) but I would think that scripting language support would be downright fantastic for E2E testing.
vitiral··on What I think about Lua after shipping a project with 60k lines of code
damnit
vitiral··on What I think about Lua after shipping a project with 60k lines of code
Is every flat yet informative summary going to be accused of GPT now?

And no, way too concise to be GPT imo

vitiral··on What I think about Lua after shipping a project with 60k lines of code
You might like https://github.com/civboot/civlua if you ever find yourself wanting to use it.
vitiral··on After 6 years, I'm over GraphQL
Good stuff. Most languages are non-perfect. I will say that of the things made by Google to "scale" I think protobufs are a better one.
vitiral··on After 6 years, I'm over GraphQL
> Protobuf

Google's entire software backbone is literally built on this haha. There are things about it I don't like, but it DEFINITELY scales

vitiral··on After 6 years, I'm over GraphQL
And GraphQL has no real benefits over SQL? If so... I'm not sold
vitiral··on After 6 years, I'm over GraphQL
I've read the article and a few of the responses but have never used GraphQL. However I have a question

Would it be fair to say that GraphQL is extremely useful for internal-only clients? For example an inhouse data store, query service, test status monitor, etc?

So many issues disappear when you aren't concerned about bad-actors and you have _some_ control over both client and server.

vitiral··on Three Laws of Software Complexity
indeed, thankyou
vitiral··on Three Laws of Software Complexity
Thanks!
vitiral··on Qlock – A JavaScript Quine Clock
a quine is where the full source is reprinted in the display.

So in this case, the code to create this clock in your website is

<script>

(r=n=>setInterval(t=>{for(j=o="\n",y=5;y--;document.body['inne' +'rHTML']="<pre>&lt"+(S="script>\n")+o+"\n\n&lt/"+S)for(x=-001; x++<63;o+=`(r=${r})()`[j++].fontcolor(c?'#FF0':"#444"))c=x/2%4< 3&&[31599,19812,14479,31207,23524,29411,29679,30866,31727,31719 ,1040][(D=Date()[16+(x/8|0)])<10?D:10]&1<<(x/2|0)%4+3*y},100))()

</script>

which is also what is the clockface.

vitiral··on API Shouldn't Redirect HTTP to HTTPS
Exactly. Easier but actually terrible for security since a MitM can intercept and use the key (and never actually revoke it)
vitiral··on API Shouldn't Redirect HTTP to HTTPS
Astronomically is an understatement. If they made 1000 requests per second they might have a 1% chance of revoking a key before the heat death of the universe.

Cracking hashing requires large parallel processing, something you can't do if you're API limited

vitiral··on API Shouldn't Redirect HTTP to HTTPS
The thing about bullet proof is that nothing is bulletproof when you have a big or fast enough bullet
vitiral··on API Shouldn't Redirect HTTP to HTTPS
Careful, someone might use that as an API! https://xkcd.com/1172/
vitiral··on Three Laws of Software Complexity
It's comments like this that are the reason I come to hacker news.

Now what do we do about it? What I'm doing about it is

http:/github.com/civboot/civboot and http:/github.com/civboot/civlua

vitiral··on Three Laws of Software Complexity
I liked this article. These follow from the basic law that all systems that grow or change eventually decay and die. Death is an inevitable part of life whether that be for animals, societies or even software.

This is good. Rebirth brings vibrancy and you cannot have birth if you don't have death.

vitiral··on LSON: JSON with binary in 260 lines of public domain Lua
Thanks! I share it from time to time, but I thinking HN algos doesn't like it, or maybe others don't think it's as cool as you.

Hopefully once I have a full tech stack (or at least an editor+shell) actually working it will get some more interest. In the meantime... you could share it, I certainly won't object!

vitiral··on LSON: JSON with binary in 260 lines of public domain Lua
I've seen similar things happen, yes. Probably because when you read something you're interested in then you'd like to read more?
vitiral··on Seven Dyson Sphere Candidates
? I think you are very confused. Yes, there is conservation of energy, but not conservation of entropy. See the second law of thermodynamics
vitiral··on Seven Dyson Sphere Candidates
GPT4 is an idiot. It actually cancels out over the orbit for small objects

https://www.google.com/url?sa=t&source=web&rct=j&opi=8997844...

vitiral··on vu128: Efficient variable-length integers
zig-zag encoding is brilliant. Basically you can determine positive or negative based on odd/even and divide by 2 to get the value. I tried to come up with a similar encoding and never thought of this
vitiral··on Seven Dyson Sphere Candidates
Good call, doing the search with those keywords yielded similar results
vitiral··on Seven Dyson Sphere Candidates
Well, the entire ecosystem and weather is fed by solar. It would be interesting to think about what it's "efficiency" would be...
vitiral··on Bend: a high-level language that runs on GPUs (via HVM2)
It has 905 upvotes, it has received a fair share of positivity as well. Even criticism is often positive, since it expresses interest and engagement with the ideas and approach.
← PreviousPage 4 of 21Next →