!ljJqpjxnGdWXKfxxSV:matrix.org

Redox OS/Random

319 Members
Off-topic chat for Redox OS29 Servers

Load older messages


SenderMessageTime
14 Jan 2025
@_discord_323886446731853825:t2bot.ioganipote https://opensource.googleblog.com/2025/01/google-summer-of-code-2025-is-here.html 23:35:16
@rw_van:matrix.orgRon WilliamsThanks, I will look into it.23:49:48
15 Jan 2025
@draft_isa:matrix.orgRibbonNice. https://www.phoronix.com/news/Intel-Perf-Tips-Linux-Graphics10:53:37
@draft_isa:matrix.orgRibbonhttps://www.phoronix.com/news/Rsync-3.4-Released10:54:19
@draft_isa:matrix.orgRibbonNICE. https://www.phoronix.com/news/AMD-Preferred-Core-Better-6.1412:41:59
@draft_isa:matrix.orgRibbonNICE!! https://www.phoronix.com/news/Xen-RISC-V-Linux-Patches12:43:04
@draft_isa:matrix.orgRibbonhttps://www.phoronix.com/news/GNOME-48-Triple-Buffering-Jan15:19:14
@draft_isa:matrix.orgRibbonhttps://www.phoronix.com/news/Linux-6.14-PCIe-NVMe-Target-EPF17:08:30
@teskje:matrix.orgteskje joined the room.17:12:54
@_discord_323886446731853825:t2bot.ioganipote https://corrode.dev/blog/prototyping/ 17:18:05
@_discord_323886446731853825:t2bot.ioganipote * https://corrode.dev/blog/prototyping/

About prototyping in Rust
17:34:12
@gimmedasauce:matrix.orggimmedasauceimage.png
Download image.png
19:42:00
@gimmedasauce:matrix.orggimmedasaucewhat even is the question here19:42:16
@draft_isa:matrix.orgRibbonIt doesn't make any sense, lol.19:44:55
@gimmedasauce:matrix.orggimmedasaucewasn't expecting a response technically i didn't get one not to my request for a source stating that memory leaks were ever considered unsafe in rust 19:45:07
@gimmedasauce:matrix.orggimmedasaucethe docs say that there was discussion about making them unsafe but the devs realized it was insane to try19:46:26
@draft_isa:matrix.orgRibbonAMAZING!! https://www.phoronix.com/news/Intel-THC-For-Linux-6.1419:56:37
@teskje:matrix.orgteskje
In reply to @gimmedasauce:matrix.org
wasn't expecting a response
technically i didn't get one
not to my request for a source stating that memory leaks were ever considered unsafe in rust
I have no context on your discussion, but here is a source: https://rust-lang.github.io/rfcs/1066-safe-mem-forget.html
20:22:04
@auronandace:matrix.orgauronandaceSeems to be pointing out that if a system runs out of memory due to a memory leak then it will result in undefined behaviour. If you have no more memory then what happens when you try to allocate something? That entirely depends on the allocator you are using. That is firmly in unsafe territory. They can assume infallible allocation which could lead to undefined behaviour.20:28:52
@auronandace:matrix.orgauronandaceThis is why it is important to identify and fix any unintentional memory leaks.20:29:58
@bjorn3:mozilla.orgbjorn3 If GlobalAlloc::alloc fails, it will return a NULL pointer, which callers are supposed to either gracefully handle or call std::alloc::handle_alloc_error, the later of which currently always aborts (no UB), but may also panic (no UB). In low memory conditions the kernel may also decide to OOM kill (no UB), the target of which can be any process, including one which hasn't allocated any memory ever (eg because the executable size is bigger than the total size of all other processes, or just because all other processes have the OOM adjustment such that they won't ever get OOM killed). 20:37:12
@bjorn3:mozilla.orgbjorn3I repeat, leaks do not cause UB!20:37:51
@bjorn3:mozilla.orgbjorn3Leaks are correctness issues, but not safety issues.20:38:12
@auronandace:matrix.orgauronandaceAwesome, thanks for the clarification!20:38:20
@auronandace:matrix.orgauronandaceThe safety section seems to suggest a panic can lead to memory unsafety: https://doc.rust-lang.org/std/alloc/trait.GlobalAlloc.html20:40:38
@bjorn3:mozilla.orgbjorn3 GlobalAlloc::alloc itself may never panic, but std::alloc::handle_alloc_error may. 20:42:20
@auronandace:matrix.orgauronandaceAh, so how you implement it.20:42:45
@bjorn3:mozilla.orgbjorn3A GlobalAlloc::alloc impl must report allocation failure by returning a NULL pointer, not by unwinding.20:42:54
@auronandace:matrix.orgauronandacehttps://seanmonstar.com/blog/2024-in-review/21:00:52
@rw_van:matrix.orgRon Williams Even if the allocator returns an error instead of panicking, you can still run out of stack, which is admittedly harder to deal with. So technically, calling a function is as unsafe as allocating on the heap. To make using memory "safe", you would have to have a function caller that returns error if it's out of stack space and an allocator that returns error if it's out of heap space. 21:56:37

There are no newer messages yet.


Back to Room ListRoom Version: 9