Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
PMunch
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
91.
▲
by
PMunch
4y ago
Nim doesn't really have a runtime though, but there are probably some similarities between all programs written in Nim simply because it's machine generated. And feed the compiler one or two pieces of malware in Nim without any ot
92.
▲
by
PMunch
4y ago
The biggest issue with this comes from people trying to use these languages in a work scenario where an over-eager antivirus that can't be disabled by the user would cause issues.
93.
▲
by
PMunch
4y ago
Such a shame that innovative languages are hampered in getting users by the ineptitude of antivirus vendors.
94.
▲
by
PMunch
4y ago
Have written quite a lot of macros, unless you're doing something really crazy you should be fine. The one time I've really run into macros slowing down compilation a lot was when I wrote my protobuf library which parses a protoc
95.
▲
by
PMunch
4y ago
Huh, interesting. I always assumed the helmet was based on the german WW2 helmets seeing how so much of the weaponry is taken from there. Compare for example the Stormtrooper heavy blaster with the German MG-34. And even the name "Stor
96.
▲
by
PMunch
4y ago
Interesting to see more focus on embedded systems. This is definitely good news for Ratel!
97.
▲
by
PMunch
4y ago
I have looked a little bit into it. The problem is that grey scale requires flashing the area on and off a lot, so it's quite visibly disturbing. My idea was to first draw the character in fast mode, then if it hadn't been touched
98.
▲
by
PMunch
4y ago
I have some insight in this as I'm currently building a very similar project myself. I'm using off-the-shelf components and the relatively cheap USB driver board for the 10.3" ePaper display is more than capable enough of sho
99.
▲
by
PMunch
4y ago
That's the point though, in this case off means off. There is no reason his controller should have to periodically turn on, when you want to use it you turn it on.
100.
▲
by
PMunch
4y ago
Of course there are always exceptions. Smoke detectors usually have replaceable batteries though, which kind of work like an off switch. Pacemakers however should definitely not have an off switch, and a replaceable battery would be tricky.
101.
▲
by
PMunch
4y ago
Since Nim is statically typed you can't simply create a new variable with the same name as an existing one without errors. You can shadow variables in a deeper scope, but then only the latest version is available. Defining a function x
102.
▲
by
PMunch
4y ago
Most of the "senior" community members who have migrated to NimSkull are those who liked to work on the compiler. The ones who remains using Nim are those who like to write libraries and projects. I've yet to see anyone creat
103.
▲
by
PMunch
4y ago
Yeah I can see how it might seem scary. It takes you out of your comfort zone and it's easy to start thinking uncomfortable things have to be scary. I've been using Nim for a couple of years now, and I've never run into a saf
104.
▲
by
PMunch
4y ago
This is pretty much it, malware was written in Nim, vendors started fingerprinting those binaries but didn't include any/enough non-malware binaries. This means that the fingerprint is more "this program is written in Nim&quo
105.
▲
by
PMunch
4y ago
Well it depends a bit on your usecases. Nim certainly has a stricter type system, and since it is compiled you can be fairly certain that a program you have compiled won't suddenly start to misbehave (e.g. no JavaScript leftpad issue s
106.
▲
by
PMunch
4y ago
Why though? With this feature you're able to import a library in a style you don't like and still be able to use it in whichever style you prefer.
107.
▲
by
PMunch
4y ago
The nice thing about being able to run others people code with your style is that your entire codebase stays in one consistent style. You don't run into issues like in other languages where one library author has done some dubious styl
108.
▲
by
PMunch
4y ago
You must remember that Nim is a statically typed compiled language with support for distinct types etc. This means that you wouldn't be able to call the wrong procedure if you didn't provide it the right types. Besides, not allowi
109.
▲
by
PMunch
4y ago
We take it very seriously, but there isn't a whole lot we can do unfortunately. Apart from reporting false positives the only venue we could pursue is applying obfuscation practices used by actual viruses. This of course has its own sl
110.
▲
by
PMunch
4y ago
Not sure what the compiled != easy to use bit comes from anyways. If anything I'd say that part of Nim makes it easier to use, I don't have to worry about whether or not the target has Python installed.
111.
▲
by
PMunch
5y ago
The larger worlds wouldn't even have to use larger tiles. Imagine you first create a "world" of tiles that describe biome. The tiles in this "world" set would be things like "plains", "mountain",
112.
▲
by
PMunch
5y ago
Great series of articles. I used this to write a persistent vector library in Nim: https://github.com/PMunch/nim-persistent-vector
113.
▲
by
PMunch
5y ago
Could be interesting to create one based off-of flexible PCBs. That would be closer to an actual business card as well. Of course bonus points if it actually does anything.
114.
▲
by
PMunch
5y ago
TinyGo has a list of explicitly supported devices. Nim can run on anything you can compile C for. I also can't see some of the more low-powered hobby devices such as the Digispark (Attiny85) or similar. Not sure if that's because
115.
▲
by
PMunch
5y ago
Nothing about the entire ecosystem I was talking about. But my initial work on the keyboard firmware can be found here: https://github.com/PMunch/badger/tree/final . There are many different projects in Nim ru
116.
▲
by
PMunch
5y ago
Agreed, C/C++ can sometimes be a real pain to work with. I went a slightly different route however after seeing how much less I could do with an equally powerful board running MicroPython and settled on Nim. It has a syntax that looks
117.
▲
by
PMunch
5y ago
Author here, I specifically tried to pick projects which self-identified as transpilers in order to not accidentally call a project I didn't know enough about a transpiler incorrectly. I don't in any way think that a transpiler is
118.
▲
Is Nim a Transpiler?
(peterme.net)
44 points
by
PMunch
5y ago
|
70 comments
119.
▲
by
PMunch
5y ago
Nim works super well for embedded. The thing is that you can turn off the garbage collector and do manual memory allocation if you want to. Or simply use ARC which works a treat on embedded. I wrote my own keyboard firmware in Nim (and did
120.
▲
by
PMunch
5y ago
Oh it definitely can run on those devices! I wrote my own keyboard firmware from scratch in Nim, and the firmware sizes are vanishingly small compared to even simple "hello world" level stuff in Arduino. I did a talk on it for Nim
More ›