Better HN
topnewbestaskshowjobs
Log inSign up

devbent

492 karma · joined Nov 5, 2015 (11y ago) · 213 submissions

https://meanderingthoughts.hashnode.dev

https://www.generativestorytelling.ai/

@thedevlinb

www.github.com/devlinb

meet.hn/city/us-Seattle

Socials:

- github.com/devlinb

- x.com/thedevlinb

---

Submissions

comment 3y ago · link · parent

After having some React full time for over 2 years, the first time I used svelte I was at least 3x more productive than I was in react.

That is what I got out of it.

comment 3y ago · link · parent

Like typescript, which is an amazingly good language with an absurdly powerful type system that is easier to learn that competing absurdly powerful type systems!

comment 3y ago · link · parent

> Yet the lives of ordinary people have hardly improved and are arguably worse since the 1980s

Read up on improved crop yields for subsidence farmers who got access to weather reports through smart phones.

A lot of people are not starving now because of that one change alone.

comment 3y ago · link · parent

On some tasks I've seen huge gains.

I needed to setup a websocket server, chatGPT saved me tons of hours because Google results are now all useless blogspam so even finding simple resources has become hard.

I needed a custom ui component built, chatGPT gave me a good base and I was then able to also it to go add accessibility keyboard handlers, something I do not know e how to do myself.

I was having some CSS issues and chatGPT was able to tell me what was going on.

IMHO it is a huge productivity booster, but only because I already know how to architect good software.

comment 3y ago · link · parent

What is wrong with svelte stores? I've found them to be incredibly powerful and much easier than dealing with redux.

comment 3y ago · link · parent

Svelte by itself is super tiny.

Sveltekit does a lot more stuff and is accordingly bigger.

comment 3y ago · link · parent

I use a space indent colorizer plugin that I use a grey scale color scheme with.

It isn't a complete replacement for bracket colorization, but it helps in a lot of cases.

(Not colorblind, I just prefer a grey scale theme for my indent reminders!)

comment 3y ago · link · parent

For 3.5, I found it easiest to specify a simple, but parsable, format for responses and then convert that to JSON myself.

I'll have to see if the new JSON schema support is easier than what I already have in place.

comment 3y ago · link · parent

I have an open source project doing exactly this at https://www.generativestorytelling.ai/ GitHub link is on the main page!

comment 3y ago · link · parent

Mental health providers are nearly impossible to find in the Seattle area, no matter the insurance, or even paying cash.

For whatever bloody reason they just don't exist in anything near enough quantity.

comment 3y ago · link · parent

Contexts is amazing, being able to search window titles is how I do almost all my navigation between apps now days, especially when I have code editors open to multiple (4+) different projects.

I have an equivalent installed on Windows (I forget its name) and it is likewise just as amazingly useful.

comment 3y ago · link · parent

We either all complain about click-bait journalism and privacy invading ads, or we pay money for good content.

Take your pick of what world you want to live in.

comment 3y ago · link · parent

1996, I posted on the AOL Star Trek DS9 forum that the Federation should lay mines in the worm hole.

13yr old me was shocked to see the Federation laying mines in the worm hole a year later. :D

comment 3y ago · link · parent

As an aside, I would love a brand new Palm device, with modern tech it could be obscenely tiny and have good battery life.

Palm devices had physical buttons, one of which immediately (0 perceivable lag) opened a todo list

When I used to be have a palm, anytime I was feeling idle I'd pull out my palm and press the Todo list button and see what was next on my schedule. It was literally life changing and every smart device since is a laggy piece of shit when it comes to physical Todo lists.

The Samsung Note series could have been great if it allows for replacing the lock screen with a Todo list that you can interact with, but no, the Note cannot be used as a fucking note pad.

I once burst into the office of the PM in charge of the Tasks ui for Windows Mobile and asked him why we did such a shitty job, but because he had never used a palm before, he didn't even realize what we were shipping was garbage.

Ugh.

comment 3y ago · link · parent

The Microsoft Band managed a fancier UI with only 96mhz of CPU, it did have an FPU though which speeds things up quite a bit.

Getting good throughput requires DMA, and Band also paid the price and dedicated tons of local SRAM for the frame buffer. A local framebuffer that can be read from is needed for antialiased fonts and alpha blending, not to mention things like screen fades!

Band also had real true type fonts, and ran at 30FPS[1] with vsync!

I did a write-up of how at https://meanderingthoughts.hashnode.dev/cooperative-multitas...

[1] the 30fps cap was due to bandwidth to the display controller, uncapped the UI could run internally at around 100fps if it wasn't doing loads of text rendering.

comment 3y ago · link · parent

The problem is crash test requirements require cars be built in a way that limits visibility. Giant pillars in case of a roll over, and lots of air bags stuffed everywhere.

Something had to give, and that thing was visibility.

comment 3y ago · link · parent

You should clarify, refined sugars.

There is also the ongoing debate of why the hell consuming white rice, which is instantly broken down into large amounts of glucose, doesn't have the same negative health impact. Lots of investigations around fructose vs glucose and biological pathways of how straight fructose is processed and so on and so forth, but feel free to visit any SE Asian country where rice is well over 50% of meals by volume and obesity levels are low.

I read a good series of investigative articles that posited it is contamination of our food supply from one or more unknown sources that explains why a diet consisting of highly processed food causes more chronic health conditions than a diet consisting of fresh foods even if the macro nutrient content is the same. (Wish I had bookmarked it...)

comment 3y ago · link · parent

> Judging by votes

You are mostly off topic. :)

Likely no one will disagree with you that the standard American diet is a ultra processed chemical trash heap, just, that is not related to super cool wound healing tech.

Diabetes isn't the topic of the article, diabetic ulcers were used in the clinical trial, but otherwise the story is about using electricity to heal open wounds.

comment 3y ago · link · parent

> Just like alcohol,

Alcohol fucks with DNA. It is neurotoxic.

Let's not lie to ourselves, the safe amount of booze is 0 booze.

I'm not saying don't drink, just that we should be 100% honest with ourselves.

comment 3y ago · link · parent

Corn syrup has rapidly been vanishing from foods based on consumer demand. A decade ago buying bread without corn syrup in it was a challenge, now days all but the cheapest bread in stores proudly had "no corn syrup!" printed on the label.

> leading to people having small, inadequate kitchens and ordering food more.

Friend of mine has been undergoing a kitchen remodel and cooking for a family of 4 using a plug in induction burner for the last 5 or 6 months. Historically kitchens were small and families were big. Outside of kitchens that only have a microwave, even a small 2 burner range will suffice, although it will strongly limit what dishes can be prepared in reasonable time.

> thus contains too much sodium

Sodium is an often blamed boogie man, but undeservedly so. Outside of people with chronic health conditions, it is really hard to intake so much sodium such that it has a negative impact on health.

The problems in the US food supply are likely a lot more subtle and nuanced than too much fat or salt. People have been eating salted fatty cuts of meat for thousands of years w/o the health problems we see now days.

comment 4y ago · link · parent

I honestly love centimeters because 1cm is roughly the width of a pinky fingernail.

Makes it easy to visualize.

Likewise 1 meter being roughly an arm span, or 3 feet.

MI often need to guestimate something and being able to use my body parts to do such is super useful!

comment 4y ago · link · parent

Cree brand bulbs are also 100w equivalent and cheaper than hue.

Bit buggy though. :(

comment 4y ago · link · parent

Cree, they have 100w equivalent bulbs available, use local wifi only. Hard to control a lot of them though, that is where a bridge is handy.

comment 9y ago · link · parent

> It frequently counts me as sleeping when I sit down to watch TV in the evening, or read a book in bed.

This is why I pushed for sleep on v1 of Microsoft Band to be manually triggered. Eventually cloud detected sleep was lit up, but we benefited from lots of gathered data at that point, but even so, it is a hard problem to solve. The best solution would be per user training, allowing users to correct auto detection and use that to improve future tracking, but AFAIK no one in industry is doing that.

> I'm not sure how it makes an assesment of my sleep level. I don't know if it's just based on movement or if it takes heart rate data into account

This is an incredibly hard problem. For sleep studies, multiple doctors look over all the vitals gathered (and for a full sleep clinic study, subjects are very wired up!) And to determine when the subject is in a given phase of sleep, they vote, and it is not always a consensus decision![0] Trying to then make a machine algorithm out of that is difficult, especially working with consumer level sensors.

That said, across most users, data tend to be mostly correct, which is what these consumer devices target. Being able to say someone got 7.5hrs of sleep is good enough, the 10 minute bathroom break doesn't impact the overall numbers too much. Being able to give a good summary of weeks and months is huge, and being able to spot large regressions and improvements is key to user satisfaction.

The ultimate goal is to gather a lot of data, noise or not, run it through machine learning, and start being able to give people actionable advice that they will see real results from.

[0] this was relayed to me by the team who doing sleep classification, other sleep studies may happen differently.

comment 10y ago · link · parent

If you go down to micro-controller levels, you often times are stuck with C++ 2003 and a vendor specific compiler, which means you will lack many of the niceties in the article.

I agree with him that removing the entire standard library is needed. Of course you then need to copy an implementation of printf from somewhere, and likely set it up to only work in your debug builds. Then you quickly figure out that the standard library has a lot of things you didn't even realize you depended on. Math functions typically pop up next, you'll likely end up using a vendor library (by which I mean ARM's), but if you are doing a bunch of math heavy work, and even more so if your chip has some limited FP capabilities (assuming it has an FPU at all), you may also find the need to re-implement some functions based on your performance needs.

Embedded is fun. :)

All that said, I would kill for access to proper lambdas.

comment 10y ago · link · parent

It also depends on the quality of electricity in one's house. I've lived in places that chewed through CFLs at a rapid pace, and yet the same sourced bulbs would last for years in a different house.
1
45678