Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ryao
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
31.
▲
by
ryao
1y ago
The Chernobyl plant had known construction defects that could impair safety. These things would prevent a western plant from starting operation, but did not stop the Soviet plant from beginning operation: https://inspectapedia.co
32.
▲
by
ryao
1y ago
Why mine uranium? Only about 4% of nuclear fuel is actually used before the fuel rods need replacement, which makes uranium highly recyclable. Given all of the “spent” fuel rods in storage, mining operations for additional uranium are unnec
33.
▲
by
ryao
1y ago
Data reported by Forbes put the death rates for nuclear power in the US below all other sources of energy including solar: https://www.forbes.com/sites/jamesconca/2012/06/10/energys-d... The death r
34.
▲
by
ryao
1y ago
I do not plan to try this but I do wonder how well the terminal version of WordPerfect would work in this. Also, if sixel support were added, it could support graphics. See: https://github.com/taviso/wpunix/wiki&#x
35.
▲
by
ryao
1y ago
Ask someone who is visually impaired. I know that they historically use browsers that do not support JavaScript. I also am acquainted with one developer who uses software for reading his terminal outloud, although I never asked the specific
36.
▲
by
ryao
1y ago
I suspect X11 can do mixed DPI and VRR with multiple displays if you do 1 display per xscreen, but nobody uses that configuration. I suspect HDR support could be added if someone were to retrofit it like how VR support was added, but no one
37.
▲
by
ryao
1y ago
It sounds like how ChromeOS is Gentoo based but does not ship the package manager.
38.
▲
by
ryao
1y ago
I wonder to what extent visually disabled internet users are affected by this, since I can imagine at least some of them using lynx with an on-screen reader for a terminal emulator.
39.
▲
by
ryao
1y ago
I thought that he said that they gave up at competing with Nvidia at training, not in general. He left the door open to compete on inference. Did he say otherwise more recently?
40.
▲
by
ryao
1y ago
I half expected to read that he devised a charging circuit for it controlled by a raspberry pi. I was somewhat disappointed when it turned out to be a normal blog post about buying a car.
41.
▲
by
ryao
1y ago
In that case, this was one of the most expensive no-ops in history.
42.
▲
by
ryao
1y ago
If it allowed them to move faster than their completion, I imagine management would consider it money well spent. They are expected to spend absurd amounts of money to get ahead. They were never expected to spend money efficiently if it mea
43.
▲
by
ryao
1y ago
The article author is wrong. It happens. Draw a vent diagram with two partially overlapping circles. You and the author are looking at the overlap and concluding the two are the same. They are not, given the stuff outside the overlap. As fo
44.
▲
by
ryao
1y ago
You can use similar logic to declare English to be an example of Chinese. They both have syllables. They both assemble syllables into words that convey meaning. They both use grammars to form relationships between those words. Thus, they mu
45.
▲
by
ryao
1y ago
I have no idea what LWN post you mean. You can make stubs trap by doing a NULL function pointer dereference, but that does not make NULL function pointer dereferences the same as stubs in general.
46.
▲
by
ryao
1y ago
You would typically put the this pointer into the first argument when doing OOP in C. You can put the this pointer in the last argument to have it work too. However, you cannot omit it entirely. That is something that is not OOP. It is an A
47.
▲
by
ryao
1y ago
If you leave out the this pointer, it is the equivalent of putting a function pointer to a global function (or a static member function) into the structure. This is not how OOP works. Omitting the this pointer also breaks inheritance, since
48.
▲
by
ryao
1y ago
It cannot be overridden by subclasses without risking undefined behavior because there is no this pointer for it to use.
49.
▲
by
ryao
1y ago
The point of a vtable is to implement virtual member functions that support inheritance and polymorphism without changing the base class implementations no matter what the child classes do. If you omit the this pointer, you cannot do inheri
50.
▲
by
ryao
1y ago
> Yes. Since we are not in C++ we can choose to get rid of this useless pointer. If you were trying to implement OOP in the kernel in C and implemented a vtable, you cannot get rid of the this pointer in vtable entries since a child clas
51.
▲
by
ryao
1y ago
You don’t implement calls to static member functions by putting them into a vtable, which is one of many reasons why this is not a vtable. The proper way to implement static functions is through static dispatch.
52.
▲
by
ryao
1y ago
I never said that the type was known before runtime in OO. Your not a bug comment sounds awfully like an all bugs are features. Implementing static member functions this way would cause undefined behavior, which is a bug.
53.
▲
by
ryao
1y ago
It is not the same theory, since it is an ADT, not anything object oriented. Different theories can and do overlap. The emitted code is also not the same, since there is no implicit this pointer. You are the one who posted a definition you
54.
▲
by
ryao
1y ago
A stub is an empty implementation. An empty implementation is different from no implementation, where there is no code to execute. It is the difference between writing 0 and writing nothing.
55.
▲
by
ryao
1y ago
Data abstraction is a separate invention from OOP since it involves abstract data types. What is being used here is an abstract data type. It is not the pattern used in OOP languages and it is not OOP. It bears similarities and overlap with
56.
▲
by
ryao
1y ago
If the kernel were written in C++, it would still be done the way it is done now. C++ does not allow unimplemented member functions and the ADTs currently used do. You can emulate that with multiple inheritance, but it is an inferior way of
57.
▲
by
ryao
1y ago
The calling convention for C++ non-static member functions always includes a this pointer, even if the function does not use it. Removing it on member functions that do not use it would pose a problem if another class inherited from this cl
58.
▲
by
ryao
1y ago
The definition you quoted requires the language to be the one doing it for it to be a vtable. If the programmer is doing it, then it is not a vtable by that definition.
59.
▲
by
ryao
1y ago
There is always a subset of the population for which it is fashionable to try to make a new language to make things easier. It is inevitable that someone in a sufficiently large organization will try to make one, provided management support
60.
▲
by
ryao
1y ago
Let’s say I have ClassA::Foobar() and ClassB::Foobar(), and ClassB inherits from ClassA. Now let’s say I want to use ClassA::Foobar(), and I access it from the object because this pointer is in the vtable and the object is of type ClassB. N
More ›