ChanServ changed the topic of #zig to: zig programming language | | be excellent to each other | channel logs:
<Snektron> Is cache_hash.zig ready for usage in build.zig? i'm trying to write some code generation stuff
ur5us has quit [Ping timeout: 256 seconds]
swills has joined #zig
<andrewrk> probably not quite yet
<Snektron> Right. Do you have a recommendation for an alternative approach?
aerona has joined #zig
<leeward> Oh cool, llvm isn't filling in the interrupt vectors when it generates this code. That explains a bit.
blinghound has quit [Remote host closed the connection]
craigo has quit [Ping timeout: 264 seconds]
<andrewrk> lemmi, in your hash map example code for Euler 14, is the ensureCapacity intended to be a true upper bound? or is it just a heuristic?
<andrewrk> I'm observing 22022059 puts even though the ensureCapacity sets it to 2000000
<leeward> Right, of course. The linker does that, and llvm uses gcc's linker for avr.
<leeward> \o/ executing Zig code on an AVR, it's not crashing, and functions are working.
<leeward> It's an awful pile of hacks on top of kludges, but it works.
<leeward> And it works in debug mode!
<leeward> Next step: simplify this linker command.
<leeward> andrewrk: It looks like some of the experimental llvm targets use GCC's ld to link. Does Zig have any way to deal with this? If not, I think we'll have to emit .o files and link them in a separate step. I'm certainly not in a hurry to add ld as an actual Zig dependency, but maybe it could use it if it's available?
<andrewrk> it's not planned for zig to ever be a driver of external system tools
<andrewrk> we'll gain support for linking avr within the zig project itself
<andrewrk> our goal is not to catch up to gcc; it's to surpass it :)
<leeward> Ok, so for all the llvm targets that use gcc as a linker the plan is to implement (or add a configuration for) a linker in Zig?
<leeward> I'm guessing that's ultimately true for all the targets llvm has, regardless of how it handles them.
<andrewrk> yes, or ditch the llvm backend altogether in favor of the pure self hosted one
<leeward> Ok, cool. Ambitious, but cool.
<leeward> found a 3A USB power supply, so it's time to try building Zig on an RPi 1B again.
aerona has quit [Quit: Leaving]
stripedpajamas has joined #zig
aerona has joined #zig
forgot-password has quit [Ping timeout: 240 seconds]
<yeti> leeward: do you have some public notes about zig+AVR in the net?
<leeward> yeti: not yeti
<yeti> sleep on it... ;-)
forgot-password has joined #zig
<yeti> is there a way to ask zig/llvm on a system to detect the nedded cpu settings?
<leeward> needed cpu settings for what?
<leeward> like, for targeting your build host?
<yeti> I stlll have crashes on Pi2 and Cubietruck
<leeward> 'cause that's native-native-native
<leeward> or just no -target
waleee-cl has quit [Quit: Connection closed for inactivity]
<yeti> te downloaded armhf zig crashes compiling some c files
<yeti> the self build one needes some extra flags not to use wrong instructions
<yeti> zig-bootstapp -j# native-native-native native would work?
<yeti> I've bootstraps running with arm-linux-musleabihf baseline (and nativ) on 2 Pi2 and 2 Cubietrucks but am not really sure that it is the right triple
<yeti> raspian on pi2, devuan on cubie3
forgot-password has quit [Ping timeout: 246 seconds]
fraktor has quit [Ping timeout: 256 seconds]
<andrewrk> I need some more hash map benchmarks to figure out if #5786 is an improvement or not
<yeti> Lets hope for no blackouts by thunderstor,... I'm prpard to maybe need to wait a week
<lemmi> andrewrk: i was running straces and just put in a number such that only one allocation was necessary.
stripedpajamas has quit [Quit: sleeping...]
<lemmi> andrewrk: my thought was to not benchmark the allocator, so i just tried a couple of numbers and 2M were good enough.
dingenskirchen has quit [Quit: dingenskirchen]
dingenskirchen1 has joined #zig
dingenskirchen1 is now known as dingenskirchen
Mulugruntz has joined #zig
aerona has quit [Quit: Leaving]
_whitelogger has joined #zig
stripedpajamas has joined #zig
_whitelogger has joined #zig
stripedpajamas has quit [Quit: sleeping...]
dddddd has quit [Remote host closed the connection]
<yeti> \o/ thanks!
marnix has joined #zig
stripedpajamas has joined #zig
_whitelogger has joined #zig
marnix has quit [Ping timeout: 244 seconds]
stripedpajamas has quit [Quit: sleeping...]
<andrewrk> lemmi, makes sense, thanks
<andrewrk> hmm yes I think that is a bug. also you can use @splat(16, true) instead of the array cast
<lemmi> andrewrk: yeah, i had about 10 versions of this and was just short of doubting my sanity :D
<andrewrk> lemmi, it appears to be a bug in @bitCast which you can work around with @ptrCast
<andrewrk> const u = @ptrCast(*const u16, &v).*;
<lemmi> ok, good to know
<lemmi> thx
Techcable_ has quit [Quit: ZNC -]
Techcable has joined #zig
Techcable has quit [Remote host closed the connection]
Techcable has joined #zig
josias has joined #zig
dermetfan has joined #zig
josias has quit [Remote host closed the connection]
_whitelogger has joined #zig
discipulus has joined #zig
ifreund has quit [Ping timeout: 240 seconds]
ifreund has joined #zig
craigo has joined #zig
marnix has joined #zig
dermetfan has quit [Ping timeout: 244 seconds]
dddddd has joined #zig
VojtechStep has quit [Quit: ERC (IRC client for Emacs 28.0.50)]
forgot-password has joined #zig
discipulus has left #zig [#zig]
dermetfan has joined #zig
_whitelogger has joined #zig
marnix has quit [Ping timeout: 256 seconds]