Better HN
topnewbestaskshowjobs
Log inSign up

musingsole

1,234 karma · joined Apr 4, 2019 (7y ago) · 764 submissions

Submissions

comment 4y ago · link · parent

Ack, so I did :P

comment 4y ago · link · parent

I find this a bit of a wart on the dataclass implementation. Type hints (to me) are more like a comment than a statement. So, from my perspective, dataclasses feel like they're pulling data out of nearby comments. Ick.

But it's a wart worth the conciseness, at least, until a better idea comes along.

Maybe if type hints could be optionally enforced as a language feature, I'd feel it was more integrated.

comment 4y ago · link · parent

> trust that the static types are truthful

That's often a mistake even in typed languages like typescript. Satisfying a static type analyzer isn't enough. Real data is whatever it is going to be. If your types are meaningless at runtime, you can easily encounter type mismatches.

Static typing as implemented in typescript and python type hints is a tool for engineers instead of a tool for systems.

comment 4y ago · link · parent

> with an additional layer of generics to double complexity

In 2022, I just don't understand Java development. It feels like a whole ecosystem just insisting on itself as everything else moves on.

comment 4y ago · link · parent

Likewise, I always thought that "we were hacked!" approach was an attempt to CYA in a legal respect.

And the way the word gets used, it covers any usage of a service not explicitly allowed in the Terms of Service.

But in this case, it seems they reviewed their terms and realized they hadn't protected themselves FROM A LEGAL STANDPOINT

No matter what ivory tower we're talking about, there's never a reason to be in awe of the top.

comment 4y ago · link · parent

You stated videos aren't difficult. My experience with professionals presenting whatever across many disciplines really shows that to be false.

I know it can be done; I've seen it. I know it can be good; I've enjoyed it.

But to say "it's not difficult" is to be blind to reality.

comment 4y ago · link · parent

> I still don't understand why you don't just mark their answer from creatively misinterpreted instructions wrong and move on with life

Because the actual incidents are often in fuzzy areas where it seems possible the teacher's instructions were confusing. You're stuck making a character judgment of your student instead of evaluating knowledge. Over a career, it becomes easier to cordon off fuzzy areas than it is to risk a moral challenge.

comment 4y ago · link · parent

> It’s not difficult to use a real video format with controls to allow pausing, or to design a pause button into software-driven animation.

Countless presentations that just skipped whatever video content they had due to various technical difficulties say otherwise.

comment 4y ago · link · parent

Concretely, why?

comment 4y ago · link · parent

> "Maybe" makes this essentially useless.

Ok, then don't use it!

comment 4y ago · link · parent

You do, when you pin it to a service you're paying for. When/if it becomes unimportant, you unpin.

But what's cool, is even if it's unpinned, it may still be in the network so long as the data is getting active use. It opens up a whole field of seed and harvest style information flows.

comment 4y ago · link · parent

> Thanks to IPFS you can access the data the same way

I think this is a big feature that I hadn't recognized until you phrased it this way. It allows a strategy of guaranteeing *at least 1* pin of your data if it's important, but from the application side, you can forget about the details of the data storage.

I doubt IPFS is fast enough to justify it over other strategies today, but it makes me think of a type of cache where if a CID can't be found, you might rehydrate some slow, cold-storage data and push it back out to the network.

comment 4y ago · link · parent

The Muse 2 headset has ear and forehead sensors. I'm not too up on EEG, but I'd believed the ear sensors were just for grounding/baselining what's read from the forehead.

Blink detection at least is pretty robust when I've played with it.

https://choosemuse.com/muse-2/

comment 4y ago · link · parent

You asked for pub/sub functionality over HTTP. Pub/sub implemented on WebSockets is just that.

comment 4y ago · link · parent

1. Okay, I have several candidates.

2. Ok. Welcome to life in Linux?

If these justifications were serious, I should have the option to buy just the headset and navigate the compatibility problems if I chose. We're talking about Linux after all.

Having this one option and hiding behind the excuses I've seen indicate they've jumped the shark sooner to consumerism than I would've hoped.

comment 4y ago · link · parent

No. I'm emphasizing the ludicrous proposition.

comment 4y ago · link · parent

> attached to a compoarably powerful laptop

This is the part that doesn't make sense. I don't need a computer from a product manufacturer focused on something else. I already have 10+ computers within reach; 3 of them can stream just fine to my Oculus Quest.

Really, is the only way to create a VR PC to eschew all of that in favor of some controlled hardware ecosystem? I don't/won't buy it.

comment 4y ago · link · parent

> You have to think about the failures whenever you have succumbed to reaching outside of your call stack for answers.

For any meaningful application, you'll be reaching out of your call stack every fifth line of code.

comment 4y ago · link · parent

> I think the financial incentives are already there to consider computational resources precious.

I'd argue we ARE already working with computational resources as precious commodities. If you are in an area where it matters, you consider the logistics of acquiring, retaining, and utilizing all of your CPU and memory. It's precisely this that fed the rise of AWS.

So, do we need a new economy putting pricing on these resources? No! We already have it. We're just shocked at how cheap it is. But why shouldn't it be? You're messing with virtual realities where it's possible to teleport objects from one side of the universe to the other at almost no cost. Compare that with the friction of moving a real world object to the other side of your house.

Thermodynamics apply. I'm pretty tired of navel gazing about the efficiency of computing when it was invented as a mechanism to increase the efficiency of the CRITICALLY inefficient systems.

Your smartphone and its code are not the bottleneck in the world system. Stop optimizing the wrong parts.

comment 4y ago · link · parent

Across 3 companies in 10 years, yeah, each one requested me to pursue ethically questionable ends. Sometimes it was an abuse of our customers. Sometimes it was an abuse of other employees.

I could tell the people requesting these things often felt trapped themselves, that they had to. In one occasion, I was told the company could shutter in months if "we" didn't throw up smokescreens and obfuscate the product.

An important lesson is these types of people don't actually value you if you deliver their unethical requests. They've already demonstrated their lack of backbone. It's rarely a quality that cohabitates with empathy and respect.

comment 4y ago · link · parent

> one that will never return an error

Code that is error-safe is so rare. Why adopt a pattern that elevates the normal case ("here be errors") to information you have to disclose at every turn?

comment 4y ago · link · parent

> People don't realise that others are forming real life opinions on these memes.

Maybe, but if any non-developer internalizes a worldview from those memes...that really just means they're blind to the usually worse offenses in other careers. While not perfect, measuring programmer productivity is infinitely easier than a long list of other job roles. At the top of that list is "middle manager".

We take hits on the chin about elitism, sexism, whatever other low-point of human nature. Meanwhile, whoever is spewing the critique fails to notice that in practically any other role, the *-isms are worse and harder to prove.

comment 4y ago · link · parent

https://duckduckgo.com/?q=websockets+pub%2Fsub&t=brave&ia=we...

comment 4y ago · link · parent

You might have too rich of a mental geometry framework such that each shape was rendered more thoroughly, but not necessarily in a way that helped compute matching objects.

comment 4y ago · link · parent

I think that's basically what I did, just without elevating the forms to anything conscious. By the end, I was matching shapes too fast to have actually counted much of anything -- some sort of consolidated memory had started.

comment 4y ago · link · parent

Alright, I can accept that. We're mostly describing the same thing, and it's a question of focusing on the silver lining -- golden nuggets -- over the rest of the thing, which could be seen as crap or could be seen as the casing of a gold nugget.

Given that framing, what expectation can there be that an automated platform like CoPilot can acquire the wisdom to recognize gold from dirt? I believe it may be a question of does the overlapping, correlated portions of code from the corpus of repos signal the gold or signal the common dirt encasing the gold?

I largely expect it's the latter, and that the trends copilot is likely to recognize and use as foundations for its suggestions are motivated from dirt. To accept them and to learn from them is to internalize a horse without a cart philosophy.

comment 4y ago · link · parent

> So why invent a new protocol, when an open, standardised protocol already exists.

Because despite being a dinosaur, it still only has middling adoption. It exists in a particular niche of a particular niche of computing.

HTTP, in contrast, is English to MQTT's German. One is just infinitely more common and accessible to the majority of the world. So, if you're serious, use it.

comment 4y ago · link · parent

WebSockets

Frameworks like JustPy have used it to couple the frontend to the backend and have a Python server doing all the logic work (i.e. frontend just passes everything over WebSockets to the server and asked what to do). It's an awesome demonstration of what WebSockets can do.

MQTT has no place on the web. It barely has a place in IoT and should lose all rights to that claim yesterday.

comment 4y ago · link · parent

> The best way to do pub/sub on the web with a standard protocol is MQTT

Strong disagree. MQTT has no place in a world with WebSockets. MQTT knowledge is so esoteric in comparison. Maybe it's the Haskell of transport protocols: really friggin smart, but not if you're trying to be useful to society at large.

comment 4y ago · link · parent

> Is it true that "90% of code is crud"? It is, if you want it to be.

You're being way too generous from a false sense of compassion. Most code is not written from a place of serene comprehension. It's written under the pressure of getting features out the door fast enough to justify a paycheck.

Add in that programming is a task that is rapidly changing over time -- so what's good today, is a naive implementation tomorrow...yeah, practically all code ever produced or ever to be produced will be crap from any reasonable perspective.

1
567
26