Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
cshokie
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
cshokie
5mo ago
How do you deal with voltage balance when replacing one bad cell out of a whole battery? My understanding is that lithium ion battery cells need to be close to each other in voltage or else they suddenly rebalance when reconnected, and can
2.
▲
by
cshokie
5mo ago
Notepad also understands line endings and text encodings now, instead of always writing as CRLF UTF-16. That eliminates a whole class of “save file in notepad, corrupting it” trouble.
3.
▲
by
cshokie
11mo ago
Not so much anymore. The standard deduction for a married couple is now above 30k. It would take a large mortgage to pay that kind of interest in a single year. (Principle is not deductible; only interest)
4.
▲
by
cshokie
1y ago
The source is already available (albeit not buildable). See https://github.com/microsoft/microsoft-ui-xaml
5.
▲
by
cshokie
1y ago
WinRT is not the same thing as managed .NET code. There is no requirement that a UWP is .NET. There are many examples of unmanaged C++ UWPs, including the open source Windows Terminal. WinRT is a mechanism to express APIs in a way that is a
6.
▲
by
cshokie
1y ago
…based on a true story that was 55 years ago…
7.
▲
by
cshokie
1y ago
I don’t personally have the time or inclination to do any retrocomputing, but I love seeing the repairs that people do for them. It’s interesting in a way I wouldn’t have expected. Thank you for sharing.
8.
▲
by
cshokie
2y ago
If you haven’t already look up ‘if constexpr’ in cpp17 and newer. It lets you have compile time branches in a single function.
9.
▲
by
cshokie
2y ago
That’s similar to what vcpkg does under the covers. It clones the repo containing the dependency’s source code and then compiles it using the same compiler as the rest of your project. This avoids static libraries and ABI considerations whi
10.
▲
by
cshokie
2y ago
Same on an iPhone 15. Reader mode worked great, though.
11.
▲
by
cshokie
2y ago
I came here to also post about regfree COM. If you can get it to work that seems like the ideal solution. See https://learn.microsoft.com/en-us/windows/win32/sbscs/creati... “Activation contexts enable C
12.
▲
by
cshokie
2y ago
I was personally affected by this, but it did not harm me. The battery drain was obnoxiously high (having to charge 2x a day instead of once every 2-3 days). I am always near a power plug so I was never in much danger of shutdown. However,
13.
▲
by
cshokie
3y ago
Not the OP, but I don’t think they meant that the build output is in a container. They meant that the thing you use to compile the code is in docker (and you just copy out the result). That would help ensure consistency of builds without ha
14.
▲
by
cshokie
3y ago
Capacity is the most they can produce at any given time. Solar only produces power during the day. Geothermal produces power 24 hours a day, without any regard for day or night. Therefore for the same “capacity” geothermal will produce more
15.
▲
by
cshokie
3y ago
That is some of it. The function names also include a lot of template specializations (thanks to a newer release of MSVC). Between lots of functions and very long names it adds up quickly. The function names are all unique so there are no s
16.
▲
by
cshokie
3y ago
For application development the real big problem is that std::source_location::function_nam() bloats binary size massively and cannot be selectively disabled. It is common to want file/line which can be shared per-file, or are small in
17.
▲
by
cshokie
3y ago
Out of curiosity is it a “Windows is objectively difficult” problem, or a “Windows is not Linux and I know Linux best” problem? I’ve only begun using it so my expertise is limited, but I think vcpkg aims to help with some of these difficult
18.
▲
WinUI3 Source Available
(github.com)
4 points
by
cshokie
3y ago
|
0 comments
19.
▲
by
cshokie
3y ago
const std::string foo = “.dot file”; in C++ cannot change after construction, but is not compile time constant. This means that it has to run some code and allocate some memory at runtime. In contrast constexpr is fully compile time and end
20.
▲
by
cshokie
3y ago
This was a guest post, not written by Bret. The intro describes the author.
21.
▲
by
cshokie
3y ago
Hard-coding a relative file path seems like an obvious example. For example a config file with settings. The file will always have the same name so heap allocations and mutability are not needed.
22.
▲
by
cshokie
3y ago
This article hits on a number of interesting points. There is a lot of complexity to be aware of when using C++ coroutines. And a number of “normal” practices become dangerous in them, such as pass by reference. That said, I think they are
23.
▲
by
cshokie
3y ago
Two feet seems very thick for a foundation. That’s probably thick enough to be an airport runway.
24.
▲
by
cshokie
3y ago
VirtualBox 7 came out almost exactly one year after the initial release of Windows 11. The bypass of the Secure Boot requirement was needed for quite a while. October 2022 https://www.virtualbox.org/wiki/Changelog-7.0
25.
▲
by
cshokie
3y ago
Compatibility with Windows seems a lot better in 7 compared to 6, both as host and as guest. They also seem to have added a number of features such as secure boot. It seems that there was quite a time gap between 6 and 7 so a whole lot of c
26.
▲
by
cshokie
3y ago
The C++ standard library smart pointers (e.g. unique_ptr) have optional template parameters for the allocator and destruction method. It seems like the standard C++ smart pointer types could still be used with handles. All you need is the r
27.
▲
by
cshokie
3y ago
Or your business competes with Amazon and you don’t want to pay a competitor in order to compete with them.
28.
▲
by
cshokie
4y ago
(Not OP) I would call it the no booze hangover. Sometimes the symptoms would be like a mild hangover. You wake up with a headache, still tired, and a little bit of a “what happened last night?” vibe. Except that “what happened last night” w
29.
▲
by
cshokie
4y ago
The word “droid” is trademarked by Lucasfilm
30.
▲
by
cshokie
4y ago
These questions were explored somewhat in the Scythe trilogy[0]. Natural death was conquered so some people are tasked with going around and enforcing unnatural death. I enjoyed reading it and thinking over some of the implications. [0] ht
More ›