Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
Yokohiii
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
14 ms
·
331.
▲
by
Yokohiii
10mo ago
The suggestions are really all over the place. Feels AI.
332.
▲
by
Yokohiii
10mo ago
doesn't make sense.
333.
▲
by
Yokohiii
11mo ago
The silly thing is that I've been the same when I started. A high energy kid playing around and celebrating everything fresh and new, with a big ego. Probably a bad habit trying to stop them, they need to learn walking before they can
334.
▲
by
Yokohiii
11mo ago
There is a option -smallframes that seems to be intended for conservative use cases. Below are the related configs and a test at what point they escape (+1). // -smallframes // ir.MaxStackVarSize = 64 * 1024 
335.
▲
by
Yokohiii
11mo ago
What are the options? Repeated allocations are a huge performance sink.
336.
▲
by
Yokohiii
11mo ago
Well I guess I am not clear enough. Naming stuff is a normal human habit, maybe even why we have language? So we can agree on that, it's helpful. But you say it yourself, a thing is called different in another language, so the thing is
337.
▲
by
Yokohiii
11mo ago
I found my issue, I was creating a 256 item fixed array of a 2*uint8 struct in my code. That was enough to cause newstack calls. It now went down from varying 10% to roughly 1%. Oddly enough it didn't change the ns/op a bit. I gue
338.
▲
by
Yokohiii
11mo ago
Ok no problem. Take a good sleep soon!
339.
▲
by
Yokohiii
11mo ago
Oh my mistake I was thinking of individual donations, which may be implied as some premium service. I think a company/org sponsor should be more professional. In theory you can just cancel a sponsor if it doesn't fit. You can turn
340.
▲
by
Yokohiii
11mo ago
I am stuck with your phrasing. Duplication is for me something like cloning or a perfect copy. Which I think is unusual. You will find a chinese phone that looks like an iPhone but is totally different and magnitudes cheaper. What you talk
341.
▲
by
Yokohiii
11mo ago
I am confused on your use of "duplicating". I think straight duplication is quite unlikely. You even say it's inevitable. Which is also confusing. Most code written is probably quite unremarkable, yet useful. Usefulness is a
342.
▲
by
Yokohiii
11mo ago
Sponsors can have quite a bit more entitlement then the average github dude. But well, maybe if you lock it down for sponsors the stress level is overall lower.
343.
▲
by
Yokohiii
11mo ago
My point (and that of the previous poster) is that "wow" isn't required as an initial property to do anything. Pretty sure the dude who made the first wheel just did something that was useful for him in that situation. He did
344.
▲
by
Yokohiii
11mo ago
> Aside from where you've only duplicated something that already exists (in which case why bother?) If we had stopped reiterating on the wheel our cars would drive on wooden logs.
345.
▲
by
Yokohiii
11mo ago
It's weird that this thread argues to keep the fun in hobby projects and you ask for the exact opposite.
346.
▲
by
Yokohiii
11mo ago
I have mixed feelings about this. I think Julian Assange once said he would refer to things in discussion just as "Tomato" (or similar), in discussion to have a shortcut for something unnamed with some meaning. We do this all day
347.
▲
by
Yokohiii
11mo ago
I think we mix things up here. But be aware of my newbie knowledge. I am pretty sure the escape analysis doesn't affect the initial stack size. Escape analysis does determine where an allocation lives. So if your allocation is lower th
348.
▲
by
Yokohiii
11mo ago
I never heard of "stack analyzer" and didn't get meaningful results for it, do you mean escape analysis?
349.
▲
by
Yokohiii
11mo ago
Escape analysis sends large allocation to the stack. The information is there.
350.
▲
by
Yokohiii
11mo ago
Escape analysis accounts for size, so it wouldn't even permit it. The initial stack size seems to be 2kb, a more on a few systems. So far I understand you can allocate a large local i.e. 8kb, that doesn't escape and grow the stack
351.
▲
by
Yokohiii
11mo ago
Can you elaborate on the stack analyzer? All I could figure out was to see runtime.morestack calls that affected the runtime, but as far I remember the caller timings did exclude the cost. Having a clearer view of stack grow rates would be
352.
▲
by
Yokohiii
11mo ago
I am currently learning go and your comment made me sort some things out, but probably in a counterintuitive way. Assuming to everything allocates on the heap, will solve this specific confusion. My understanding is that C will let you cras
353.
▲
by
Yokohiii
11mo ago
Pointers escape to the heap by default.
354.
▲
by
Yokohiii
11mo ago
You point out the cultural issue that this creates and sweep it under the rug, violently. The thought model complicates the process of writing new code, "what pattern do i need here?" and the perception of existing code, "oh
355.
▲
by
Yokohiii
11mo ago
I am a bit confused about the API pollution issue with arenas. I think it's a valid point to think about, but at the same time I don't think the average dev will do any extra steps for the faster thing to do.
356.
▲
by
Yokohiii
11mo ago
It's more like fighting ideology. Each language goes long ways to teach their idiomatic ways, but if it comes to performance most languages break down at that point. Writing fast code makes you feel dirty, but the fault is in the const
357.
▲
by
Yokohiii
11mo ago
Look at PHP. Every year people say PHP got much better then in the dark ages. Yes it got rid of it's rough edges. People solely look positive at it because it has become more familiar with mainstream OOP languages. But it has no identi
358.
▲
by
Yokohiii
11mo ago
Saying a rug pull scheme isn't a rug pull scheme does absolutely nothing.
359.
▲
by
Yokohiii
11mo ago
This is really terrible. My brain instantly goes on standby trying to read any of this walls of text.
360.
▲
by
Yokohiii
11mo ago
You ask a question and immediately give the answer. Do you just want to plug your blog?
More ›