Shinichiro Hamaji

Results 37 comments of Shinichiro Hamaji

This language implementation cannot be used easily because it gets input source filename from stdin and has some extra output from Python's `input`. I've sent a PR https://github.com/JonoCode9374/Keg/pull/2

Yes, this is a bug. Thanks for raising this up. These burlesque submissions were overwritten by submissions in other languages which were submitted without waiting one second. I think this...

ELVM has a stupid ABI. All integer types are unsigned and have the same size (i.e., `sizeof(char) == sizeof(int) == 1`). 1 "byte" is 24 bits in most backends (everything...

Wow, I haven't realized `fgets` is returning `int`! It's definitely a bug. It looks like there is no user of this function and that's why this issue wasn't found. I...

Ah, yours is better! Could you send a PR to re-correct the implementation? If you don't have time for it, I'll do it this night.

Yeah, it's unfortunate we cannot distinguish an EOF and a null byte and it's impossible to handle binary files without preprocessing. If it's a bug rather than a limitation, it's...

I think `fgets` was still wrong. I didn't expect `fgets` has such a corner case :) We should have returned nullptr if nothing is read while `size > 1`: https://github.com/shinh/elvm/pull/99...

The EIR to WS translator should have no issue as it emits code which limits integers to 24bit range: https://github.com/shinh/elvm/blob/18b45bc85e27a862a9367087ccbab27631a0ee96/target/ws.c#L145 I agree it does not fully utilize capability of whitespace...

As for the "Buffer overflow!", I believe I found the cause and fixed it by: https://github.com/shinh/elvm/commit/8d7508322ce71f9e95fa2ba84fbe983f214b9f07 You probably need to re-build whitespace interpreter by `touch Whitespace/whitespace.c && make test-ws` As...

I don't remember the exact step, but here's the branches: https://github.com/shinh/elvm/tree/llvm https://github.com/shinh/llvm/tree/elvm https://github.com/shinh/clang/tree/elvm It seems my copies of them were set up like: elvm/llvm: the elvm branch of llvm elvm/llvm/tools/clang:...