Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jheriko
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
59 ms
·
541.
▲
by
jheriko
11y ago
true. i wasn't just thinking about performance but also budgetting. using memory as an endless resource without thinking seems to be standard practice rather than something that is considered "sloppy". there is also the pract
542.
▲
by
jheriko
11y ago
i'm not sure using a dynamic late scripting language is an excuse for pretending memory is infinite. :) but yes... i do have frustration from "highly skilled native programmers" who seem to think that memory is a boundless re
543.
▲
by
jheriko
11y ago
in a sense yes, but its not a realistic way to use the term. what happens is that the stack is once dynamically allocated up-front when the thread is created and an index into that blob of memory is incremented and decremented as appropriat
544.
▲
by
jheriko
11y ago
i'm not a fan of that religious statement. its assuming it is premature. STL is not too bad either. you can make it work with budgets too... implementing a custom allocator is a pain, but there are lots of ways to not write code that i
545.
▲
by
jheriko
11y ago
you are probably right
546.
▲
by
jheriko
11y ago
oh sure. this is definitely the case... but we all notice this right? its not really a secret and i don't think it needs scaremongering about. i can remember asking my parents about this 20+ years ago the first time we bothered to sque
547.
▲
by
jheriko
11y ago
why? it is extremely annoying. is it in the guidelines or something? i can't see anything...
548.
▲
by
jheriko
11y ago
it does feel a little backwards, but i can see the utility. i still hope there is a better solution out there for memory management than using a GC. they are pretty much golden sledgehammers for this problem and enable lots of very bad prac
549.
▲
by
jheriko
11y ago
sizeof( void* ) is free at run-time. if not then the compiler team should rethink their careers...
550.
▲
by
jheriko
11y ago
i'm not sure i care that much tbh. this is a tiny part of the price i pay for being able to buy it in a shop from bulk suppliers rather than having to juice my own fruit... besides that, i don't think its a heavy price to pay - i&
551.
▲
by
jheriko
11y ago
there are just three things i wish programmers knew about memory... none of them are especially low-level or require depth of understanding. never dynamically allocate it unless forced. really. never allocate at run-time it unless you are a
552.
▲
by
jheriko
11y ago
i can see why this might be useful in reducing the amount of code typed, but it makes things harder to read and debug by moving the null check somewhere hidden. i guess its something you could get used to though...
553.
▲
by
jheriko
11y ago
it enables you to do lots of maths in parallel in a pretty scalable way.
554.
▲
by
jheriko
11y ago
true, and pseudotensor can be a mouthful too, but its still confusing.
555.
▲
by
jheriko
11y ago
i really wish people would stop calling multidimensional arrays tensors. there is already well defined language for this. multidimensional array is fine, psuedotensor is fine. tensor is confusing if you have any previous background with ten
556.
▲
by
jheriko
11y ago
5 minutes of google research demonstrates that this article is wild speculation and that the evidence points to something completely different. reading it gives a pretty strong hint on its own tbh... sensationalist garbage.
557.
▲
by
jheriko
11y ago
surely the perils of users using shoddy app stores and installers rather than developers using native libraries. kudos to the devs for making the effort to workaround the issues though, its quite a heroic effort imo.
558.
▲
by
jheriko
11y ago
i'm not entirely sure this is worthy of a paper... its pretty much a common sense conclusion to reach if you've ever tried to use these things that the UX is usually terrible - even by the standards of a technical user. too many m
559.
▲
by
jheriko
11y ago
most people try this tbh. its common sense. its why you do things like register your company, pay your taxes, get legal advice. its exceptionally normal behaviour until recently it seems... we used to call people who didn't do this &#x
560.
▲
by
jheriko
11y ago
re coherence there is missing context. have you ever tried to build webrtc, for example? (its the worst case i've hit tbh, not all of google's stuff is /that/ bad) its a nightmare. some of the dependencies are utterly ho
561.
▲
by
jheriko
11y ago
generally i use whatever tools come with the standard ide for the platform. so yes, msbuild, if i need to do a build from a command line for protecting my main branch or something like CI. on mac its xcodebuild, on linux i tend to use make.
562.
▲
by
jheriko
11y ago
how long until they get it to build properly i wonder? XD sorry... just can't help but poke fun at these tools i've never needed except in the linux environment. every time i get something from google and need to build it its a ni
563.
▲
by
jheriko
11y ago
i'm pretty sure the simpler answer to this is to always merge, never use a fastfoward, never rebase and to accept history as what it is instead of trying to change it to make it 'more manageable' or whatever. changing the pas
564.
▲
by
jheriko
11y ago
when you start a company your approach should be beyond reproach. red tape and nitpicking are things to welcome as part of a high quality bar - as annoying as they maybe - not to write off as inconvenient annoyances. when you have your shit
565.
▲
by
jheriko
11y ago
i think its a joke... if not then its just a stab at theocracy.
566.
▲
by
jheriko
11y ago
yeah, but the fact that the static data area is marked as executable is luck rather than reliability.
567.
▲
by
jheriko
11y ago
decent engineers aren't tied to one platform, so this is not really a valid argument imo. career progression goes faster if you aren't limited by these sorts of choices. being able to learn something new fast and apply the same pr
568.
▲
by
jheriko
11y ago
i dunno. i'd say they are dealing with a very classically well solved set of problems. its fairly trivial stuff... although i'm sure they have made their own problems for themselves whilst approaching it.
569.
▲
by
jheriko
11y ago
i used to use that same function pointer cast trick to execute bytes from memory a long time ago. you should find that it fails in most modern execution environments... in legacy/desktop windows you can virtualalloc things to be execut
570.
▲
by
jheriko
11y ago
that is a useful piece of information. i'll remember this in future... i'm sure it might come in handy.
More ›