Better HN
topnewbestaskshowjobs
Log inSign up

leafario2

118 karma · joined Jan 12, 2018 (8y ago) · 28 submissions

Submissions

comment 7mo ago · link · parent

Expression orientation

comment 10mo ago · link · parent

But TS has JS

comment 1y ago · link · parent

Am I wrong in assuming that after achieving a reduction in emissions, the carbon in the atmosphere should be ideally absorbed again?

4.

Ask HN: Say my employers shop got sold to an equity/buyout investor. Whats next?

3 points · by leafario2 · 2y ago · 1 comment

comment 3y ago · link · parent

It's not about stronger flavour, it's about a replacement for sugar which does not cause diseases

comment 3y ago · link · parent

There are quite some cars that do, actually :)

comment 4y ago · link · parent

Not a big job market for sure, but for example the car industry on Germany is ramping up quite a bit!

comment 4y ago · link · parent

If you are into autonomous sailboats, robotics, rust, or combinations thereof, let me know :)

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

> 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.

comment 5y ago · link · parent

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.

comment 5y ago · link · parent

Very cool project!

comment 5y ago · link · parent

Rust is already brown. I love it.

comment 5y ago · link · parent

That's exactly what types are for dude

comment 5y ago · link · parent

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?

comment 6y ago · link · parent

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...

comment 6y ago · link · parent

Eclipse. Killer feature being a live expressions viewer for my embedded target.

comment 6y ago · link · parent

Jacob Collier has an album called 'In My Room'

19.

Ways to break your systems code using volatile (2010)(blog.regehr.org ↗)

132 points · by leafario2 · 7y ago · 73 comments

comment 7y ago · link · parent

Can't wait to control vim using my brain some day

comment 7y ago · link · parent

What hardware is required for this?

comment 8y ago · link · parent

FOD: Fear of Destruction?

comment 8y ago · link · parent

Any time I see APL code, I feel slightly stupid.

comment 8y ago · link · parent

Author of book is a Markov chain?

comment 8y ago · link · parent

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.

comment 8y ago · link · parent

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!

comment 8y ago · link · parent

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?

comment 8y ago · link · parent

What's the reason he insists on using double precision math? (If not using fixed point)