Better HN
topnewbestaskshowjobs
Log inSign up

sunrunner

1,141 karma · joined Jul 26, 2024 (2y ago) · 438 submissions

Submissions

comment 1y ago · link · parent

Earlier this week ChatGPT found (self-conscious as I am of the personification of this phrasing) a place where I'd accidentally overloaded a member function by unintentionally giving it the name of something from a parent class, preventing the parent class function from ever being run and causing <bug>.

After walking through a short debugging session where it tried the four things I'd already thought of and eventually suggested (assertively but correctly) where the problem was, I had a resolution to my problem.

There are a lot of questions I have around how this kind of mistake could simply just be avoided at a language level (parent function accessibility modifiers, enforcing an override specifier, not supporting this kind of mistake-prone structure in the first place, and so on...). But it did get me unstuck, so in this instance it was a decent, if probabilistic, rubber duck.

comment 1y ago · link · parent

> we can't abstract away everything we do multiple times

I think there's a fundamental truth about any code that's written which is that it exists on some level of specificity, or to put it in other words, a set of decisions have been made about _how_ something should work (in the space of what _could_ work) while some decisions have been left open to the user.

Every library that is used is essentially this. Database driver? Underlying I/O decisions are probably abstracted away already (think Netty vs Mina), and decisions on how to manage connections, protocol handling, bind variables, etc. are made by the library, while questions remain for things like which specific tables and columns should be referenced. This makes the library reusable for this task as long as you're fine with the underlying decisions.

Once you get to the question of _which specific data is shown on a page_ the decisions are closer to the human side of how we've arbitrarily chosen to organise things in this specific thousandth-iteration of an e-commerce application.

The devil is in the details (even if you know the insides of the devil aren't really any different).

comment 1y ago · link · parent

There are a lot of terms in software development that have been co-opted from other disciplines and misrepresent a lot of development work, including 'engineering' and 'architecture'.

I think it's helpful to think of engineering as a _process_ instead of a role, and the reality is that a lot of development work doesn't necessarily rely on the strong engineering methodology (e.g. measurement, material properties, tolerances, modelling, etc.) that the people developing the software might imagine just based on the number of job adverts for 'engineers'.

This isn't a bad thing. There are hundreds or thousands of different but equally valid solutions to getting a program to do a thing, but not recognising that most code writing is somewhere between a art and engineering and is neither a purely artistic discipline but also rarely a purely engineering one is useful.

The kinds of engineering and architecture that people think of in software development only really represent common practices and shared language (e.g. design patterns, architectural patterns) and not a strong engineering practice or any kind of truth about how software actually runs.

(Unless you're writing software for launching rockets, in which case the engineering _process_ porbably should be strong).

comment 1y ago · link · parent

> maybe people send advance team to setup before owner reach their vacation mansion and drive them around, cook their meals, etc once they are there.

I can readily believe this does happen at the right level of wealth, but there's something deeply absurd and humorous about someone sending a vanguard to their second or third home before they arrive.

comment 1y ago · link · parent

If you were that rich wouldn't you just hire someone to drive well for you? But if you liked driving for the sake of it would it not be part of the enjoyment to learn to handle different vehicles well?

comment 1y ago · link · parent

With the recent surge in mindshare around language models and generative AI in general, one of the ideas that keeps coming up is unique content and experiences that are either tailored to the consumer or are at least unique for that person in some way.

But I wonder if this is missing something that you've touched on, the function of cultural artefacts as a means of connection (and perhaps trust building) through a known shared experience. Whether it's watching a TV show, reading a book, listening to music, playing a game, all of these activities essentially have two functions. The first is the thing itself (I'm enjoying this book, song, game, etc.) but the second is the opportunity to _connect with others_ around that, which only really works when some majority of the thing is known by everyone.

This doesn't say that there isn't value in unique experiences, except that these unique experiences are always unique _in the context_ of a shared and known thing.

Roguelikes are perhaps a good example of this. Every run is unique to a player and essentially unique across all players (seeded runs aside), but you can always talk with others about the specific events that happened in any single run because everyone understands them in the context of the game as a whole. The 'crazy thing that happened in my last run' still works because other people know how rare the event or combination of events might be, so it's still a valid shared experience but also unique.

Another more lightweight example might be the amount of NPC dialogue in Supergiant Game' Hades. I believe there's something like 80,000 unique lines of dialogue in the game, so players can go a long time without hearing the same thing again, and unless you play for a long time you might never hear certain lines that other people will have heard.

As for your example about conversations going nowhere when there's no shared experience, perhaps there's even an argument that the connection aspect of the experiences is actually the primary function even if we think it's a secondary function.

Tangential point related to generative models, but perhaps there's even a third function at play, which is that the the _process_ of creating the work may have been its own value for the creator, but this is more about the value of spending time and energy making a thing for yourself or others to experience (to connect over).

comment 1y ago · link · parent

It's also produced some of the worst. Other channels and services have also produced some of the best and some of the worst. Because it's fairly subjective and there's no accounting for taste.

It feels a bit disingenous to compare a limited number of already very well known classic programs that have survived the test of time against the entire breadth of newer programs (of which there are vastly more in number, so the likelihood of even being seen is much lower).

comment 1y ago · link · parent

It always seems crazy to me that in the early 1980s the BBC undertook the Computer literacy project, commissioned Acorn Computers to manufacture the BBC Micro, and produced educational content to support learning and use around said system itself.

I understand why the chances of that being a profitable enterprise now given the development of computing hardware are practically zero, but even the idea that the BBC would produce interesting educational content now seems wild (not counting documentaries as that's not often something that provides information you can act on and use). If I want that kind of content now it's pretty much a guarantee that I'll end up on YouTube.

Nowadays they're a non-neutral-seeming news outlet and producer of low-risk dreck that also demands I pay the UK TV Licence fee even just to watch _other_ channels. Do I need a reading licence to read books written by other people? Didn't think so.

At this point it's simply a subscription fee for a service I don't want, and so I don't subscribe. Bring back quality content (subjective of course, but some variety would go a long way), perhaps some risk-taking (something on par with Channel 4's Utopia seems like a good goal). Oh, and perhaps cut the salaries of some of the unnecessarily highly-paid reporters. Just a thought.

comment 1y ago · link · parent

> There isn't a single competitor that offers anything close to that today

In terms of price versus content/quality (subjective of course) ratio or just price?

Dropout is relatively cheap compared to others and completely ad-free. The most interesting thing is perhaps that they recently announced a very small price increase to keep up with inflation, but it was implemented in a way that would a) only affect new subscribers and b) only after a date a few months ahead, so current subscribers _and_ people subscribing within the next month or so would keep the current price.

It's interesting to see the number of people threatening to cancel their subscription just so they could re-subscribe at a higher price and then buy more merchandise just so they can give their favourite streaming service more money.

That kind of genuine goodwill seems out-of-reach for the larger streaming services, however Dropout is also pretty niche content-wise and even with their back catalogue it's nowhere near the seemingly infinite amount of video on the major platforms.

comment 1y ago · link · parent

> Since an average PhD dissertation is around 70K words (translates to roughly 90-100K tokens in most LLM tokenization schemes), perhaps one benchmark could be whether an AI system can maintain the equivalent context.

This is a really interesting idea, and my immediate question around the average dissertation size is how many tokens are needed to represent all of the implicit/unstated knowledge that forms the basis for the dissertation itself. If the dissertation itself really is the tiny bump in the boundary of human knowledge that Matt Might's 'The illustrated guide to a Ph.D.' [1] shows then what's the token size for everything up to the bump created by the dissertation.

> Current AI systems, regardless of context window size, don't truly "understand" information the way humans do. They recognise patterns in data and generate outputs based on statistical relationships, but lack the deeper conceptual understanding, intentionality, and the other characteristics of human intelligence.

Whether or not I'm an AI believer, I'm not sure I could genuinely answer the question 'Do _you_ truly understand information?' if someone posed that to me, as I have no real understanding of how to measure that. I want to say it's meta-cognition, my ability to think about thinking and reason about my own knowledge, but that starts to feel pretty fuzzy and I wonder how much of that is anthropocentric thinking.

[1] https://matt.might.net/articles/phd-school-in-pictures/

comment 1y ago · link · parent

Why compete when you can simply form a cartel with your competitors and keep things roughly balanced, occasionally letting the small lead pass to someone else.

comment 1y ago · link · parent

Good points, although there's a level there where you're not directly opting in to those and are somewhat a passive consumer (if you ignore being conscious of being immersed in an ad-laden environment), while the Ad Buddy model seems to sit just before directly and simply paying for the service or product by having your balance topped up by opting in to as direct an ad as I could imagine that's not subliminal messaging.

comment 1y ago · link · parent

Darn, I thought it was Feynman and checked it beforehand. Maybe it was Von Neumann quoting Einstein (himself quoting...)

comment 1y ago · link · parent

"Young man, in numpy you don't understand things. You just get used to them." -- John von Neumann (probably)

comment 1y ago · link · parent

> token balance tied to watching old school regular ads

This feels like such a weird but also 'natural' extension of the current model where the timing of an ad is not guaranteed except for at least at the beginning of, say, a video. Instead of ads being inserted at times that may or may not correlate with some kind of 'pause' point, being able to opt-in to a number of duration of ads that equal payment

Taken _directly_ from Google's AI Overview of a search I did (to make sure I remembered correctly):

"In the fictional world of the Netflix series "Maniac", an "Ad Buddy" is a person who is assigned to follow another person around, delivering advertisements for them. Essentially, it's a human-powered advertising campaign, where someone is paid to be a walking billboard."

comment 1y ago · link · parent

Do the comparisons to PhD-level as a marker for some quantity of how 'smart' a system (by which I mean the current colloquial usage of 'AI') really make sense?

I thought a PhD was ultimately a representation of a body of work that a likely-smart person produced in order to a) learn the state of the art in a narrow domain, b) practice research methodology, c) hopefully push the boundary of human knowledge in that area. Which is not to say that PhD candidates and holders are not 'smart', just that PhD represented the work and not just the person after an IQ test.

Or is the comparison valid and the goal is for AI (again, current colloquial usage) to be able to push the boundaries of human knowledge? Or perhaps it would be human-machine-knowledge at that point?

comment 1y ago · link · parent

I think that's because the Rust developers are having too much fun sitting on their high horse shouting about how great the horse is to need to spend time yelling about the people _not_ on the horse, while the C++ developers don't have a horse to yell about so need one to yell _at_ instead.

comment 1y ago · link · parent

I agree that some amount of friction when including third party dependencies is a vital thing to push people to consider the value versus cost of dependencies (and license review, code review, channel subscriptions are all incredibily important and almost always overlooked), however how should this work for transitive dependendencies? And the dependencies of _those_ dependencies?

The dependency trees for most interpreted or source-distributed languages are ridiculous, and review of even a few of those seems practically impossible in a lot of development environments.

comment 1y ago · link · parent

I'm on macOS a lot of the time so I did get to the installer part and immediately stopped as it felt like LGPL-licensed software should be accessible without needing an account, an installer (is it useful?) or anything except allowing the end user to access libraries and headers directly.

comment 1y ago · link · parent

As an end user, what's the licensing situation like with Qt? I was looking to build a cross-platform desktop application (down the rabbit hole...) and was frustrated with the number of options that were just a web view of some sort and some bindings to a JS/TS framework of your choice (I don't have one and don't really want to have to use one or bundle it with the application).

Qt looked interesting, particularly with the concise syntax afforted by QML and QtQuick, but the licensing was off-putting and even just getting access (for a non-commercial project for example) seemed to require an awkward sign-up and some kind of installer.

I crave the conciseness and simplicity of something like SwiftUI but the options for doing that in a cross-platform way seem limited.

comment 1y ago · link · parent

Not a comment on the article, but the linked URL makes me vaguely uncomfortable.

comment 1y ago · link · parent

I shudder to think of what it means to be storing the _results_ of processing 21 GB/s of CSV. Hopefully some useful kind of aggregation, but if this was powering some kind of search over structured data then it has to be stored somewhere...

comment 1y ago · link · parent

It's not a fair comparison on my part but before reading through the docs some of the initial wording around Deno compile seemed to imply (or I inferred) that a platform native executable would be produced from the process. Wishful thinking on my part I guess.

Other languages like Golang making it relatively easy to build _native_ programs and to cross-compile them makes it a solid choice CLI tools, and I was genuinely hoping that more tooling like that was coming to other ecosystems. Perhaps naive to expect a shift like that for a language that's always been interpreted, but I like when I can run developer tools as native programs instead of ending up with various versions of a runtime installed (npx doesn't _solve_ this problem, merely works around it).

comment 1y ago · link · parent

I'm just as disappointed as I was when I first heard about being able to create 'Self-contained Executable Programs with Deno Compile', perhaps slightly more even as at least that bundled the interpreter.

In all seriousness, Docker as a requirement for end-users to create an executable seems like a 'shift-right' approach to deployment effort, as in, instead of doing the work to make a usable standalone executable, a bunch of requirements for users are just pushed on to them. In some cases your users might be technical, but even then Docker only seems to makes sense when its kept inside an environment where the assumption of a container runtime is there.

I assume extra steps are needed to allow the 'executable' to access filesystem resources, making it sandboxed but not in a way that's helpful for end users?

comment 1y ago · link · parent

I don't disagree regarding "listened to with pleasure" and I only remember actively listening to atonal music as part of a required syllabus. I do think it's perhaps a useful lens to use to look at 'traditional' tonal music through however, even if just to re-affirm that _some_ kind of order and structure is an important part in making something palatable to the ears (or the brain).

comment 1y ago · link · parent

> we tend to attempt to hear atonal music in a key

Is it the case that much of this is influenced by individuals having grown up listening in an environment with music already structured around a central key and modulation around that? With the same idea also applying to an understanding (or feeling) of rhythm?

comment 1y ago · link · parent

> Melodies will be in a key, using a set of notes. That’s kinda unavoidable.

Schoenberg has entered the chat.

comment 1y ago · link · parent

As a fan of Puzzle and Dragons and a semi-regular commuter, I can never not see the Moquette patterns used on some of the London Underground lines as orbs that need re-arranging to make combos.

comment 1y ago · link · parent

> the sufferer becomes increasingly unable to distinguish between the real world and the virtual world

With the pervasive rise of deepfakes, generative AI based content and the overall volume of 'slop' across social media and video sharing in general, distinguishing between the real world and the virtual world already feels like it's becoming increasingly difficult.

comment 1y ago · link · parent

"Everyone thinks their job in the Silo is the most important. Mine actually is." -- Juliette Nichols (also some Software Engineers)
1
1112131415