HNHacker News
TopNewBestAskShowJobs

dmkolobov

443 karma · joined October 13, 2013

submissionscomments
dmkolobov··on AMD's trusted execution environment blown wide open by new BadRAM attack
The operators own the hardware and lease it to customers for computation. Those customers do not trust the operators to not peek at their Super Sensitive Data. TEE is a way for the operator to provide assurances to their customers that they will not, and more importantly cannot, exfiltrate customer data.

This is in theory. In practice, as demonstrated by the article, these assurances are not bulletproof.

dmkolobov··on A Novel Idea About `Functor` in Rust?
How dare people have new ideas.

For those that don’t hate new ideas, functors and the like allow you to write transformations on data in terms of elements, rather than the structure of the container. This means that it doesn’t have access to things like neighboring elements or the size of the overall structure( unless other traits which provide those capabilities are mentioned in the trait bounds ). Such well-known algebraic restrictions can be useful for managing complexity when writing compilers or other data pipelines.

The simplest use-case is when you want to use an algorithm across multiple representations of a data structure(list vs array, for example).

dmkolobov··on Dependency management fatigue, or why I ditched React for Go+HTMX+Templ
I’d say all of those bullets fall under the umbrella of “rendering” in an asynchronous execution environment like browsers, where code often depends on a consistent and predictable view of the DOM.

I’m willing to hear arguments about the merits of how React approaches these issues, but I would want any frontend UI library for generating and updating DOM trees to address them in some way.

dmkolobov··on Raw milk recalled for containing bird flu virus, California reports
Free adults make decisions for children, and there is a long precedent( imo well justified ) of regulating decisions wrt to children: see vaccinations and mandatory schooling.
dmkolobov··on A dictionary of single-letter variable names
It’s essentially a way to give types to “mutable” views into larger data structures.

s - the larger data structure

a - a view value

b - a “update” value

t - the data structure after an update is applied

Of course, everything is still immutable in the same way that cons-ing a value onto a list is immutable.

The change in type between s and t allows you to nest these views, hide information, etc.

dmkolobov··on A dictionary of single-letter variable names
I know this is a troll comment, but the situations you see these variables are in highly-polymorphic( generic ) code in which there are no more descriptive names.

It’s like the use of `T` as a name in most Java or C++ generics.

dmkolobov··on Ask HN: What happens to ".io" TLD after UK gives back the Chagos Islands?
A bunch of startups losing out on domains they bought despite best practices is not an event I would call “detrimental to the smooth operation of the global DNS network”.

This was a known and willfully ignored business risk for these places.

dmkolobov··on The upstream cause of the youth mental health crisis is the loss of community
Right. I would argue that organized religion provides(provided?) a guided framework of accountability, transparency, and acceptance for your "justifications" amongst your community. In a vacuum, these differences compound into a complete breakdown of understanding.

It's harder to call someone a "libtard" or a "troglodyte" if you have to sit next to them in a pew for the rest of your life.

dmkolobov··on The upstream cause of the youth mental health crisis is the loss of community
Growing up in Nashville I've frequently heard that religion is a prerequisite to ethics. While I disagree in principle, I struggle to come up with an example where philosophy and ethics are discussed in a secular setting outside of school(academia included) and politics.

It would not surprise me that on the whole our society is worse off for lack of a widespread secular tradition of discussing these concepts with your community.

edit: substitute "secular setting" for "secular state", definitely not arguing for the integration of church and state.

dmkolobov··on Orca: WebAssembly Apps Without the Web
Yeah, didn’t quite catch that at first, apologies to the GP if the inclusion of the quote was insensitive.
dmkolobov··on Orca: WebAssembly Apps Without the Web
because “[his] house was destroyed by Russians who invaded [his] country”
dmkolobov··on German Navy still uses 8-inch floppy disks, working on emulating a replacement
Can anyone speak to why those systems were considered more reliable? Are world agencies relying on this technology because of the inherent risk of rebuilding systems, or because of some attractive property of floppy disks?
dmkolobov··on Roku update turns on hated motion-smoothing feature, with no off switch
There are also few major streaming services which require elevated levels of DRM , preventing them from being used on Linux.
dmkolobov··on Unit is a general purpose visual programming system
Is it? At work we added conditionals to our expression language some four or five years after the first version was released.
dmkolobov··on A reckless introduction to Hindley-Milner type inference (2019)
The problem with “not writing code like that” is that eventually someone does.

At work we use a home-grown Haskell-like language with “row types” which can be split into disjoint sets of fields in order to represent joins and the like.

It works well in most cases, but it’s very easy to forget a type annotation and trigger unmanageable build-times. Often times, it is not obvious where something needs to be annotated. Sure, we can act as human time-outs, but the productivity loss can be substantial, especially for a newcomer to the language.

dmkolobov··on Quake in 13kb (2021)
“We like to pretend space is full of hell monsters you see”
dmkolobov··on YX Problem
This article definitely brings to mind hobbyist embedded programming forums, Arduino, Raspberry Pi, etc.
dmkolobov··on Cummins Fined $1.6B for Diesel Defeat Devices in 630K RAM Trucks
I would be surprised if their target market gave a shit. Large trucks and Cummins engines are marketed to the same folks who run coal-rolling mods.
dmkolobov··on Not a single emperor penguin chick survived spring in parts of Antarctica
It’s a bit anthropomorphic to assume that large populations of birds can adapt their behavior to rapid changes in their environment on a short timescale. There’s no central planning to penguin behavior as far as I’m aware of. The fact that some emperor penguins can be made to breed in captivity without ice does not mean that enough penguins in the wild will do so without human intervention.

Evolution is trial and error. Maybe eventually they would change their breeding behaviors to rely less on ice in the wild. Or maybe a rapidly changing environment will cause enough members of this endangered species to go the “error” route, and trigger a population collapse.

dmkolobov··on “Rewrite It in Rust” Considered Harmful? [pdf]
The conclusion is

“you have to think hard to avoid UB via rust’s FFI mechanics.”

this is contrary to rust’s aims to make such bugs impossible, rather than just hard.

Hence their proposal for a DSL _in rust_, which makes those bugs impossible.

The authors are providing a solution to a clearly identified problem, with the goal of making rust better.

Despite the poor intro, the ideas in the paper are “let’s shrink the unsafe boundary”, not “let’s stick to writing what we know(C).”

dmkolobov··on “Rewrite It in Rust” Considered Harmful? [pdf]
I’m not a fan of “being cute” in papers typically, for the reason that it detracts from the central ideas. Clearly this happened here.

These discussions frequently feel “tense”, wherein criticisms based on specific technical details are tied to an attack on the language as a whole.

In that context, the authors definitely shot themselves in the foot with the opening/title.

dmkolobov··on “Rewrite It in Rust” Considered Harmful? [pdf]
I think some folks are misreading the authors intentions(possibly due to aforementioned snark): they’re not advocating for sticking to existing C codebases over rust.

They identify FFI as an area where it is easy to make mistakes which lead to undefined behavior, argue that it is the result of competing assumptions between C and rust, and then propose a formal system implemented in both in C and in Rust to resolve those issues.

Sure, the problems they identify wouldn’t exist if everything was rewritten in Rust, but on a large enough / old enough codebase, that may impossible to do all at once. This paper attempts to find a way to make rust better within those organizational constraints.

The audience here is not engineering managers deciding in your next tech stack, but programming language researchers.

dmkolobov··on Microsoft exec says Windows 11 kernel will soon be booting with Rust inside
The difference is that your C++ checks are executed at runtime. Rust's borrow-checker rules ensure this occurs at compile-time, before you ever run any code.
dmkolobov··on Thousands trapped on Pine Ridge burn clothes for warmth in wake of storm
There’s a very real difference between mostly everyone being serfs long ago, and a relatively small, particular group being targeted by government sponsored economic/cultural/physical violence in your lifetime.

I live in Denver, with a very large Native population, and many still remember being taken from their families and being forced to speak English, while the rest of the country experience the affluence boom of the suburbs and such. Acknowledging that recent history isn’t controversial in those communities.

dmkolobov··on FTX founder Sam Bankman-Fried to be released on $250M bail
Probably more like equity before the law.
dmkolobov··on The cost of being poor: Why it costs so much to be poor in America
Fine, the pursuit of profit over all else forces people to make decisions like screwing entire neighborhoods out of access to basic quality food and other goods.

Is that better?

dmkolobov··on The cost of being poor: Why it costs so much to be poor in America
In my experience, this is true for just about every type of store. Especially grocery stores. I live on Federal in Denver, and the selection relative to some of the wealthier suburbs is atrocious. The past few years have made me wonder who gets the job of ensuring poor neighborhoods get screwed in the face of nationwide shortages of items.
dmkolobov··on Tell HN: We are trying to get tail calls into the WebAssembly standard
If you’re implementing a compiler for a language like Haskell, then everything is compiled into mutually-recursive tail calls.
dmkolobov··on Introduction to Haskell Typeclasses
Respectfully disagree about monoids! Plenty of cool stuff there, here’s one of my favorites, a diagramming library built around monoids:

https://repository.upenn.edu/cgi/viewcontent.cgi?article=177...

dmkolobov··on WebAssembly 2.0 First Working Draft
Looking at this it seems tail-calls are still not part of the spec? Has there been any news regarding return_call?

Would be cool to see it for more efficient implementation of functional languages.

← PreviousPage 3 of 5Next →