Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
skitter
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
9 ms
·
61.
▲
32-bit x86 Position Independent Code – It's that bad (2015)
(ewontfix.com)
2 points
by
skitter
3y ago
|
0 comments
62.
▲
by
skitter
3y ago
Odd choice to tell readers to stay tuned for the other articles instead of linking to them. The intro seems a bit superficial – if Groovy combines Java & Python, wouldn't it make sense to at least mention what inspiration it takes
63.
▲
by
skitter
3y ago
C++ makes it very difficult to write safe interfaces. You can't expose references, nor spans, nor variants, no shared_ptrs to things that can't be thread-safely overwritten, nor any standard library containers nor a lot of other t
64.
▲
by
skitter
3y ago
Could you elaborate on the differences?
65.
▲
by
skitter
3y ago
One of the commonly mentioned performance advantages of ECSs is the structure of arrays style, which Murder isn't using, so I'm guessing that they're using ECS less for performance reasons and more because they favor the prog
66.
▲
by
skitter
3y ago
New game engines and ECS frameworks are cool to see. Taking a look at the ECS part, Bang, here's an example of a component abridged/adapted from their Ludum Dare entry: internal readonly struct CarComponent : IComponent {
67.
▲
by
skitter
3y ago
Only to the extent that different instances choose to federate with Threads, of course.
68.
▲
by
skitter
3y ago
Because Rust strings are utf-8, not all byte sequences are valid strings, so you can actually store a 24-byte string inline (which is what compact_str does).
69.
▲
by
skitter
3y ago
Neat, looks like the website got an overhaul. I like Roc's approach of detecting errors statically but still trying to let you run the code. If a snippet is work in progress and has an unused variable, Go or Zig will refuse to compile
70.
▲
by
skitter
3y ago
It does, which is great. Note however that Go times can be either wall-time or (wall-time, monotonic time), which have different semantics and are both represented by the same type.
71.
▲
by
skitter
3y ago
> Then it is UTC You're absolutely right that it should be, but the problem is that it isn't – Python treats these as belonging to the local time zone.
72.
▲
by
skitter
3y ago
> BSTs however are not good for disk based storage. The listed reasons also apply to in-memory storage – searching a btree node is faster than doing the equivalent amount of pointer traversals for a binary tree. Of course this comes at t
73.
▲
by
skitter
3y ago
Timestamps aren't necessarily monotonic anyways – what if the system time changes?
74.
▲
by
skitter
3y ago
My experience of using the AUR is that a decent part of the packages I try to install fail to build, which is certainly pretty secure.
75.
▲
by
skitter
3y ago
It was in the spec but never implemented, so it's obly a feature of C++ if you take the stance that there are no real implementations of C++.
76.
▲
by
skitter
3y ago
Are abstraction layers still disallowed if they are only able to load GPL code?
77.
▲
by
skitter
3y ago
Me likewise – it makes me happy that there's an 800 word article about a pond that used to exist for less than 200 years in my town.
78.
▲
by
skitter
3y ago
In this case that's before the next bytecode executes. The write syscall gets interrupted and returns EINTR, then cpython checks what signal was caught and executes the signal handler, before trying to do the remaining write: https:&#
79.
▲
by
skitter
3y ago
Uh, that Examples section calls print inside the signal handler. Python's IO stack is non-reentrant. I hope nobody follows these examples and gets exceptions at runtime because of it.
80.
▲
by
skitter
3y ago
That's not about 'using' a reference, it's about constructing an invalid value – no different than doing transmute::<u32,char>(0x110000). See https://www.ralfj.de/blog/2020/07/15/
81.
▲
by
skitter
3y ago
That's doable in LSP - the server knows about the selection, not just the cursor position. E.g. if I use rust-analyzer (in Helix, so there aren't any protocol extension in play), select an expression and request hover info, rust-a
82.
▲
by
skitter
3y ago
> Systems are the one aspect that for me are hardest to get my head In an ECS architecture, the world is a database of entities, which are just identifiers, which have components associated with them. Systems is simply code that query t
83.
▲
by
skitter
3y ago
That page seems to be more about the entity-component architecture (entities are composed of components, which define data and behavior for one aspect of the game) then about entity-component-systems architecture (entities are composed of c
84.
▲
by
skitter
3y ago
The vulnerable piece of code didn't need memory unsafety. Sure, __minimal_malloc does, but the bug was in mundane string handling.
85.
▲
by
skitter
3y ago
And some people say string handling in C is easy. Maybe using memory unsafe languages for anything security related isn't such a good idea after all…
86.
▲
by
skitter
3y ago
'Character' doesn't have a single meaning. ZWJ is a character according to definitions (2) and (3) in https://unicode.org/glossary/#character
87.
▲
by
skitter
3y ago
Eh, you still can't pass Python objects between them. This just means that if you run multiple instances of Python, you can do so in the same process. If you use the C api.
88.
▲
by
skitter
3y ago
Hm, what JSON documents have a different meaning in YAML? I'd have hoped that with all names & strings being quoted and leading zeros being disallowed, that wouldn't be the case.
89.
▲
by
skitter
3y ago
Thanks for the clarification. I was questioning my sanity, because collect2 as described in the doc sounds not just hacky, but also like a waste of compile time.
90.
▲
by
skitter
3y ago
Wow, Collect2 sounds kinda hacky based on the linked documentation¹: - There is user code that needs to run before main. With C/C++ allowing separate compilation, the compiler invocation that creates the entrypoint doesn't know ab
More ›