-
farhan
Jj
-
farhan
Sorry, hit enter by mistake
-
farhan
There is talk about git being replaced by jj, which uses the Apache license (BSD friendly)
-
farhan
Apparently it's git-compatible or it's own alternative...i think. Gits internals really are garbage.
-
mason
TIL jj - any relation to got?
-
mason
-
mason
farhan: Who's planning this?
-
mason
Hm, Rust.
-
farhan
Planning? I don't follow?
-
mason
"< farhan> There is talk about git being replaced by jj,"
-
mason
Who's talking about it?
-
mason
Not sure I want to encourage the Rust community.
-
farhan
Oh...umm..the most credible source: YouTube!!
-
farhan
I'm on team rust, but know the community is largely against it.
-
farhan
I'm also on team "yes, chase shiny new things"
-
mason
I remain curious about
gameoftrees.org
-
badkat
usually reinventing the wheel produces more money, specially when you must promote the use of whatever language...
-
badkat
lets do GIT again! we have some funds to expend somehow!@#!!
-
ivy
i've never heard of "jj" but there is definitely talk of git being replaced by got
-
ivy
but aiui, got is binary compatible with git, so this doesn't actually matter
-
badkat
ivy: by who lmao? theo? XD
-
ivy
badkat: by freebsd committers
-
badkat
:O
-
mason
Seems reasonable to me.
-
kevans
i ran into some logistics issues when i was trying to write a script to clone a repo with got
-
kevans
it really doesn't like the thought of keeping the repo contents as a subdir of a worktree
-
kevans
I don't think that's necessarily a deal-breaker, you could keep the .git dir elsewhere and provide some tooling to checkout a .git tree at /usr/src to bridge the gap, but it's still a bit ugly
-
kevans
but the worktree layout's not necessarily compatible
-
kevans
so if you checkout /usr/src with got, there's no quick and dirty way to conver that to a git worktree; you have to blow it away and setup a new worktree from the repo
-
kevans
(as far as I've found)
-
farhan
I'm having trouble finding where in net80211 a ieee80211_rateset struct is set. Anyone have any insights?
-
farhan
Looking at you kevans (:
-
kevans
farhan: looks like it's setup via ieee80211_setmode -> ieee80211_setbasicrates, typically
-
» farhan searches, thank you!
-
farhan
ahh, setbasicrates in ieee80211_proto.c
-
kevans
yeah, there-
-
voy4g3r2
just remember.. you can just put some yacht rock on.. and try to use the telescope (neovim plugin) to search and then almost want to throw your monitor across the room.. when you can not find something
-
mason
kevans: Hrm, I thought they were supposed to be interchangeable by design. TIL.
-
kevans
mason: you can at least reuse the same repository, so it's not a total loss if you try to switch between them
-
kevans
you just can't seem to setup a layout wherein both git and got will both Just Work(TM) without a bit of fun
-
mason
That's the kind of thing I'd want to do. :P I'm glad you've experimented with it.
-
kevans
I posted to freebsd-git about it just a bit ago. I don't know if this is really a problem, as long as we can provide something to do the conversion to a git repo
-
kevans
otherwise we'd probably look at a script that can do your standard checkout and update along a branch, just enough to, e.g., get a copy of the ports tree and move it forward in case the version you pulled was tragically broken in some fashion
-
kevans
just an idea, not really a solid plan that anyone's agreed to
-
voy4g3r2
got is that the openbsd "game"
-
voy4g3r2
i see it popup a few times on discoverbsd.com and X.com
-
mason
This uncovers a bit of ignorance on my part. If you git push, does that invoke a git (or got?) binary on the other end? I wonder if migration could be made to happen via pushes or clones.
-
kevans
voy4g3r2: gameoftrees, yes
-
kevans
mason: yes, a push would typically invoke a git on the other side to receive the push
-
kevans
but afaik that wouldn't strictly be necessary, the concern is we don't necessarily want to expose got
-
mason
kk
-
voy4g3r2
ah, thanks kevans .. i am over here just dealing with git branches on small projects..
-
voy4g3r2
and as i learn more about git.. i wish client would STOP using bitbucket.. blargh
-
kevans
i find bitbucket to be less bad than some alternatives, at least
-
voy4g3r2
this is true.. the workflow that is "standard" makes managing releases and documentation horrible
-
voy4g3r2
i am also the person receiving the output.. i asked for access to it and then people started asking me.. to do code reviews..
-
voy4g3r2
i quicly asked to have my access revoked.. i just wanted to see the "signature" and the release details and someone was on vacation..
-
voy4g3r2
"standard" == customized and configured to some odd committee based metric.. that does not make sense..
-
voy4g3r2
i had one developer.. using a local version of git.. doing all the branches/merges/management of code.. then just throwing up a branch to merge in bitbucket..
-
voy4g3r2
and we were like.. why do you have so many commits.. but we do not see the work in bitbucket.. "oh well i use my own copy of git, on my machine.. because i do not like bitbucket seeing my work..."
-
voy4g3r2
oh well, nothing to do with this conversation.. just a baabble
-
MelMalik
g'evening
-
mage
what would be the best way to move several ZFS datasets from one machine to another ?
-
mage
is zfs snapshot -r zroot_jupiler/data/jails@migrate ; zfs send -Rv zroot_jupiler/data/jails@migrate | ssh root@myhost zfs recv -eu zroot_stout/data/jails enough ?
-
gt
mage: it's been some time since i used zfs commands, so i can't confirm the flags but the structure of the command (send -> ssh pipe -> recv) looks right to me
-
gt
that should be enough indeed
-
gt
if the dataset is big, you may want to pipe it to a file instead on the source machine, rsync it to the destination machine and then pipe it to zfs recv
-
gt
^ so that rsync could resume the transfer if your connection broke
-
clemens3
hi, when installing freebsd 14.2 into qemu guest vm, does it make any sense to use ZFS (which ends up in qemu raw image) or also does it not have any disadvantage vs the UFS system? thanks.
-
ivy
clemens3: i suggest using zfs so you have the benefit of snapshots and boot environments, which makes upgrades easier and less risky. however if you have low memory (< 4GB) you may find UFS works better
-
mzar
clemens3: it's worth learning ZFS, even if it's only a VM to play wiht FreeBSD
-
ivy
(i run ZFS on systems with 2GB RAM and it's fine, but this is definitely not a super recommended configuration)
-
clemens3
good, thanks all!
-
ek
ZFS with low RAM isn't a problem unless you're using de-dup. ZFS will be fine on low-memory systems (for the most part.)
-
ek
So, just don't use de-duplication. :)
-
clemens3
ok, always wondered what they did back in the sparc days with ZFS when 4GB memory where gigantic
-
clemens3
if it was ok then, should be ok now
-
ivy
they told people not to use ZFS on small systems :-)
-
ivy
4GB was basically the minimum you'd expect in a server or workstation back then
-
mzar
it didn't work on i386 without proper tuning
-
ivy
(iirc, it was also recommended not to use it on 32-bit systems, but i think that's been improved a bit... not that you should really be using 32-bit systems anymore anymore)
-
mzar
AFIK it doesn't work now on arm (32-bit), but it used to work in the past (2-3 years ago)
-
ring0_starr
freebsd still doesn't have ARC integration with the memory manager
-
ivy
no, but there were some significant improvements to vm reclamation of memory from arc a few months back so that should be less of a problem than it used to be
-
ivy
i still set arc_max in a few places
-
mzar
yes, it's first step when you suffer from memory starvation
-
ring0_starr
and make sure your filesystem doesn't get *too* full, might start losing files...
-
mzar
no worries
-
ring0_starr
so, why is it that the x86 definition of struct trapframe has amd64 registers?
-
ek
Back in the day, it was designed for Sparc64 systems. It was kinda hacky in the beginning to use it on i384/x86_64 (the latter being more supported, obviously)
-
ring0_starr
putting it all in the same file and then surrounding it with #ifdef __amd64__ defeats the purpose of the machine-specific include directories
-
ek
ring0_starr: Because hacky?
-
mzar
are recent improvements in 802.11 allowing to utilise 802.11ac now ?
-
ek
mzar: I believe so? I tested out some changes a while back and I could've sworn *ac was working just fine.
-
mzar
thanks for feedback ek
-
ek
mzar: Sure thing. Actually, now you have me curious and second guessing. I'm gonna re-install on one of these laptops and check it out. :)
-
ek
Cure some of my boredom.
-
mzar
let me wish you a fun and fruitful installation then
-
rtprio
om'
-
ek
Haha. Thank you!
-
ring0_starr
the code is subtly wrong for cpu_fetch_syscall_args on x86 and amd64, at least
-
ring0_starr
argp starts at &frame->tf_rdi and then iterates through the struct as though it were an array
-
ring0_starr
the assumption being that the next member of the struct starts at sizeof(syscallarg_t) bytes after, which is perfectly valid for subsequent array elements, but not for struct members due to potential alignment issues
-
ring0_starr
maybe in a parallel universe this code is fine because the rules around struct member alignment have been relaxed by having stronger guarantees in the standard
-
ring0_starr
but here, it is not, because the C standard allows for too many gotchas in using code like this
-
kevans
ring0_starr: I guess we could add some static assertions about the alignment to make you feel better, but generally we won't be doing anything to increase the alignment of the frame
-
ring0_starr
nah it's fine - if there was an architecture encountered where the assumptions made here lead to what is technically UB, you'd notice it immediately by syscalls not working
-
kevans
sure, but otoh it's nice to be able to document these kinds of assumptions in a way that we can detect hijinkery at compile-time instead of runtime
-
kevans
nicer for the human debugger-to-be
-
ring0_starr
you'd need to depend upon _Alignof() which I think is C23
-
ring0_starr
mm no nevermind that's C11, and then changed to alignof() as of C23
-
guntbert
hernan604: that command only fetches updates based on the currently installed world but doesn't tell me which upgrades (new releases) are available.
-
kevans
we use _Alignof in some places, which may be shimmed out to __alignof or alignof
-
kevans
our current CSTD in the kernel is gnu17
-
ring0_starr
why is it following a gnu extension when you switched to clang like 12 years ago now?
-
kevans
because gnu added some niceties that were apparently appealing enough for clang to adopt. there is no clang17 that I'm aware of, just gnu17 and c17
-
badkat
ring0_starr: ac wifi depends mostly on the driver implementation btw not in the OS stack itself
-
ring0_starr
what??
-
ek
badkat: I'm quite sure ring0_starr and kevans are talking about something else completely. :)
-
badkat
lol i wanted to quote mzar :P
-
badkat
but.. please improve wifi ac in freebsd driver development overlords :(!
-
ring0_starr
i don't even have any 802.11ac hardware to test with
-
ring0_starr
cgit.freebsd.org/src/tree/sys/arm64/arm64/trap.c#n166 ????? what is up with this, how do return values work in arm64
-
ring0_starr
err nevermind, i mean why does td_retval get set to anything in this function in any architecture?
-
ring0_starr
the retval is going to just be garbage and overwritten after it actually executes
-
kevans
ring0_starr: might be a good one for -hackers@ if nobody responds
-
kevans
I could speculate, but better to hear from someone with confidence
-
ring0_starr
what is -hackers@?
-
ring0_starr
it seems like void syscalls have their second retval set to the second arg. except for arm64 which just gets 0.
-
dstolfa
ring0_starr: -hackers@ is a freebsd-hackers@ mailing list
-
ring0_starr
i thought so, just wanted to make sure since there is an irc network by that name too