News for hackers. Stuff that matters.

leafario2

Re:Bevy game development tutorials and in-depth resources on Saturday April 11, 2026 @06:28AM (#47729309)
Expression orientation
Re:Corroded: Illegal Rust on Sunday January 04, 2026 @05:01AM (#46486557)
But TS has JS
Am I wrong in assuming that after achieving a reduction in emissions, the carbon in the atmosphere should be ideally absorbed again?
It's not about stronger flavour, it's about a replacement for sugar which does not cause diseases
Re:Curl audit: How a joke led to significant findings on Tuesday February 14, 2023 @11:57AM (#34792218)
There are quite some cars that do, actually :)
Re:Stack Overflow Developer Survey 2022 on Thursday June 23, 2022 @12:57AM (#31845300)
Not a big job market for sure, but for example the car industry on Germany is ramping up quite a bit!
Re:Ask HN: Who wants to collaborate? on Saturday January 01, 2022 @10:47AM (#29759437)
If you are into autonomous sailboats, robotics, rust, or combinations thereof, let me know :)
Re:Ask HN: What is your spiritual practice? on Wednesday December 29, 2021 @04:52AM (#29723384)
I don't think a god of something exists. If it does, I don't care. It might, though.

What's more important to me: life emerged from chaos, entropy will get us all, let's give this opportunity all we've got. If we don't, it's fine too - there is no game plan I am aware of so we can make our own.

Re:Writing embedded firmware using Rust on Sunday December 19, 2021 @05:05PM (#29618906)
> Can Rust import and use C header files?

Yes, after piping them through rust-bindgen, any binary can be statically of dynamically linked. I did this, it's nice that it's possible, but the PAC route others have described here is way better.

Re:PID Controller: A Simple Control Loop Mechanism on Saturday May 29, 2021 @04:05AM (#27323769)
1) this is the same problem like controlling the angle of a quad copter, for which I have used PID. You can calculate the error of the position, which is in the range -180..179. Applying one PID stage to the error of the orientation yields a "desired rate of change" - it increases if the error is large or held for a long time and it's sign describes the direction of the rate of change of orientation. You can use another PID stage to give a step count power iteration (how much to turn the object). 2) integral windup is commonly prevented by just capping it. You can also use a smoother capping function which bounds the size of the integral, or lowers it on each iteration.
Re:Play the trombone in your web browser on Wednesday May 19, 2021 @10:43AM (#27209332)
Very cool project!
Re:Green vs. Brown Programming Languages on Thursday April 22, 2021 @11:33AM (#26903900)
Rust is already brown. I love it.
Re:Typing Is Hard on Wednesday February 17, 2021 @02:12AM (#26163602)
That's exactly what types are for dude
I am not sure this really has to do with callbacks - isn't this more due to the dangers and hassle of allowing a function with 3 arguments to be called with just one?
Re:Rust After the Honeymoon on Monday October 12, 2020 @02:42AM (#24751994)
I am an embedded software dev and Rust would fit my job well, but I see what you are saying. However, embedded is not all for Rust and not all embedded is done by EEs. Systems programming goes from bare metal up to things like browsers and databases...
Eclipse. Killer feature being a live expressions viewer for my embedded target.
Re:How I recorded an album on my own, in my room on Tuesday March 17, 2020 @03:20AM (#22602540)
Jacob Collier has an album called 'In My Room'
Re:Brain signals translated into speech using AI on Thursday April 25, 2019 @05:54AM (#19746503)
Can't wait to control vim using my brain some day
Re:UFO: A Drone/UAV Programming Library for Rust on Friday April 05, 2019 @03:48PM (#19586321)
What hardware is required for this?
FOD: Fear of Destruction?
Re:APL matrix product operator on Sunday September 09, 2018 @02:54PM (#17947206)
Any time I see APL code, I feel slightly stupid.
Re:Massacring C Pointers on Tuesday June 26, 2018 @01:03PM (#17402273)
Author of book is a Markov chain?
Re:Let's Learn About Waveforms on Wednesday February 14, 2018 @05:05PM (#16379922)
The wrong frequencies on the frequency axis really aren't necessary. It doesn't make it more complex if you put the real frequency values the and it is less confusing to people who know that sound below 20hz roughly is never audible.

Otherwise, great site! I think it is great that Fourier was basically explained without mentioning his name.

Re:PID Without a PhD (2016) [pdf] on Tuesday January 30, 2018 @06:37PM (#16270131)
I have the choice between using a slower processor (96 MHz) without an FPU or a faster one(120MHz) with a 32 bit FPU. I might use the slower one but with a fixed-point implementation. Thanks for your tips!
Re:PID Without a PhD (2016) [pdf] on Tuesday January 30, 2018 @11:55AM (#16266830)
Thanks for the explanation! I have only hardware with no FPU (teensy 3.2) or single precision FPU(teensy 3.5)... I suppose in that case it would be better to write a fixed point implementation?
Re:PID Without a PhD (2016) [pdf] on Tuesday January 30, 2018 @05:31AM (#16264232)
What's the reason he insists on using double precision math? (If not using fixed point)