Readit News logoReadit News
ElegantBeef commented on Keep Android Open   keepandroidopen.org/... · Posted by u/LorenDB
999900000999 · 4 months ago
Which brand do you suggest ?

Google wants my apartment lease to let me distribute free games, so I just won't support their platform.

This is not about security, it's about control.

ElegantBeef · 4 months ago
If you're cheap like me a used Pixel3a is a grand device.
ElegantBeef commented on Ask HN: What are you working on (August 2024)?    · Posted by u/david927
ElegantBeef · 2 years ago
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

ElegantBeef commented on Tachyonfx: A library for creating shader-like effects in terminal UIs   github.com/junkdog/tachyo... · Posted by u/orhunp_
altairprime · 2 years ago
Hi yes interested, please share more!
ElegantBeef · 2 years ago
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...

ElegantBeef commented on Tachyonfx: A library for creating shader-like effects in terminal UIs   github.com/junkdog/tachyo... · Posted by u/orhunp_
ElegantBeef · 2 years ago
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

ElegantBeef commented on Arraymancer – Deep learning Nim library   github.com/mratsim/Arraym... · Posted by u/archargelod
logicchains · 2 years ago
Interesting that it "Supports tensors of up to 6 dimensions". Is it difficult to support an arbitrary number of dimensions, e.g. does Nim lack variadic generics?
ElegantBeef · 2 years ago
It does not formally have variadics, but since it has tuples you can have pretend variadic generics.
ElegantBeef commented on Can you use a class in C?   d4ckard.github.io/2023/08... · Posted by u/D4ckard
38 · 3 years ago
that is really, really ugly. using methods, I dont have to mess with function prefixes, and I dont have to pollute the global scope.
ElegantBeef · 3 years ago
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"

ElegantBeef commented on Nim 2.0   nim-lang.org/blog/2023/08... · Posted by u/kindaAnIdiot
FireInsight · 3 years ago
Is pixie capable of realtime usage like in games or generative art? Last time I looked it seemed CPU-only.
ElegantBeef · 3 years ago
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.
ElegantBeef commented on Nim 2.0   nim-lang.org/blog/2023/08... · Posted by u/kindaAnIdiot
xigoi · 3 years ago
Where in the announcement does it say that?
ElegantBeef · 3 years ago
They likely read "overloadable enums" and went "Oh Rust calls their tagged unions enums" so assumed all languages did.
ElegantBeef commented on Nim 2.0   nim-lang.org/blog/2023/08... · Posted by u/kindaAnIdiot
j-james · 3 years ago
I have a shortlist of pain points:

- Tooling is not great. The language server has a tendency to silently crash on occasion, and it's no rust-analyzer to begin with. A tooling rewrite has been delayed behind proper incremental compilation, which has been delayed behind ARC/ORC...

- Interfaces ("concepts") are experimental and there are two differing implementations.

- It lacks proper sum types and structural pattern matching in the core language. There are a number of quite good macro-based libraries that provide for this, however: fusion/matching, andreaferretti/patty, beef331/fungus, alaviss/union...

- Optional types are not the standard: the stdlib will throw exceptions. This is more so a personal preference than anything.

But that's about it. I do like Nim quite a lot.

ElegantBeef · 3 years ago
> It lacks proper sum types

We've talked about this before! You know it has sum types, just not the variation you want.

ElegantBeef commented on Nim 2.0   nim-lang.org/blog/2023/08... · Posted by u/kindaAnIdiot
pzo · 3 years ago
that looks interesting, thanks! Did you try it if it delivers on promises? There was not any new commit since 2020 so not sure if the project is stale by now.
ElegantBeef · 3 years ago
I do not use Rust, so sadly I have not.

u/ElegantBeef

KarmaCake day46February 12, 2023View Original