Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
wruza
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
33 ms
·
601.
▲
by
wruza
2y ago
JavaScript has very nice scoping compared to Lua. Js needs no forwards which in Lua turn into ugly “local foo; … … … foo = function()…end”. All functions are “hoisted” by default. Js also uses “export”s or “module.exports[…]” instead of re
602.
▲
by
wruza
2y ago
You eventually become unamazed by news like a new Lua version and lose interest. It was interesting and controversial in 5.0…5.2 period, but then code and userbases established and no one wants to break code or infuriate users. With all the
603.
▲
by
wruza
2y ago
Lua stack basically works as an arena if you aren’t eager to clean it. I guess in C one could macro hack himself a similar arena to borrow objects from python runtime. In C++ it’s a matter of befriending a smart pointer with ref/unref
604.
▲
by
wruza
2y ago
I see your point and have even shared it, but my experience with real-business Lua was miserable and actively laughed at. Which was, I must admit now, absolutely deserved.
605.
▲
by
wruza
2y ago
Lifetimes and references are things to consider in Lua integration code too. See luaL_ref() rationale and why you can’t lua_pop() a string that is in use. The fact that gc doesn’t happen instantly 99.99999% of the times doesn’t save you fro
606.
▲
by
wruza
2y ago
I think you misunderstood my second paragraph. What I’m saying is that in order to do anything complex in it, you’ll have to reimplement important parts that are lacking, using all these meta/parametric things in your “mylualib”, and a
607.
▲
by
wruza
2y ago
Absolutely so. It’s just one obvious thing from a large set of issues with it. One can read through “mystdlib” part of any meaningful Lua-based project to see it. Things you’ll likely find there are: NIL, poor man’s classes, __newindex prox
608.
▲
by
wruza
2y ago
Yes, this name is basically a reflection of the fact that a hash table is an array, indexes of which get calculated by `hashof(key) % arr.length`. It doesn’t mean HTs are the arrays which should be used to store seqint-indexed values.
609.
▲
by
wruza
2y ago
You described how every language without hashtable-as-an-object works. The only difference is when you address fields. But I fail to see the logic behind seeing this and merging array/table ideas. Feels like one of these irrational d
610.
▲
by
wruza
2y ago
How is it fantastic, it’s just barebones stack interface thrown in your general direction. Any integration code that doesn’t use an ad-hoc helper library looks like assembly listing (not even in disguise, cause it basically is bytecode but
611.
▲
by
wruza
2y ago
Then you get hold of a language that doesn’t have all this mess as a foundation and it feels like you stopped self-suffocating. you can easily learn the whole language and then write, if necessary, reflective object-oriented effortlessly p
612.
▲
by
wruza
2y ago
Lua is not underrated. It’s how many now, still 4(?) different languages which continue to suicide after a few years, all with cringe [re]design decisions, half-assed mechanics and lack of convenience that authors refuse to address. I spent
613.
▲
by
wruza
2y ago
It’s easy to embed compared to e.g. python, js or perl, and iff you only push/call/pop and it’s all functions with primitive arguments. Otherwise it’s ~as hard.
614.
▲
by
wruza
2y ago
I usually watch 3b1b without any prior “want to” or any idea what it will be about. For me it’s the format that drives interest. Although I’m from a natural-math-guy group, in a sense that I usually have no issues with understanding the mat
615.
▲
by
wruza
2y ago
Even recent 1080p+ videos are not 1080p bitrate-wise. You can easily see it by comparing with the same “vod” content on twitch. Youtube has its own perverted notion of p-scale and yes most old videos look like blurry crap on it, despite the
616.
▲
by
wruza
2y ago
That’s why I strangely love some closed enterprise solutions. They are anti-fun, non-extensible behemots that you can learn in around five years and then it’s basically all free. If you can stand everything else, ofc. The open source worl
617.
▲
by
wruza
2y ago
I say men are treated based on their gender, not just happen to be disadvantaged. Don’t put words in my mouth please. For the rest of the argument I understand it, but don’t agree, for two reasons. First is that there’s enough man-only targ
618.
▲
by
wruza
2y ago
Already done: used lying tactics to make their browser and ad networks dominate, bloated the standard to make browser development unsustainable. Right now: rooting out the entire possibility of running full adblock-capable extensions from t
619.
▲
by
wruza
2y ago
I guess Vivaldi awaits the same fate. I don’t want to switch from it, especially to Firefox, so much. It’s in little things like context menus, gestures (don’t tell me about that “crx” extension crapware), tab order/cycle behaviors, do
620.
▲
by
wruza
2y ago
People who remove v2, own ad networks, develop chrome and write standards are the same people. It’s new age mafia, cancer of the internet and they do everything for you to not be able to just spin off a fork.
621.
▲
by
wruza
2y ago
Clear signs of unconscious deep flow state. It takes time to get back from it. It also makes you a good programmer. There are ways to avoid/exit it (e.g. shower) if you want, but ymmw with timings and quality. I’d suggest pushing work
622.
▲
by
wruza
2y ago
You seem to treat men as a solidary group while it is not. It's absolutely regular for a man to be treated as a second class citizen, by men. We are not "represented" in the halls of power, what an absurd idea.
623.
▲
by
wruza
2y ago
Good, what’s your plan of resolution?
624.
▲
by
wruza
2y ago
People know it’s evil, they are just unwilling to point it out because driving the conflict into some resolution is already hard without these simplistic views which helped no one before and continue to do so. Kid’s naivety is just that, na
625.
▲
by
wruza
2y ago
Do you mean it doesn’t happen to men?
626.
▲
by
wruza
2y ago
I fully agree with the idea but disagree with the… submission to the norms. We rarely talk about it and it’s also the constant source of teamwork issues. Look, if our code needs structure to be observable, it lacks structure in the first
627.
▲
by
wruza
2y ago
Some of us learned (and later shared it) at the times when you had to close an editor to access digital manuals. We went through different phases of “dev envs”, some of which were not that advanced (or later died), and we invented our own
628.
▲
by
wruza
2y ago
I find this bar annoying as hell, tbh, especially in interactive modes. Also Konsole messes up its ansi states all the time. It’s the only terminal in which I can hit <up>, sometimes see “~[[A;” or similar after my prompt, hit <e
629.
▲
by
wruza
2y ago
Or # ~/.bashrc alias p5='printf "\n\n\n\n\n"' # run my-command; p5 May also add 100 '-'s before or after newlines for better separation.
630.
▲
by
wruza
2y ago
Realizing is not the hardest part, imo. I avoid publishing my little subprojects/libs/funcs simply because of the burden of publishing maintenance, and that is before connecting with people about issues, frs and so on. Our packagi
More ›