Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
seg_fault
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
by
seg_fault
6mo ago
If you understand German, I also recommend the readme of his other project: https://github.com/bsommerfeld/wsbg-terminal
2.
▲
by
seg_fault
9mo ago
I had the same experience. C++ doesn't even compile or I have to tell it all the time "use C++23 features". I tried to learn OpenGL with it. This worked out a bit, since I had to spot the errors :D
3.
▲
by
seg_fault
1y ago
What kept me as an intern during education is the feedback and the nerdy chitchat. Developing as an intern in a team, where you have your own project and the possibility to chat with experienced people from various fields can be a huge imp
4.
▲
by
seg_fault
2y ago
Awesome! The fold up mechanism is a great idea to make it look clean, when there is no party and it also saves the hardware from dust :D
5.
▲
by
seg_fault
2y ago
My type is a bit simpler. But I think the approach is the same. After all, boost's type has much more math functions implemented. I don't have exp, sqrt...
6.
▲
by
seg_fault
2y ago
If I understand this correctly GMP has a flexible mantissa with no limitations during runtime. In fas you have to specify the sizes (of mantissa and exponent) during compile time. So the size of this type is fixed. Thus, there is no heap in
7.
▲
by
seg_fault
2y ago
Removed it.
8.
▲
by
seg_fault
2y ago
Somebody wants to use it? :D I thought about something like where people can use it but have to make changed public. I am just curious, what should be changed. But I dont think there is actually a real world use case.
9.
▲
by
seg_fault
2y ago
I remember that I tried that some time ago. Especially the multiplication was tough, but I can not recall where I gave up. When I find some time, I will pick it up again :)
10.
▲
by
seg_fault
2y ago
Sure. Float<int64_t, int64_t> Gives you a signed Mantissa with 64 bit and a signed Exponent with 64bit. Since there are numeric limits for int64_t available, Float knows the max and the min value. You could get even bigger ra
11.
▲
by
seg_fault
2y ago
I don't get what you mean. I thought they specify how the type can be used?
12.
▲
by
seg_fault
2y ago
Thank you :)
13.
▲
by
seg_fault
2y ago
Actually you can specify the numeric limits of the mantissa and the exponent. They can be specified as template arguments[0]. So you could do: Float<uint8_t, // type of the mantissa uint8_t, // t
14.
▲
by
seg_fault
2y ago
Rounding: actually it just cuts off. I have not spent much time to think about how to specify and implement the different rounding modes. Maybe some day... Thanks for the hint to the paper. I also faced these issues. Thus, I provided a con
15.
▲
Show HN: Floating point arithmetic types in C++ for any size and any base
(github.com)
79 points
by
seg_fault
2y ago
|
41 comments
16.
▲
by
seg_fault
2y ago
I do. And a lot of my neighbors. In Germany it is pretty common to to have a few chicken in the backyard in countryside areas. My parents life in the Munich suburban belt and even have a rooster in their flock. Their neighbors have not comp
17.
▲
Show HN: Switch colors in dotfiles between light and dark quickly
(github.com)
1 points
by
seg_fault
2y ago
|
0 comments
18.
▲
by
seg_fault
6y ago
I'm a software developer with 3 years experience. I'm looking for a remote job in the C/C++ field. I'm interested in low-level/embedded. Location: Germany Remote: Yes preferred Willing to relocate: No Tech