Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
1ris
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
91.
▲
by
1ris
5y ago
Are you allowed to cast the void * to volatile void *, pass that to memset and except the same result, or is the void *, volatile void*, void * conversion eliminated aswell?
92.
▲
by
1ris
5y ago
Because, when a programmer write a call to memset, she does, if you, as a compiler, take her seriously at all, expects the memory to be set, and not it just being a mere suggestion 1). should added a separate function called it memsetOrDont
93.
▲
by
1ris
5y ago
The problem with programming is almost never the lack of smartness. It's almost always the opposite: People being too clever. The sane thing in a realistic scenario is to ban all usage of memset and add a diagnostic to use memset_s, li
94.
▲
by
1ris
5y ago
(2011)
95.
▲
by
1ris
5y ago
because bluetooth and gps are still not separate permissions, i guess?
96.
▲
by
1ris
5y ago
Me neither. I actually like to have some random human-to-human interaction from time to time. If I don't, I will start to feel lonely. Like actually sad.
97.
▲
by
1ris
5y ago
sweetened wine vinegar with water? You could just grape juce for the sweet bit, too. Obviously not wine, but somewhat related? I do this this soda and my apple vinegar. I like it.
98.
▲
by
1ris
5y ago
If i wanted the compiler to generate code for `return 0;` I'd write it that way. If i wanted to use c as my macro assembler i very much expect the compiler to _not_ make this transformation. If I wanted language with clever optimisatio
99.
▲
by
1ris
5y ago
A certificate like this is a lot about trust. If the very first thing that it states, where the test have been conducted, you can't trust the rest, i.e. if the tests have been performed at all, or within the specification.
100.
▲
by
1ris
5y ago
Then i think i was wrong. For me this looks like it _added_ a whole lot of UB and made the rules of object provenance way more complex. >The real problem is that C users have been lied to. I think the real problem is that the committee i
101.
▲
by
1ris
5y ago
Maybe i missunderstood and overracted. I me it looked (and looks) like it introduces a whole lot of new UB and making pointer even more abstract.
102.
▲
by
1ris
5y ago
I don't get what you are trying to tell me. People use C. Yes, it get it. I actually argued infafour of that. Embedded development, device drivers and kernels. None of these need speed. They need reliability and maintainability. The st
103.
▲
by
1ris
5y ago
Disregard this. I was wrong.
104.
▲
by
1ris
5y ago
Why would you want a runtime check if you can have a compile time check? what is insane about const * const? (although a const unique_ptr<T> is obiously better and propagate_const ist nice) For you usecase if "create object, do
105.
▲
by
1ris
5y ago
A completely different feature. In word this should be called "reveal spaces and line breaks". In WordPerfect this is activating a TeX mode in addition to your WYSIWYG. You have two buffers, with two coursers, that stay in sync. M
106.
▲
by
1ris
5y ago
The point of `auto` and `:=` is not to "shave off a few seconds of effort manually looking up the return type of bar(), and a few characters typing out the type in foo's declaration.", but to help with refactoring.
107.
▲
by
1ris
5y ago
To see what? People buy groceries with crypto? Are you sure? USD is used for what crypto fanboys think crypto should be used.
108.
▲
by
1ris
5y ago
Because covid spreads via aerosols, not via droplets. If you could smell a perfume, covid is transmissible. The shielding was just a pice a plastic hanging from the ceiling, not some kind of box. So the cashier was breathing the same air as
109.
▲
by
1ris
5y ago
Germany requires FFP2 masks OR op masks. Public transportation requires FFP2, vouchers for FFP2 masks have been issued (huge cash grab for pharmacies, but thats a different story). They are ubiquitous. I just went shopping and all customers
110.
▲
by
1ris
5y ago
I think uml is not a efficent way for me to pick up information. I learn them in the university and all, but don't think i actually used them really on my jobs. When I look up a design pattern, I try to understand it from a uml diagram
111.
▲
by
1ris
6y ago
yes, exactly. That's why there is no need for it in modern c. This compiler however is different: The type is optional (and assumed to be int). Say you have a variable declaration "auto int i;". Back then you could omit int,
112.
▲
by
1ris
6y ago
"auto" in c is a storage class specifier, like "register", "extern" or "static". https://en.cppreference.com/w/c/language/storage_duration It was considered pretty usel
113.
▲
by
1ris
6y ago
"The use of COBOL cripples the mind; its teaching should, therefore, be regarded as a criminal offense." "It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potentia
114.
▲
by
1ris
6y ago
What makes you think I'm emotional? The post looks very sober and well thought out to me. It's a rational men's humble confessions that reason has it's limits and he accepts them stoic.
115.
▲
by
1ris
6y ago
Moving goalpost.
116.
▲
by
1ris
6y ago
>I do think btc will suck the oxygen out of golds value (and arguably is right now). There is no other way to put it, your are delusional. And no, you are not a unrecognised visionary. This is so wrong you can't even disprove it. Li
117.
▲
by
1ris
6y ago
Bullshit. Energy wasted is energy wasted. It could have done something usefull, but instead it got sunk into a pow. Given miners run 24/7 and have no load following makes things worse. The existing financial infrastructure is also usab
118.
▲
by
1ris
6y ago
As I'm not a K8s user take this with salt. Heavily depends on your exact situation. Keeping your source code in git and let it build on a CI server was almost always enough for me. If your build server runs windows this is usually just
119.
▲
by
1ris
6y ago
I would love to use makefiles and git submodules instead of this msbuild/nuget contraption. That would be way less sophisticated, but I would welcome it. msbuild seems like a good example of microsofts tendency to overengineer simple t
120.
▲
by
1ris
6y ago
Too much inheritance is widely considered bad OOP. Cross component inheritance is considered a non-non for some. (e.g. inheriting from QValueList<T>). Most OOP languages offer a "sealed" of some kind to prevent inheritance b
More ›