Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
nuclx
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
61.
▲
by
nuclx
8y ago
I wouldn't invest a lot of time into learning another stack - and personally I don't find learning RoR attractive in 2019. Just try if you can convince them with your current experience and catch up on the stack-specific details i
62.
▲
by
nuclx
8y ago
Microdosing works for me. I just get one cup of coffee in the morning and take tiny sips from it over the day. That appears to be enough to of a stimulus for my brain to function. Sometimes an espresso on top in the afternoon, but no more t
63.
▲
by
nuclx
8y ago
None.
64.
▲
by
nuclx
8y ago
So there is hope to overcome the "not as portable as C" showstopper.
65.
▲
by
nuclx
8y ago
-march=c was apparently removed from LLVM? See https://stackoverflow.com/questions/5180914/llvm-ir-back-to-... I didn't know that it existed in the first place and what i expected was a bit of a higher level
66.
▲
by
nuclx
8y ago
The date tag wasn't there previously. Someone added it by mistake as it seems.
67.
▲
by
nuclx
8y ago
Indeed. Support for -fno-strict-aliasing and -fwrapv can be expected for modern C compilers, so I don't see any real hurdles besides the obvious engineering and maintenance effort required to support a robust transpiler.
68.
▲
Impediments to transpiling Rust to C?
(internals.rust-lang.org)
5 points
by
nuclx
8y ago
|
9 comments
69.
▲
by
nuclx
8y ago
Learn to get an intuition for how your code performs. When is it appropriate to allocate memory from the heap? If you're in a rendering or audio processing routine in realtime context, avoid it at all cost. Think about which parts of t
70.
▲
by
nuclx
8y ago
It's a reasonable choice for the use-case at hand. I used a similar approach to generate C code using python with jinja2. Ironically, I generated a binary hash based lookup, because the hash values ought to stay constant even when new
71.
▲
An introduction to Rust for audio developers [video]
(youtube.com)
1 points
by
nuclx
8y ago
|
0 comments
72.
▲
by
nuclx
8y ago
Interesting question. By the way, would PROLOG, being mainly a logic programming language, really be the go-to language for constraint programming in the industry?
73.
▲
by
nuclx
8y ago
Very good tutorial. Could easily follow, although I don't know F#, just some Haskell.
74.
▲
by
nuclx
8y ago
FreeRTOS features sone nice and simple allocators on fixed buffers [0]. I have used heap4 to implement memory management for a fully portable test suite requiring malloc. Really any toy allocator would have done the job for that use-case, s
75.
▲
by
nuclx
8y ago
My advice would be not to specialize in one language too much. Just don't care about all the clutter that's in C++, you won't need more than a tiny fraction of it ever anyways. A lot of them are shoe-horned concepts brought f
76.
▲
by
nuclx
8y ago
Looked at the code and my current endeavors to learn Rust are reinforced. I'd prefer to never touch that abomination of a language that is C++ ever again.
77.
▲
by
nuclx
8y ago
"Machines need a lot more data than humans do in order to get smart" - is that true?
78.
▲
by
nuclx
8y ago
That's not constructive advice.
79.
▲
by
nuclx
8y ago
I guess the reasons depend on the environment, in my case a multi-platform embedded product. E.g. in my case I don't have a use for dynamic node instantiation. Testing partly requires fiddling with hardware and diverse system architec
80.
▲
by
nuclx
8y ago
Well - I dealt quite a bit with Jenkins shared libraries when porting jobs from Jenkins 1.x to Jenkins 2.x recently. Declarative pipelines are often too restrictive leading to a mixture of declarative and embedded scripted pipeline scraps.
81.
▲
by
nuclx
8y ago
That's interesting. Are there many instances where you would prefer malloc during real-time processing compared to pre-allocated arrays? I used FreeRTOS' heap_4.c [0] to run malloc-based test code on systems without native malloc,
82.
▲
by
nuclx
8y ago
The fact that registration is required for no obvious reason kinda makes the site a no-go zone for me. I only occasionally land there via Google Image search. Maybe I'm just not the right target audience, since I'm not a social me
83.
▲
by
nuclx
8y ago
I'm in the same boat with browser-based vs electron apps (see my question [1]). I don't think PDF-based forms are an alternative to reactive web forms though, as they aren't dynamic enough. The sole purpose of PDF is page-ori
84.
▲
by
nuclx
8y ago
Yeah, I really wanted to agree with the author and I did on some points e.g. avoid to abstract unnecessarily over effects. But advocating for explicitly defined library interfaces is actually dangerous unless there is the specific need for
85.
▲
by
nuclx
8y ago
Did you see the OP ask any questions about C++?
86.
▲
by
nuclx
8y ago
Fair point. There are certainly other options like realloc'ing the memory for the array, if you want to keep constant time indexing.
87.
▲
by
nuclx
8y ago
I guess many people already know it :)
88.
▲
by
nuclx
8y ago
Rust, TLA+, MiniZinc
89.
▲
by
nuclx
8y ago
In common user-space non-realtime environments only use arrays, if you have known bounds for the amount of elements. If an arbitrary number of elements is needed, you need dynamic memory management anyways, so use linked lists. If your requ
90.
▲
by
nuclx
8y ago
Well, you still have a pretty large run-time with Qt. If you want something slim, you can use neither Electron nor Qt.
More ›