Repository navigation
dasLLAMA library on any x86-64: half converts without F16C, dasllama_core, PCM stream API - #4229
Merged
Merged
Conversation
aleksisch
force-pushed
the
aleksisch/dasllama-speech
branch
8 times, most recently
from
October 11, 2026 17:00
90df8d8 to
070464c
Compare
has_intrinsic and lookup_intinsic each repeated the same ten gated table lookups. get_intrinsic now holds the target dispatch once, and both call it. No change in emitted code.
Without F16C, half converts fell back to the interpreter, and a -lib library died with "null function". build_fp_convert now converts in IR there (ports of das_float16_to_float / das_float_to_float16).
The fp16 operators convert through build_fp_convert, so g_lattice_fp16_ops_native is gone. The emitter checks operators in one place: isCompareOp2 and get_float_arith_op.
dasllama_core is the engine without the audio and image file decoders, so a program that hands it samples links no miniaudio, HRTF or stb_image. dasllama/dasllama stays core plus the decoders. The WAV encoders, pure daslang, move to dasllama_wav in core.
A game passes samples, not files. The library takes them through asr_listen / asr_feed / asr_listen_end and speaks into memory through tts_speak / tts_pcm; asr_transcribe and tts_say are gone, and the hosts do their own WAV I/O. It requires dasllama_core.
speak, run, chat and wasm/dlim_config read no audio or image file, so they no longer need the audio and stbimage modules.
The JIT simulates unfused, so the runner's semantic hash differs from an interpreted run's. Building the -exe tool or running lint under -jit restamped the cache and emptied it, and the interpreted lint chunks that ran next emptied it again. A JIT compile now neither checks nor stamps the cache, and a -jit run lints without it (jit_enabled(), after is_standalone_exe() so the exe never asks), so it never reads entries an older rule set wrote.
aleksisch
force-pushed
the
aleksisch/dasllama-speech
branch
from
October 12, 2026 08:46
070464c to
989dcf0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makes
examples/dasLLAMA/libraryusable as a native speech library for games: it runs on any x86-64 CPU and links no decoder.get_intrinsicholds the target dispatch once; no change in emitted code.-liblibrary died with "null function";build_fp_convertnow converts in IR there.g_lattice_fp16_ops_nativeis gone, operator checks live inisCompareOp2/get_float_arith_op.dasllama/dasllamastays core plus the decoders.asr_listen/asr_feed/asr_listen_end,tts_speak/tts_pcm; the hosts do their own WAV I/O.