Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
treeform
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
31.
▲
by
treeform
4y ago
AI has completely changed the way gamedevs should create game assets. Now you can generate amazing assets with a simple workflow. In this video I show how I'm generating some cool 2D space ship assets. The same workflow I show in the v
32.
▲
by
treeform
4y ago
Unlike JavaScript libraries, Nim libraries seem to be a lot more sane and self contained. No left-pad nonsense or downloading 20 dependences.
33.
▲
by
treeform
4y ago
The super fast libraries mention in the article Pixie, Zippy, SuperSnappy all use GC. They can beat or tie with the best C libs. But in order to be fast they don't use GC in the critical hot paths but pre-allocate work buffers to the r
34.
▲
by
treeform
4y ago
I started using python around 2005 and Nim does have that feel of early python. Nothing was set in stone and the fields were open. Lots of optimism.
35.
▲
by
treeform
4y ago
Nothing is without the cons. I would say: * Libraries: there is no NPM ecosystem to get anything you need. * Stack-overflow: If you looking for a aswers there might not be anyone who encounters it before. You might have to dig really deep t
36.
▲
by
treeform
4y ago
I use Nim in production, its great. Easy to write like Python, but super fast like C. Type system prevents typos. Has very advanced macros.
37.
▲
by
treeform
4y ago
I've been doing Nim professionally for about 3 years now. But I only shipped a small project in Go. I feel like Go specifically “dumbs down” the language so that it can be used in large teams with varying programmer skills and high tur
38.
▲
by
treeform
4y ago
You can do a lot with Nim at compile time, check out my talk on Nim Metaprogramming not just for FizzBuzz, but real world applications: https://fosdem.org/2022/schedule/event/nim_metaprogramming/ I am wo
39.
▲
by
treeform
5y ago
I don't think so. I have binding to the google cloud API https://github.com/treeform/googleapi (for work) and the digital ocean API https://github.com/treeform/digitalocean (for personal) alm
40.
▲
by
treeform
5y ago
It might have some thing to do with lower popularity of the QtCreator editor. VS Code is just very popular even for non-Nim.
41.
▲
by
treeform
5y ago
I don't think there is anything for Nim people todo. Anti virus companies run a very simple algorithm, they flag everything they have not seen before... At this point anti virus companies are the virus, slowing down peoples computers,
42.
▲
by
treeform
5y ago
Mostly Data Science and Engineering and Visualizations.
43.
▲
by
treeform
5y ago
See this as one of the examples: https://github.com/treeform/shady It makes debugging shaders much easier as you can use print statements and unit tests. You can also share code between CPU and GPU side.
44.
▲
by
treeform
5y ago
I love Nim. I been using it professionally for more than 3 years now. At first I started with it just as a faster python with types, but it so much more! You can run Nim everywhere regular places such as backend, frontend, mobile, but also
45.
▲
by
treeform
5y ago
I chose to write Pixie in Nim because I really like Nim: * Nim very fast. I can beat any C/C++ program in performance using same tricks as they do. Cleaver Memory management, inlining, static analysis, SIMD. There is no wall that you r
46.
▲
by
treeform
5y ago
Can you give us more details on what did not work for you? We would love to fix it.
47.
▲
by
treeform
5y ago
Thank you for watching our pixie presentation!
48.
▲
by
treeform
5y ago
That's unfortunate. I did not know about pixi.js when we picked the name. It feels like all of the cool names are taken! When we were thinking of a name we just looked around the Nim community for name collisions.
49.
▲
by
treeform
5y ago
We did not really "need" a GIF decoder but it was a fun thing to make. It can decode many many gifs, but yes its still missing features. I hope to get to them though eventually.
50.
▲
by
treeform
5y ago
I agree shaping is hard. But so is a lot of other things we have done. We will just take it one setup at a time. I am sure with time we will conquer shaping as well.
51.
▲
by
treeform
5y ago
This is correct. Given any C/C++ program one can write an equivalent Nim program. But because you have advanced metaprogramming available to you it will probably be shorter and easier to understand.
52.
▲
by
treeform
5y ago
To learn any new language or framework I just recommend diving in and doing things. Have some goal and mind that you want to create and work at it. Its usually hard to start at first but once you get going its just a little bit of progress
53.
▲
by
treeform
5y ago
1) Why CPU? Mainly we used CPU because it's easier to get working. A lot of this graphics stuff requires deep understanding. It’s just easier to get CPU mode running. I do have many GPU experiments though. I even have a macro that tran
54.
▲
by
treeform
5y ago
I am the presenter in the video. I am here to answer any questions about 2d graphics, Nim programming language, performance and testing. Thank you for watching!
55.
▲
Show HN: Pixie – A full-featured 2D graphics library for Nim
(youtube.com)
27 points
by
treeform
5y ago
|
7 comments
56.
▲
by
treeform
5y ago
That's a lot more talks this year. Can't wait!
57.
▲
by
treeform
6y ago
1. As I understand the {.acyclic.} pragma is way to telling the compiler that you take full responsibility. Otherwise without the {.acyclic.} pragma it will spend the extra time scanning the objects for cycles. 2. It appears that Nim will u
58.
▲
by
treeform
6y ago
It's great that Nim is pushing boundaries in the memory management space. I remember reading how Java and Go were able to scan large heaps faster and faster. But what if you don't even scan the heap? Brilliant.
59.
▲
by
treeform
6y ago
At first I did too, but then I thought about peoples handwriting and how it might be very hard to read the numbers. Then imagine a political fight over how many 1s are actually 7s?
60.
▲
by
treeform
6y ago
I have so many little nim scripts all over the place.
More ›