- Joined
- Oct 4, 2016
- Messages
- 4,836
- Likes
- 10,862
But but Docker and GoSmall serverlets where one doesn't want to set up an entire server environment,
Just curious - why is Node suited for hardware projects?
But but Docker and GoSmall serverlets where one doesn't want to set up an entire server environment,
Convenience, more than anything else. If you use NodeJS for your automation, you can get direct access to the hardware GPIO pins, at the same time you can make an application to control it from your computer or phone. This latter part becomes easier when everything is in JS.But but Docker and Go
Just curious - why is Node suited for hardware projects?
I have no idea how such a horrendous language has been allowed to perpetuate in server development. It makes no fucking sense. Now that node code-bases are getting older and all the rockstar programmers are finally facing maintainability issues finally the trend is receding.It's written in a language that required somebody to write a book called "The Good Parts of Javascript" Yuck. JS.
Node for hardware? What μC has the memory to execute node runtime?Yes.
The niggas at Gopher Academy are creating a tool similar to what Dharma was saying.
View attachment 18552
View attachment 18551
Node does well in certain kind of projects. Small serverlets where one doesn't want to set up an entire server environment, or hardware/automation projects where you want to avoid using assembly language, it's a boon. Not suitable for data intensive applications.
I would still rather use Python with a library like Twisted. But it works if you are an expert in Javascript and don't want to use another language I guess.Convenience, more than anything else. If you use NodeJS for your automation, you can get direct access to the hardware GPIO pins, at the same time you can make an application to control it from your computer or phone. This latter part becomes easier when everything is in JS.
NodeJS is event driven so it makes hardware control seamless through a common language understood by all three : the hardware, the intermediate server and the remote control/ mobile phone/ computer you are using to control the whole contraption.
Otherwise you are faced with the problem of controlling a hardware (low level assembly language) with an application written in a high level OS environment, or install an assembly emulator to access GPIO via a high level OS.
Yes.Node for hardware? What μC has the memory to execute node runtime?
Got it. I thought by hardware development you meant Embedded applications. For small projects node would be appropriate I guess.Yes.
You can connect all the 'smart devices' using APIs.
https://www.24hr.se/controlling-the-world-with-nodejs/
This could be true. But for automation in an industrial environment or even consumer products at scale node would not be an appropriate language at all. When it comes to such low level work it is microcontrollers, FPGAs and ASICs all the way.With NodeJS, the front end guys got their very own Swiss knife to mess with the back end guys. Data visualization? ohh, use Node and Jquery, Big Data? Node and MondoDB, hardware automation? use even driven GPIO, web application? use Node Server.
NodeJS is being used for embedded microcontrollers as well.Got it. I thought by hardware development you meant Embedded applications. For small projects node would be appropriate I guess.
This could be true. But for automation in an industrial environment or even consumer products at scale node would not be an appropriate language at all. When it comes to such low level work it is microcontrollers, FPGAs and ASICs all the way.
Do we have a hardware/robotics thread?
In all cases, node is executing on a runtime and on top of an OS, what it does in all these cases is merely collect sensor data and is suitable because of its reactive nature which means it can switch between idle times while doing I/O. But the software itself is running on a full fledged computer.NodeJS is being used for embedded microcontrollers as well.
http://embeddednodejs.com/chapters.html
https://events.linuxfoundation.org/sites/events/files/slides/nodejs-presentation_0.pdf
There's also :
Is it object oriented? Compiles to machine code?@Dovah
I was writing code in D recently. Really fast compiler, modern features like generics and code blocks and can also call C code directly. I'm a fan.
Yep it has classes and it compiles to machine code. In addition, it uses gcc for linking so all code is compatible with modules compiled using gcc.Is it object oriented? Compiles to machine code?
Might have to try it out. I never really got into C++ after C. Is there a garbage collector?Yep it has classes and it compiles to machine code. In addition, it uses gcc for linking so all code is compatible with modules compiled using gcc.
It does but it has a few problems. It is a "stop the world" collector and is somewhat ineffecient. However it is possible to disable and it has a very smart guy working on it funded by Facebook. BTW Facebook uses D pretty heavily for their high performance tooling.Might have to try it out. I never really got into C++ after C. Is there a garbage collector?
You have convinced me. I might try it out tonight.It does but it has a few problems. It is a "stop the world" collector and is somewhat ineffecient. However it is possible to disable and it has a very smart guy working on it funded by Facebook. BTW Facebook uses D pretty heavily for their high performance tooling.
Please share your thoughts. I am friends with a couple of people who work on the compiler.You have convinced me. I might try it out tonight.
Will do.Please share your thoughts. I am friends with a couple of people who work on the compiler.
Thread starter | Similar threads | Forum | Replies | Date |
---|---|---|---|---|
IAF aircraft modelling/ hobby collection | Indian Air Force | 8 | ||
ISRO rockets/ spacecraft modelling- hobby collection | Indian Space Program | 7 |