rd4com
rd4com
MModular
Created by rd4com on 8/2/2024 in #community-showcase
🔥🎨🎛 mojo_neovim_theme_app
No description
3 replies
MModular
Created by rd4com on 6/19/2024 in #community-showcase
🦺 mojo_dev_helper
No description
5 replies
MModular
Created by rd4com on 6/15/2024 in #community-showcase
Small typestate for heap using parameters
https://github.com/rd4com/small_typestate POC, to cultivate ideas about parameters
1 replies
MModular
Created by rd4com on 5/13/2024 in #community-showcase
🥼 🐒 mojo small tests runner
Hello, here is a new small project using the apache 2.0 LLVM exceptions license! https://github.com/rd4com/mojo-small-tests-runner
1 replies
MModular
Created by rd4com on 10/21/2023 in #questions
Swapping pointers would cause memory problems ?
Hello, does this code would cause problems please? the motivation is to not allocate another pointer of the same size and not do a copy
var fd = open("stories15M.bin","r")
var data = fd.read()
fd.close()

let cp_buf = data._as_ptr().bitcast[DType.uint8]()
data._buffer.data = data._buffer.data.get_null().alloc(1)
data._buffer.size = 1
data._buffer.capacity = 1
_=data
var fd = open("stories15M.bin","r")
var data = fd.read()
fd.close()

let cp_buf = data._as_ptr().bitcast[DType.uint8]()
data._buffer.data = data._buffer.data.get_null().alloc(1)
data._buffer.size = 1
data._buffer.capacity = 1
_=data
https://github.com/tairov/llama2.mojo/pull/50
2 replies