Viewing profile — codehero
codehero
HN member- Joined
- Sat, Feb 13, 2010, 8:11 PM UTC
- HN karma
- 138
- Public activity
- 109 items
- HN profile
- View on Hacker News ↗
About codehero
Recent public activity
-
comment
Comment #49208212
I looked at your site again and see you made changes. Stop working so fast, it's actually hurting your presentation pretty badly. I see "We make PCBs fast". I suppose it may mean s…
-
comment
Comment #49205624
Love the energy, but I can hardly believe the title "Proven Metals" because your website does not stand up to basic scrutiny: 1) First issue: I do not know what your manufacturing …
-
comment
Comment #48122037
I run in LAN/Developer Mode on the X1C and P1S and I sync filaments just fine. I don't monitor my prints with my phone but if I wanted to I wouldn't complain about the lack of Bamb…
-
comment
Comment #47324286
Depends on the quality of the solder joint. Poor quality solder joints do not survive mechanical shock. If you are fighting a GND pin that sinks a lot of heat, using leadfree solde…
-
comment
Comment #37287228
Pipes and named FIFOs are easy and great. I say this after implementing various IPC methods (unix domain sockets with fd passing, POSIX message queues, 0MQ, XML RPC, local TCP sock…
-
comment
Comment #36848803
Can anyone explain to me the advantages of Pikchr over dotfiles?
-
comment
Comment #26941445
Any reason why the first example (subtracted sphere) is rotating off axis or possibly has bad geometry?
-
comment
Comment #20969703
Safe string manipulation never exceeds the bounds of the buffer. So negative values are dangerous, as all as any additions that would exceed the maximum size. Negative lengths are …
-
comment
Comment #20960881
You're explanation is not inconsistent with my proposal, but you don't seem to grasp VALIDITY.
-
comment
Comment #20957788
If you have studied Computer Science, you should know that the null string is quite a valid string. Let's take strstr, which finds a matching substring needle in a haystack string.…
-
comment
Comment #20957756
Is it more sensible to cat 2 strings, but cut off the second one, then pass off the result as valid? I would say let an INVALID string be length 0. Then accept that catting a valid…
-
comment
Comment #20956552
I don't understand the fallibility. Clearly misuse of string functions is epidemic. A propagating INVALID string result makes it very clear there is a logic error and not an exploi…
-
comment
Comment #20956004
Please support your argument against correctness by providing an example where an INVALID string as input to a suitable modified generic string function would result in a valid str…
-
comment
Comment #20954353
NULL is the lack of any string. If one view a string as a result of an operation, then an INVALID string is the consequence of bad input to an operation.
-
comment
Comment #20953710
Propagating NAN is an elegant method in floating point and makes sense for well defined string encodings like UTF-8. memcpy and company are strictly for raw unencoded buffers.
-
comment
Comment #20953443
Efficiency looks past current deficiency. We have the empty string: "\0" We have the null string: NULL There is no concept of an INVALID string, as float has NAN. This would be the…
-
comment
Comment #17292134
I tried really hard to find a main() function browsing the demo source code, but I could not. I also find it interesting that code boilerplating is called out as a problem, but I r…
-
comment
Comment #17283335
Choose the size representation that bests fits your use case: // Put this in header to help user calculate allocation needs but hide size from user size_t LIBNAME_alloc_size(param1…
-
comment
Comment #17249269
If your strings are > 65535 bytes in length, consider buffering the string data or using another data structure.
-
comment
Comment #13359245
Pet pig owner here. Pigs are problem solvers. Pigs are optimizers. The following videos of my pig demonstrate this. Video 2: Pig is first learning the task. Video 3: Pig has slight…
-
comment
Comment #11647005
Why use this library when similar libraries implemented in C have been in production for decades?
-
comment
Comment #11646997
Ever used OpenSCAD? Try doing CSG operations with CGAL on complex STL surfaces. Then take those same surfaces with vtk, use their boolean operations. Faster but with significantly …
-
comment
Comment #11645386
Sell me: I am a crusty old C++ programmer who started numerical and geometric programming on an SGI machine at the turn of the century. I have seen many academic and commercial 3D …
-
comment
Comment #9741718
Yeah your intuition is correct here. On an MSP430 (which is were I use it) the producer is in interrupt context but as a savvy redditor pointed out, I will need to enable/disable i…
-
comment
Comment #9741711
I'm running it on a system with 512 bytes of RAM and multiple queues...saving 1 byte helps. I do not need extra space for synchronization; I can enable/disable interrupts without e…