Readit News logoReadit News
mojosam commented on Searchcode.com’s SQLite database is probably 6 terabytes bigger than yours   boyter.org/posts/searchco... · Posted by u/polyrand
1f60c · 7 months ago
searchcode doesn't seem to work for me. All queries (even the ones recommended by the site) unfortunately return zero results. Maybe it got hugged?

https://searchcode.com/?q=re.compile+lang%3Apython

mojosam · 7 months ago
Yeah, I just searched for “driver_register”, a call that would show upin a large number of Linux drivers in the open source Linux kernel, not to mention other public-facing repos, and it only returned two results, neither from the mainline Linux kernel repo.
mojosam commented on The almost-lost art of rosin potatoes   thecookscook.com/features... · Posted by u/classichasclass
mojosam · 10 months ago
It sounds like most commenters here have never had a rosin tater. When I was kid, a very popular, upscale restaurant called Planters Back Porch in seafood mecca Murrells Inlet, SC specialized in rosin taters. They were very good, enough for there to always be long lines to get in.

In case it’s not clear from the description, after removing the potato from the rosin, and wrapping in paper, the thin layer of remaining rosin quickly solidifies into a hard shell, so you can then cut through it to get access to the flesh of the potato without accidentally eating rosin.

mojosam commented on Energy-based model explains how chronic stress transforms into disease over time   sciencedirect.com/science... · Posted by u/andrewstetsenko
mojosam · a year ago
it sounds like the authors are suggesting that additional energy usage caused by stress can, in isolation from other causes, be a mechanism for disease. But that doesn’t make much sense:

  - our metabolisms are adaptable, so why wouldn’t this increase in energy use simply be offset by an increase in energy production? It can’t be that people who are stressed in general aren’t getting enough energy, because that would correlate stress with weight loss, but I would argue that there are plenty of overweight people with stress.

  - if the argument is that an increased metabolism by itself is the culprit, then why wouldn’t people with higher metabolisms in general — like anyone who exercises regularly, but certainly athletes — not also experience more disease? If your answer is “that’s different for some reason”, then that means that increased energy usage and metabolism is not by itself the cause, which suggests it may not be the cause at all.
Furthermore, even granting the supposition that stress requires increased energy usage, their abstract doesn’t make much sense:

  - “Living organisms have a limited capacity to consume energy.” Okay, so that means that no matter how stressed we get, there’s a cap to the energy we can use. But how is that relevant, since it also applies to exercise or other energy utilization by the body? Why does a limited capacity to consume energy only apply to stress?

  - “Overconsumption of energy by [stress handling] brain-body processes leads to … excess energy expenditure above the organism’s optimum”. Thats basically a tautology, but more importantly, it doesn’t tell us that energy consumption above “optimal” — which seems extremely vague — is a bad thing.

  - “In turn, [excess energy consumption above the optimal] accelerates physiological decline in cells, laboratory animals, and humans, and may drive biological aging”. So that “may” is a pretty good reason to dismiss this, since again why wouldn’t this lead to increased disease among athletes or anyone with higher metabolism?

  - “Mechanistically, the energetic restriction of growth, maintenance and repair processes leads to the progressive wear-and-tear of molecular and organ systems” Maybe, but why are they energetically restricted if metabolism has increased to provide more energy? And again, why don’t we then see increased disease and aging in anyone who exercises regularly, since that exercise not only uses energy that restricts growth, maintenance and repair, but exercise causes more need for repair.
I think the core problem is that it’s all going to boil down to how you define “optimum”, which the authors conveniently don’t. The authors are going to be left with defining “optimum” as meaning “that energy usage which does not cause disease”. But that’s no different than simply claiming “stress causes disease”, so this model describes nothing, since it tells us nothing about how to identify non-optimum energy usage or how non-optimum energy usage causes disease.

mojosam commented on Intel sells stake in chip designer Arm Holdings   reuters.com/markets/deals... · Posted by u/tithe
lbourdages · a year ago
I feel like this is the exact opposite of what they should be doing.

They should start producing ARM chips. They could finally get a piece of the smartphone market, which would not cannibalize their x86 sales (which I assume is the reason why they have refused to use ARM since the sale of xScale).

mojosam · a year ago
A lot of people don’t remember that Intel was a huge early ARM licensee. If you were building a smart mobile device 25 years ago, you were probably seriously considering the Intel StongARM SoC. They then followed up on this with the more advanced ARM XScale family of SoCs, which you’d likely use if wanted to build a ARM battery-powered smart device in the early 2000s. Background per Wikipedia:

> The StrongARM is a family of computer microprocessors developed by Digital Equipment Corporation and manufactured in the late 1990s which implemented the ARM v4 instruction set architecture. It was later acquired by Intel in 1997 from DEC's own Digital Semiconductor division as part of a settlement of a lawsuit between the two companies over patent infringement. Intel then continued to manufacture it before replacing it with the StrongARM-derived ARM-based follow-up architecture called XScale in the early 2000s.

However, after developing and manufacturing these for nine years, Intel exited this business by selling their ARM unit to Marvell. Intel was developing its own “low power” x86 chip, the Atom, and decided to put all its mobile eggs in that basket, which unfortunately was never as low power as comparable ARM designs. I suspect Intel also saw that the number of licensees in the ARM market was growing and competition along with it, their value-add wasn’t that great, and their margins were necessarily smaller due to the ARM licensing fees.

mojosam commented on How to mail an SD card with gummy glue   flyingcarcomputer.com/pos... · Posted by u/zkirill
rafram · a year ago
Not sure if I really understand what this project is doing. A NetBSD distro for (specific) crappy hardware, named after a Peter Thiel quote?
mojosam · a year ago
The oroduct description in the FAQ is entirely based on what it doesn’t or can’t do, but doesn’t say anything about what it will be able to do, except run an off-the-shelf window manager on an off-the-shelf OS. Are any apps going to be available, And how do customers install third-party apps without the dreaded Cloud?

They are aiming this at someone with:

> a high discretionary budget for personal electronics and willingness to pay a premium for novel ideas.

But what are those novel ideas that would justify the “quite high” price?

And if I wanted a BSD-based desktop computer with “No AI. No Cloud. No Distractions”, I would just buy a Mac Mini, not log into an Apple ID, disable Siri, out it into Do Not Disturb. And Mac OS has never been a “walled garden”. So from a customer’s perspective, why wouldn’t this be an easier, cheaper, and superior solution?

mojosam commented on Comets that 'bounce' from planet to planet could spread life across the universe   space.com/comets-bouncing... · Posted by u/Brajeshwar
kyleyeats · 2 years ago
Some user posted here about how thinking of Earth as the origin of life is the last remaining piece of geocentrism and I can't stop thinking about it.
mojosam · 2 years ago
I don't see how that's an apt analogy. Geocentrism put the Earth at the center of the universe, around which the rest of the universe rotated. But saying life on Earth originated on Earth does not in any way put the Earth at the center of anything. Nor does it in any way mean that Earth is unique.

The bottom line is that -- because we don't know how abiogenesis occurred, whether here or somewhere else -- we have no way to judge how common it is. It could be that, given enough time, life spontaneously forms on any planet or moon that offers a certain set of conditions, and Earth just happens to be one of those planets, meaning it is still not "the center" of anything.

In fact, in the extreme case, panspermia is much more geocentric, saying that life formed in just one very special place -- maybe not the Earth, but somewhere, the "center of life in the universe" -- and then spread by diffusion to all the other locations in which life existed. But that seems like an unlikely and unnecessary model; if life can spontaneously begin somewhere, why should we assume it can't begin in many places, and if that's true, why not also on Earth?

mojosam commented on The C Programming Language: Myths and Reality   lelanthran.com/chap9/cont... · Posted by u/lelanthran
mojosam · 2 years ago
I think there’s a better example, but whether it applies it depends on one of two major divisions of C code: that designed to run on systems with a MMU (as typically used for Linux and other large OSes) — where virtual memory makes dynamic momory allocation practical — and those without — which today is primarily the very large world of embedded devices.

For the latter, the industry best practice is to avoid malloc(), except maybe at init time, and instead allocate memory statically. And in that use case, you break your code into modules, which can contain private data, public data, private functions, and public functions.

In other words, building an app out of C modules is a lot like building an app in a more modern language just using static classes, with no instantiation. And that design pattern — which is extremely common in the embedded world — we have a direct equivalent to the “private” qualifier, which is “static”, which restricts the rest of the app from accessing so-marked file-scope variables and functions.

Where this breaks down — as always with C — is when you need multiple instantiations of a module, which modern programming languages refer to as an object. The closest we can get in C is to pass the module’s public functions a struct with some sort of data structure containing the object’s n9n-static data. And the author explains, there are standard ways make that data structure opaque to calling code, but those are definitely workarounds to language shortcomings.

But the bottom line is that those language shortcomings — the lack of objects and a private qualifier for its members — are only shortcomings if you need those features, and in the embedded world, most applications don’t, they only require all the advantages offered by C. So as always, this is about picking the right language for the project, there’s no one size fits all.

mojosam commented on CWE Top Most Dangerous Software Weaknesses   cwe.mitre.org/top25/index... · Posted by u/dlor
pulse7 · 2 years ago
Here are Language-Specific ones:

1. CWE-787 Out-of-bounds Write: C, C++, Assembly

4. CWE-416 Use After Free: C, C++

7. CWE-125 Out-of-bounds Read: C, C++

10. CWE-434 Unrestricted Upload of File with Dangerous Type: ASP.NET, PHP, Class: Not Language-Specific

12. CWE-476 NULL Pointer Dereference: C, C++, Java, C#, Go

15. CWE-502 Deserialization of Untrusted Data: Java, Ruby, PHP, Python, JavaScript

17. CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer: C, C++, Assembly

21. CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition'): C, C++, Java

23. CWE-94 Improper Control of Generation of Code ('Code Injection'): Interpreted

mojosam · 2 years ago
Isn’t #17 the same as #1 and #7 combined?
mojosam commented on Metformin shown to prevent long Covid   cidrap.umn.edu/covid-19/c... · Posted by u/sp332
thenerdhead · 2 years ago
Does it help those with long Covid?
mojosam · 2 years ago
The claim is that metformin greatly reduces viral load. If your long COVID is caused by the virus continuing to linger on 8n some tissues, as there is evidence might be the case for s9me patience, then it might. But if your long COVID is caused by microclots or lung scarring or other physiological damage caused by COVID, then no.
mojosam commented on Facebook is going after LLaMA repos with DMCA's   twitter.com/theshawwn/sta... · Posted by u/nothrowaways
MrsPeaches · 2 years ago
If it’s a specific list, then I would guess so. But it may be that the numbers themselves aren’t copyrightable.

In the same way that a list of ingredients can/can’t be copyrighted.

mojosam · 2 years ago
Some degree of “human authorship” is a requirement for copyright. I don’t see how weights generated by training an AI would be protected.

u/mojosam

KarmaCake day56June 6, 2021View Original