Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
SleepyMyroslav
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
31.
▲
by
SleepyMyroslav
1y ago
Why do you loop over haystack multiple times though? If you iterate over long string once and write fixed loop with vowels checks in way that will be friendly to autovectorize optimization it might be faster and more idiomatic C or C++.
32.
▲
by
SleepyMyroslav
1y ago
disclaimer - I work in gamedev. It certainly looks like the only thing that has any attention to it is Copilot/AI. tbh, I don't think community here actually cares about games or technical details to go through lists of topics :)
33.
▲
by
SleepyMyroslav
1y ago
While novel it also very far removed from hardware. In sense that aggregating what actually going on with work submitted from multiple queues is hard. Even gathering timing events for start stop of each can be confusing and not adequate whe
34.
▲
by
SleepyMyroslav
1y ago
>Personally, I find the idea that a compiler might be able to reach outside itself completely terrifying (Access the network or a database? Are you nuts?). In gamedev code is small part of the end product. "Data-driven" is the
35.
▲
by
SleepyMyroslav
1y ago
I would say that Highway [1] comes close. Can't say anything about ISPC because in gamedev work it never even came into consideration for multiple platforms. 1. https://google.github.io/highway/en/master/
36.
▲
by
SleepyMyroslav
1y ago
Technically CMake is still not official way to build Boost libraries. A link to latest docs: https://www.boost.org/doc/libs/1_88_0/more/getting_started/u... While it might look like technicality the
37.
▲
by
SleepyMyroslav
1y ago
if you plan to look at pointer provenance please check recent HN discussions like this one ( https://news.ycombinator.com/item?id=42878450 ) and transitively links to source papers for C. TLDR (imho) C has failed to define
38.
▲
by
SleepyMyroslav
1y ago
Judging from 'comparing pointers of different provenance' can produce 'any result' ( here https://c3-lang.org/language-rules/undefined-behaviour/#list... ) everyone has to deal with it. More lo
39.
▲
by
SleepyMyroslav
1y ago
A low effort question on what's C3 take on pointer provenance. Does C3 have any own take on it? Are you with C or with your implementation detail (LLVM) ? Also if you have 'tourist guide' for gamedev people please share links
40.
▲
by
SleepyMyroslav
1y ago
What do you think about 'par_iter' having to wait for work imbalance to return execution back? With 'when_all' like primitive one can continue execution on any thread without losing one for waiting. ps as someone who do
41.
▲
by
SleepyMyroslav
2y ago
Rant. I do not see any improvement in the outcome code. Lets not nitpick on fast parsing and just scroll through unnecessary code actions. > ... u8line(move(line)) We are not reusing parsed line object between iterations. Forcing fresh a
42.
▲
by
SleepyMyroslav
2y ago
Fun fact that we have burned those bridges years ago. Every time big codebase updates it's main optimizing toolchain (compiler/linker) ... there is nothing deterministic and predictable. There is only what has been re-tested and w
43.
▲
by
SleepyMyroslav
2y ago
Good luck with metaprogramming. It looks cool. No worries, I got your message about target audience first time. It's just that language development for me is where I did some things. Langdev is an open ended problem. I wish I could exp
44.
▲
by
SleepyMyroslav
2y ago
I guess I need to illustrate my points a bit because I never needed to poke kernels and my concerns are mostly from large games. I am trying to imagine writing large games in your language so please bear with me for a moment. >Modules No
45.
▲
by
SleepyMyroslav
2y ago
I think you don't need any rants but here it goes anyway. Ditching headers does not solve anything at least if your language targets include performance or my beloved example Gamedev =) . You will have to consume headers until operatin
46.
▲
by
SleepyMyroslav
2y ago
Thanks! Updated results are interesting.
47.
▲
by
SleepyMyroslav
2y ago
Non video version is there [0]. My take on it is that there are no 'language comparisons' there. Difference is between older and newer algorithms and benchmark favorite is written in C. Its cool that new algorithms are implemented
48.
▲
by
SleepyMyroslav
2y ago
Do you happen to have a link for benchmark ? i would like to learn what i miss happening in rust. Last time i read about sort implementations here on HN [0] rust panic safety had some measurable costs: 0. https://news.ycombina
49.
▲
by
SleepyMyroslav
2y ago
As much as I (as engine/performance guy) would like to see strings gone we have not eliminated them. Passing allocators hit a brick wall because most of the code is threaded tasks and to make something that will go into another async A
50.
▲
by
SleepyMyroslav
2y ago
Thx for linked thread. It was an interesting read to me. I have got a feeling that the division comes from two different system programming folks. Hard realtime folks see unbounded time and uh-oh its fatal. On other side soft realtime folks
51.
▲
by
SleepyMyroslav
2y ago
>A global allocator is IMHO worse than either alternative though. Just fyi, console games settled on global allocator. Because everyone allocates and game needs to run at say 7 out 8Gb used consistently. It makes folks passing around poi
52.
▲
by
SleepyMyroslav
2y ago
Many orgs want to save costs while using open software. In a world after xz incident they are now in very difficult place. It is all about whom do one trusts. As someone who works in such costs aware business as gamedev I think Rust has uni
53.
▲
by
SleepyMyroslav
2y ago
In gamedev a lot of people read those docs but not a lot of them shipped anything using it. The reason is that file paths are not everything that has A/W versions. There is user input, window message handling ... The API is a maze. I r
54.
▲
by
SleepyMyroslav
2y ago
Well the pool code fails to use char* type to write inside block of memory. If you look at 'pool_free' code you can see that it receives used block from user as 'ptr' then casts it to 'Chunk pointer' and writes
55.
▲
by
SleepyMyroslav
2y ago
If we ignore 'buggy' part I think you projecting current good state back into not so good old times. I am pretty sure you will not replace radix sort that uses domain knowledge of reduced value range with qsort circa C++98. Things
56.
▲
by
SleepyMyroslav
2y ago
A code tends to be reused. When it happens jira is not likely to travel alongside the code. All 'older' jira tickets are useless broken links. All you have in practice is jira name. It usually happen with 'internal documentat
57.
▲
by
SleepyMyroslav
2y ago
After trying to turn day 4 part 2 as example to my colleagues I came back to check the site. Day 1 winner seems like what I would have expected so thanks for the link! Sry, can't upvote because I mostly read HN not logged in so I still
58.
▲
by
SleepyMyroslav
2y ago
I appreciate your perspective and it is correct. I should have phrased it differently. Imho: I worked with code that has long history for my entire career. If the goal is to look at some objective quality of solution then I do not believe i
59.
▲
by
SleepyMyroslav
2y ago
>Participants have 36 hours Looks like it is for young people who have dedicated time for it everyday. Personally I would like to do anything like this with no time limit and probably no monetary prizes. I think the only value of those p
60.
▲
by
SleepyMyroslav
2y ago
It is normal for coding to seek feedback from others to your solution. Even if it is automated. Looking at 'competing' solutions after you spent time on yours can teach how others think. Improving code after you learned new facts
More ›