ElegantBeef
Re:Keep Android Open
on Wednesday October 29, 2025 @01:57AM (#45743147)
If you're cheap like me a used Pixel3a is a grand device.
Re:Ask HN: What are you working on (August 2024)?
on Saturday August 24, 2024 @07:53PM (#41342957)
Working on a hot code reloading library for Nim. It's a general solution, but specifically for my game framework.
An example of it in action: https://streamable.com/2mxktc
Source code: https://github.com/beef331/potato
Re:Tachyonfx: A library for creating shader-like effects in terminal UIs
on Tuesday June 25, 2024 @08:10PM (#40795139)
There's not much more to share presently. The game presently is very far from having gameplay. The "terminot" part is MIT licensed inside the game repo. The game itself is presently GPL3 licensed.
Small hacking game: https://streamable.com/q840oc
Source: https://github.com/beef331/keyboardwarrior/blob/master/scree...
Re:Tachyonfx: A library for creating shader-like effects in terminal UIs
on Monday June 24, 2024 @07:36PM (#40782383)
As someone working a TUI game I wanted stuff like this myself so just wrote what I now refer to as a "terminot". Actual shaders and non grid align rendering. Nice to see people attempt to emulate it in a proper terminal emulator.
If anyone is interested in what a terminot does: https://streamable.com/t5kz2y
Re:Arraymancer – Deep Learning Nim Library
on Friday March 29, 2024 @03:59AM (#39861621)
It does not formally have variadics, but since it has tuples you can have pretend variadic generics.
Re:Can you use a class in C?
on Monday August 14, 2023 @02:00AM (#37117953)
Again that's this language constraining you to that. With procedure overloading it's not required that you have to have that ugly API. For instance the following is valid Nim:
type
Cat = object # these are just 'struct' in a different skin
Dog = object
proc greet(c: Cat): string = "Meow"
proc greet(d: Dog): string = "Bark"
assert Dog().greet() == "Bark"
assert Cat().greet() == "Meow"
Re:Nim v2.0 Released
on Tuesday August 01, 2023 @04:33PM (#36962348)
I use pixie for my game framework. It's used to load textures, layout fonts, and render font atlases. It can be used for generative art but https://github.com/EriKWDev/nanim or sdl2 using renderer's makes more sense as they are gpu accelerated.
Re:Nim v2.0 Released
on Tuesday August 01, 2023 @03:06PM (#36960927)
They likely read "overloadable enums" and went "Oh Rust calls their tagged unions enums" so assumed all languages did.
Re:Nim v2.0 Released
on Tuesday August 01, 2023 @03:05PM (#36960904)
> It lacks proper sum types
We've talked about this before! You know it has sum types, just not the variation you want.
Re:Nim v2.0 Released
on Tuesday August 01, 2023 @03:02PM (#36960861)
I do not use Rust, so sadly I have not.
Re:Nim v2.0 Released
on Tuesday August 01, 2023 @02:39PM (#36960432)
> default behaviour is pass by value
Is not exactly true, smaller than 24 bytes is passed by value, the compiler optimizes larger calls and passes by reference implicitly.
Re:Nim v2.0 Released
on Tuesday August 01, 2023 @02:38PM (#36960408)
For Rust at least one can use https://github.com/arnetheduck/nbindgen
Re:Nim Succession Plan
on Monday July 03, 2023 @04:07PM (#36578103)
Ah, yes the French, people historically known for good protests. If only that somehow related to the conversation at hand.
Re:Nim Succession Plan
on Sunday July 02, 2023 @04:37PM (#36565436)
As a contributor it is still an awful non sequitur that does not answer the question, and brings up a fantastical world.
Re:Valve Releases Proton 8.0-1c
on Monday April 17, 2023 @10:49PM (#35609390)
If you care DayZ was BE enabled back in like October if my memory serves me correctly. The Cycle always supported it through Proton. Hunt recently enabled it like a month ago(finally, HMMMMing on linux is good).
Re:Valve Releases Proton 8.0-1c
on Monday April 17, 2023 @06:23PM (#35607453)
Hunt, Dayz(as does Arma3 and Reforger), and The Cycle all work on Linux.
Re:This Month with Nim: March 2023
on Thursday April 06, 2023 @08:47PM (#35476643)
Well there is a practical reason that in a whitespace significant language you do not want to mix indentation types. I personally prefer tabs for the user customization, but the actual reasoning that generally speaking it was(is?) hard to get tabs to render as you want in a multitude of environments whereas spaces always render as is.
Quick someone reset the inane "Days since mentioning style insensitivity".
Re:This Month with Nim: March 2023
on Thursday April 06, 2023 @08:43PM (#35476615)
Indent size is up to the programmer.
Re:I learned 7 programming languages so you don't have to...
on Sunday February 12, 2023 @05:11PM (#34767650)
To explain 'why' it behaves this way is quite simple the stdlib does not have slicing operators for all of your expected cases, Nim does not have postfix operators(aside from [], {}, *) so 3.. is just impossible to define. If one really wanted to https://play.nim-lang.org/#ix=4nSQ solves most of the issues.