Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
kuhsaft
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
6 ms
·
1.
▲
by
kuhsaft
2mo ago
Previous HN discussion on project Valhalla: https://news.ycombinator.com/item?id=48595511
2.
▲
by
kuhsaft
3mo ago
Inflation can exist because of a lot of things: natural loss of value, resource scarcity, monetary policy, greed, etc. And it's even harder to make sense of with fiat currency. > Seemed like a vicious cycle. The issue is inflation a
3.
▲
by
kuhsaft
3mo ago
Yes, the laws of thermodynamics and laws of economics are empirical laws. But, the laws of economics are derived from human values, which are inherently subjective. You state the choices as “illogical”, but those choices can be logical base
4.
▲
by
kuhsaft
3mo ago
I don’t see how it’s an improvement over C# structs. C# structs are value types so they are copied when assigned to a variable like primitives. There is no ambiguity because it’s a struct. To avoid copying you have to explicitly declare a r
5.
▲
by
kuhsaft
3mo ago
Even closer would be a C# ‘readonly record struct’. Though, it would be allocated on the stack unless you box it.
6.
▲
by
kuhsaft
3mo ago
Imo #4 is why it’s not that useful. If the data is larger than an atomic read/write op the data isn’t flattened and it’s a regular object with value equality and immutability. You have to opt into force flattening, and then it’s the sa
7.
▲
by
kuhsaft
3mo ago
The C# equivalent to Java ‘value class’ would be a class with a struct encapsulated for data. The data is flattened and allocated on the heap like Java. Similarly, escape analysis could stack allocate the class at runtime, and they can be s
8.
▲
by
kuhsaft
3mo ago
I hate to say it. But thats user error. The struct paradigm is different from classes. Structs are meant to be plain-old data types; simply a typed span of memory. Structs are values, classes are entities with encapsulation. The shape of th
9.
▲
by
kuhsaft
3mo ago
Yeah, that’s a different issue. Statically-typed languages, including type-erased languages, are fine on the CLR. Dynamically-typed languages are a different beast. I suppose DLR would be comparable to GraalVM/Truffle. The difficulty o
10.
▲
by
kuhsaft
3mo ago
C# stackalloc returns a ‘ref struct’ which has certain restrictions and would be a Q-world type. Java chose to go with an L-world implementation where everything is still a reference type on the heap, but memory management is more efficient
11.
▲
by
kuhsaft
3mo ago
All that to be bytecode backwards compatible, although behaviorally there are some breaking changes. See https://news.ycombinator.com/item?id=48597943
12.
▲
by
kuhsaft
3mo ago
There's also https://github.com/ikvmnet/ikvm that converts Java bytecode to CIL; essentially Java on CLR.
13.
▲
by
kuhsaft
3mo ago
I made a comment on my understanding of the difference in implementation here: https://news.ycombinator.com/item?id=48606173 The ramifications for backwards compatibility is that the JVM won't have CLR features such as
14.
▲
by
kuhsaft
3mo ago
> Now, one can argue that this is just smoke and mirrors with type erasure and it is but you can already put a Date into a List<Point> if you're so inclined because the JVM doesn't know the difference, hence type erasure.
15.
▲
by
kuhsaft
3mo ago
Not necessarily. You can ignore the reified generic system in the CLR and monomorphize it in the CIL output for your language. Debugging for users is usually a nightmare though due to the monomorphization. The benefit of a type-erased runti
16.
▲
by
kuhsaft
3mo ago
I mean, the language is what it is. But, it definitely constrains the language developers. Especially when considering interop with other JVM languages. That being said, it is easier to write a language on top of the JVM with good interop,
17.
▲
by
kuhsaft
3mo ago
I don’t think that’s the case. You can absolutely implement a type-erased language on top of the CLR. Your language will just have the same constraints of a type-erased language like Java. Having reified generics in the CLR just lets you st
18.
▲
by
kuhsaft
3mo ago
The gotcha is the potential boxing of structs onto the heap, but that can be avoided using `ref struct`s. https://news.ycombinator.com/item?id=48599273
19.
▲
by
kuhsaft
3mo ago
Like @layer8 said, pass by copy and pass by value are the same. C# copies C++ behavior where you can pass a struct by value or reference, and you can mark the parameter as readonly. C# also has in/out parameters. Essentially, you can p
20.
▲
by
kuhsaft
3mo ago
Cell phone towers and communication systems have backup power for emergency communication during power outages. If you have backup power for your router and ONT/Modem, you should also still have internet service during a power outage.
21.
▲
by
kuhsaft
5mo ago
> On the one hand, you are right, and I rather meant "not exploitable", since technically the vulnerability is still there. And I'm fine with that. I think, the Qubes OS notices should use that terminology as well. Though,
22.
▲
by
kuhsaft
5mo ago
> My point is that they shouldn't. I am saying that it would be better for society if we regulated that. Playing devil's advocate here. Why should software developers be allowed to restrict where/how their software is used
23.
▲
by
kuhsaft
5mo ago
So, not being vulnerable is dependent on not doing something that can make you vulnerable? That doesn't seem right. If you can do something to make yourself vulnerable, you are vulnerable. > https://www.qubes-os.org/
24.
▲
by
kuhsaft
5mo ago
> What would you say if your bank banned your Fairphone (that runs Stock Android signed by Google) just because it is a Fairphone, and "a few hundred thousands of users is marginal"? I think even the regulators would directly u
25.
▲
by
kuhsaft
5mo ago
You know that Xen is just a hypervisor right? Dom0 (the admin Qube) is running the Linux kernel and is vulnerable like any other Linux system. DomU (App Qubes) also run the Linux kernel and are just as vulnerable. You can check your DomU ke
26.
▲
by
kuhsaft
5mo ago
I would group GrapheneOS with Android. If you handed a layperson a GrapheneOS phone and asked them what OS was on the phone, they would probably say Android. But considering it as a separate OS, I wouldn’t consider it mainstream. It’s not o
27.
▲
by
kuhsaft
5mo ago
Relevant conversation about those technicalities: https://news.ycombinator.com/item?id=30042576 Though with a username of fsflover, I think you'll be biased. Also, another relevant thread (that you were even a part of!
28.
▲
by
kuhsaft
5mo ago
A bit aggressive, but understandable. > If anything, it makes it harder to audit and figure out which firmware version is being run than if the firmware were to be shipped along with the OS. Yep. https://docs.puri.sm/Hard
29.
▲
by
kuhsaft
5mo ago
> I only mention that because a contingent of voices as high in volume as they are few in number endlessly shoehorning the Librem 5 into numerous threads no matter how much of a non-sequitur it takes, has me suddenly paying more attentio
30.
▲
by
kuhsaft
5mo ago
Sorry, the statements were a bit disjointed. iOS existed before the Microsoft Store. The apps developed were brand new. No backlash from a new SDK and platform. Windows RT is closer to iPadOS though. For iPadOS, apps just worked since it’s
More ›