Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
astrobe_
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
49 ms
·
661.
▲
by
astrobe_
5y ago
In my limited experience, when you want to interact with C libraries, you often end up reading the docs of the original C library anyway because often the bindings are nearly 1:1 - and often the trouble lies in the word "nearly".
662.
▲
by
astrobe_
5y ago
Lua is smaller, and one of the fastest in the bytecode-land. It also used in a large number of diverse applications [1], so in terms of popularity, I think it has nothing to be ashamed of compared to others. [1] https://en.wikipe
663.
▲
by
astrobe_
5y ago
Having a bus factor>1 is still a major prerequisite for doing that. Because if you have a junior developer review the changes of a senior developer, there are so many social engineering tricks to make the backdoor pass the review that
664.
▲
by
astrobe_
5y ago
How do you prevent this anyway? If you want to make money from insider info you can trade it (on a truly free black market), if you want to minimize the risk of being caught.
665.
▲
by
astrobe_
5y ago
> Leaky abstractions are for people who are too lazy to think Worthless blanket statement. > Look at Apple Metal and the version of C++ they use for it. That's a very specific case of a shader compiler that is disguised as C++. I
666.
▲
by
astrobe_
5y ago
> Personally though, I am fed up with abstractions that cannot be used when I really need them Abstractions are often leaky [1], this has been known for 20 years. Deal with it? > Actually, not finished yet. Anyone building recursion i
667.
▲
by
astrobe_
5y ago
See also Minetest, which has several native map/terrain generators [1]. In addition, one can define other generators as mods using Lua [2]. Mods can define new biomes [4], place buildings [5], roads [3], etc. If you add all that, thoug
668.
▲
by
astrobe_
5y ago
CPU makers add so many complicated features to let users optimize their programs that it takes too much knowledge for mere mortals to optimize their programs - That you have to rely on heuristics and measures, as it is usually and wisely ad
669.
▲
by
astrobe_
5y ago
> I think many developers treat PRs as an opportunity to gatekeep Well, it is your project or your team's project. It is entirely legitimate gatekeeping. Questioning that is the bad side of the "social coding" touted by Gi
670.
▲
by
astrobe_
5y ago
> then they'll likely have a lot in common with Earth animals psychologically The term "psychologically" here is interesting because it skips the "biologically" part. What if they don't have neurons like us
671.
▲
by
astrobe_
5y ago
> For instance, suppose we push 200 operands onto the stack (o1 o2 o3, ...), Nobody does that. That's a meaningless example. Most systems don't have stacks that deep anyway. This is not Forth. It's pointless to reason on t
672.
▲
by
astrobe_
5y ago
Nor am I, but I don't think that's the problem. It seems to me is that if you want to do that, you would use the value as a seed to set the internal state of the PRNG and then call the PRNG just once to get the hash value. But in
673.
▲
by
astrobe_
5y ago
HTTP is like the PC: its main quality, and its worse defect, is extensibility.
674.
▲
by
astrobe_
5y ago
Agreed. This is when you believe that your program should at the very least compile (or pass tests) at any point in the history. In this case a commit must be a consistent and related set of changes. In other words, a commit to us is sort o
675.
▲
by
astrobe_
5y ago
> Isn't this a implementation detail? I mean it depends if your course is focused on teaching programming first level (how to get some simple problem then math and code it with if, for and while and some variables) or if you actuall
676.
▲
by
astrobe_
5y ago
> This would be a good point if the year where 2003. Compiling code and setting up a proper coding environment is a solved problem that isn't worth the headspace of a young and aspiring programmer. In the modern day, you can open up
677.
▲
by
astrobe_
5y ago
I have been programming for 3 decades, the 2 last as a dayjob. It seems to me that there is a deep cultural chasm around the new century. Before 1990 you had next to no Internet and computers were shipped with book-sized printed manuals tha
678.
▲
by
astrobe_
5y ago
> For sure I do not start teaching my son about the c++ compiler, linker You could, or at least the tip of that iceberg. Compiling a simple program often is a simple one-line command. Perhaps you can show him how to automate this with a
679.
▲
by
astrobe_
5y ago
The first thing that comes to mind is a "reliable" (that won't overcommit) memory allocation syscall, but one might fear that it will abused (everyone wants the best stuff even if they might not use it after all). The second
680.
▲
by
astrobe_
5y ago
I've seen elsewhere deviations on the millisec scale and from my memories of reading the RFC NTP, the math is a lot about having a very precise time and correcting the local clock's deviation. Does it have an importance for everyd
681.
▲
by
astrobe_
5y ago
First time I consider using the "flag" thing on HN. The piece is disingenuous through and through, in my opinion. The last line sums it all: > It is not difficult to have nice shit on the Internet, nor is it difficult to ensure
682.
▲
by
astrobe_
5y ago
And that's yet another reason why we have to have ad blockers.
683.
▲
by
astrobe_
5y ago
> it's hard to decipher what your code is doing after you've written it. Not in my experience. I even recycled "throw-away" scripts - thing that were written as "write-only" - a couple of times. I also conti
684.
▲
by
astrobe_
5y ago
> how much better our programming languages, libraries, APIs, IDEs, linters, etc have become It's just libraries, really. Or libraries are 80% of the gain. So it's less about automation and tools and more about code reuse (some
685.
▲
by
astrobe_
5y ago
> It's not too hard. It takes 6 years to Japanese children, who are totally immersed in and had prior exposure to this writing system. I think western children are done learning to read in 1 or 2 years. It is freaking hard.
686.
▲
by
astrobe_
5y ago
> So clearly going back to this pattern won't necessarily make everyone sleep better. And so "modernity" is not the issue, and the problem does not have a simple solution. Yes, you can have a sleep pathology, and overweigh
687.
▲
by
astrobe_
5y ago
This is even more the case with cacti and succulents, otherwise you just literally spoil them.
688.
▲
by
astrobe_
5y ago
Can confirm from around 10 years of customer support experience. Never ask close-ended question (yes/no), but open-ended ones. That is "what is the color of the motherboard" instead of "is the motherboard blue?". As
689.
▲
by
astrobe_
5y ago
> 10x software engineers are mostly 10x problem solvers who happen to be programmers I don't think it's just about problem solving, as in "solving a math problem". The 10x is, I believe, the combination of different f
690.
▲
by
astrobe_
5y ago
> Two centuries later, the liberation of France was turned, by the French imagination, into a French victory, albeit with some gallant support from the Americans No, that's absolutely not the way we think about the liberation of Eur
More ›