71 karma · joined May 3, 2017 (9y ago) · 32 submissions
comment 1mo ago · link · parent
i haven't gotten around to it yet, but i'd also like to change how `Bash` functions on a basic level (and subagents), where rather than the agent picking a fixed timeout, it just gets notified with exponential backoff about commands that aren't done and then gets a turn to decide what to do with it.
having said that, i find it annoying and not empowering that basic things like subagents and web search aren't built in. the ideal to me seems to be an agent with polished extensions for all the common use cases that can be disabled if you do want to rewrite them. but i put up with the pain because i really want my pet feature ¯\_(ツ)_/¯
comment 4mo ago · link · parent
personally, i think either a VM or microVM is the way to go. these things are actually designed as security boundaries, as opposed to containers. and as compared to bubblewrap, you can just give the agent a whole FS to work with and run it in yolo mode, whereas with bubblewrap you have to manually bootstrap the availability of each individual dev tool and make sure its config dirs and package caches and etc are mounted in a secure way and still will probably hit perm errors all the time. and there's just way less isolation.
also, something that has limited support in harnesses but IMO would make a lot of sense is running the harness process in the host, but having all the tool calls and file system interactions delegated to the VM. that way you keep all your session data and auth keys on the main machine where it can never get into context. otoh it makes your harness part of the security boundary, so that's the trade-off.
there's also all the usability questions around how to actually get data in/out of the VM. i have a script which can push local git repos into the VM and then pull from them as a remote, so the VM can't initiate any connection with the host doesn't need to hold git credentials. but ig for someone who wants their agent to push straight to GitHub that's a waste of effort.
options i've tried or seen for the VM itself: - qemu + libvirt: takes some doing to wrangle it together, but very battle tested and configurable - crun-vm is a PoC of higher level integration layer between podman and qemu, which is a really cool way to go about it. seems maybe abandoned but i just think it's neat and very existing tools/standards oriented rather than starting a new project and brand so i mention - libkrun is a newer entrant, and several ppl have built wrappers around it: - microsandbox - smolvm (posted/discussed on here recently) - krunvm
this is all Linux oriented, it's all i know.
comment 7mo ago · link · parent
comment 1y ago · link · parent
but in reference to the linked article, i will say that the researchers interviewed in the book (and i got that sense for Zoe as well) were in agreement with you that the research didn't support a vision-based mechanism. but everyone agrees that the imitation is going on. the researchers in the book suggest a gene transfer-based mechanism instead! (mentioned briefly in your linked article)
comment 1y ago · link · parent
i found this lively criticism of the video on reddit: https://old.reddit.com/r/badhistory/comments/16y233q/histori....
my brief takeaway was that the claim might be true if "work" means "working for an employer for wages", but not if "work" includes "necessary labor for shelter, food, clothing, survival".
but it's an interesting thought though so i'm curious if you have other related resources to dig into.
comment 1y ago · link · parent
comment 1y ago · link · parent
this is the biggest effort I'm aware to run Next with a full-ish feature set outside of Vercel: https://opennext.js.org/. Supports AWS, Cloudflare, and Netlify. You can also run Next as a normal node webserver. I've only used the Cloudflare integration and it was a bit janky but worked (and seems to be entering 1.0 soon so may be less janky).
AFAIK this is completely unsupported by the Next team, but would love to be proven wrong!
comment 1y ago · link · parent
as for "why React", speaking just for myself it's really nice to just have one tool that can do everything (static HTML-only, static with JS, SPA, SSR) and not have to context switch or potentially even have to split my site into two projects just because I want to hop between one or the other approach. and React has the biggest mindshare and ecosystem.
comment 2y ago · link · parent
this is also something that makes me want a more interactive publishing format, though i understand the good reasons to stick to the static quo. if it's easy to see, it shouldn't be too hard to write out in a collapsible sidebar for those interested
comment 2y ago · link · parent
some key words/links to get you started:
- "local consonance"
- "consonance/dissonance curves"
- a seminal paper: https://sethares.engr.wisc.edu/paperspdf/consonance.pdf
- a more recent re-implementation with a cool video at the end: https://www.sebastianjiroschlecht.com/post/ondissonance/
the basic idea being, different timbres lend themselves differently to different tuning systems. so we can parameterize our models of tuning systems based on timbre
an important thing to keep in mind: consonant/dissonant doesn't mean "good/bad" or "pleasant/unpleasant". they're the output values of a mathematical model which we have a complex intuitive relationship with. other ways of thinking about it might be "simple/complex", "resolved/unresolved", "release/tension", but all are inaccurate in their own way
some areas i'd love to see progress in: - the work i've seen focuses on computational models, i.e. take a simple mathematical model of timbre, and directly compute the consonance/dissonance curve from it. but real instruments' timbre varies across many dimensions, some prominent ones being pitch, time, and dynamics. can we instead burn some CPU cycles and generate curves from a waveform? - what does this look like for triads? tetrads? ...? - put this in the browser! would make it so much easier to play with and present the ideas to less technical audiences - how can we use this to generate new instruments? can a synth automatically adjust its tuning system based on its parameters? can we start from a set of desired consonant/dissonant intervals and generate an instrument with a matching curve?
comment 2y ago · link · parent
the first solution is clean, but people really like dispatch.
the second makes calling functions in the function call syntax weird, because the first argument is privileged semantically but not syntactically.
the third makes calling functions in the method call syntax weird because the first argument is privileged syntactically but not semantically.
the closest things to this i can think of off the top of my head in remotely popular programming languages are: nim, lisp dialects, and julia.
nim navigates the dispatch conundrum by providing different ways to define free functions for different dispatch-ness. the tutorial gives a good overview: https://nim-lang.org/docs/tut2.html
lisps of course lack UFCS.
see here for a discussion on the lack of UFCS in julia: https://github.com/JuliaLang/julia/issues/31779
so to sum up the answer to the original question: because it's only obvious how to make it nice and tidy like you're wanting if you sacrifice function dispatch, which is ubiquitous for good reason!
comment 4y ago · link · parent
1. patients invented and self-prescribed the pill originally
2. the doctor has concluded that the pills are harmful by studying what happens who do not have the illness the pills are meant to treat take the pills
3. the doctor didn't really keep track of what doses were given to different patients
i.e.
1. trigger warnings were not originally forced on people, they were created by people who found them helpful to help themselves
2. the studies in the meta analysis are all on general populations, in particular mechanical turk and college students
3. there is no discussion of the different effect different implementations of content warnings can have. for example, the only study that measured physiological responses instead of using self-reported anxiety showed the highest anxiety response. probably, because it also gave a completely general and non-specific content warning that went like this: "The next page has the link to the movie clip. Researchers have been asked to give a trigger warning for the clip". so they showed that when told some arbitrary but highly disturbing thing could happen at any point during a video, people in general will be more anxious when watching the video. and concluded that content warnings are a harmful practice.
comment 4y ago · link · parent
- one important dimension of the "should" in this question is how much choice the viewer of the media has in viewing the media. this is part of why schools are such a big part of the conversation about content warnings, because the students can't just choose to opt out of readings without consequences
- another important dimension is the delivery platform and audience size. sometimes you can just ask the person who made or is showing you the thing about some very specific content you'd like to avoid or be prepared for, so specifying everything isn't as important there. otoh, if you're a giant media property with millions of viewers, maybe the cost/benefit of listing exactly when/where particular things happen looks a little better
- depending on platform, lots of detail could be more or less practical. e.g. if you're making a web page it's easy to say "content warnings: click for details > detailsdetailsdetails click for more details > detaileddetailsdetaileddetails", which easily allows the viewer to choose how much detail they want rather than picking for them, but that can be harder to pull off in other formats
- if you find this topic interesting, consider looking for literature on topics like accessibility and disability justice (not sure i could recommend a particular one since i've formed my views on this sort of thing piecemeal and through community). there is a lot of interesting moral thought on the subject of "ok so this thing is helpful to some people sometimes, sooo how much should we actually do it?"
comment 4y ago · link · parent
language politics of whether trauma is a "disability" aside, the existence of a meta-analysis over studies which purport to study whether a disability aid works by using it with people who do not have that disability is saddening
some other limitations the i don't see the authors comment on (though i haven't read thoroughly so happy to be corrected): - the effect of different kinds of content warnings isn't discussed (some interesting dimensions are specificity and prominence) - the fact that almost all of the studies use self-reported anxiety scales, and thus it is unclear whether content warnings increase anticipatory anxiety or increase self-reported anticipatory anxiety
like with most accessibility aids the interesting questions are not "does it help". they're "who do different forms of the aid help or harm" and "morally, when should we expect or even enforce a particular level of implementation"
looking at how other accessibility aids work is helpful for answering some of these questions. to take the classic university classroom example, you could for example look at the way some departments handle students who aren't able to take lecture notes. a student can request note taking accommodation for a particular class, and then a peer volunteer (or as a fallback university employee) will take notes for that student. just like that, we don't need to have a national debate about whether it is helpful or harmful if all university professors are forced to provide note taking services for all of their students.
anyway, i guess i'm upset because i'm tired of the ongoing massive debate and apparently research industry that completely misses the point.
20.
Ask HN: How do you make friends at work while keeping personal/work boundaries?
1 points · by igorbark · 6y ago · discuss
comment 6y ago · link · parent
"the wife test" is a common turn of phrase relying on/reinforcing the stereotype of women as non-technical and men as technical. it's not really clear in your original post that you are literally referring to your wife's opinion of the device vs simply invoking the sexist phrase to describe the device's user friendliness for non-hackers. i hope you can see how i took it the wrong way, though i still apologize for jumping to conclusions
comment 8y ago · link · parent
In a language with a less powerful type system, you could write the same information in comments, but then the compiler wouldn't warn you if you accidentally changed the side effects of a statement.
comment 9y ago · link · parent
"Let's tweak our sum function a a bit: ... That's it."
I really dislike articles that earnestly try to convince the audience that some subject which many find extremely difficult to understand is actually very simple. My impression is that the intent is to help people who lack the confidence to engage with the topic, but in my opinion the exact opposite effect is achieved. At that point in the article, nothing about recursion had been explained and it's not reasonable to expect someone who previously did not understand recursion to read that section and come to the conclusion "that's it!" Instead they'll be sitting there, extremely confused by something which they're being reassured is actually quite simple. This is not going to help their confidence.
So while I appreciate the author's intent, I think that someone who is struggling to understand recursion might leave this article worse off than when they started. And I wish this trope would disappear from tutorials.