teepee changed the topic of #openscad to: OpenSCAD - The Programmers Solid 3D CAD Modeller | This channel is logged! | Website: http://www.openscad.org/ | FAQ: https://goo.gl/pcT7y3 | Request features / report bugs: https://goo.gl/lj0JRI | Tutorial: https://bit.ly/37P6z0B | Books: https://bit.ly/3xlLcQq | FOSDEM 2020: https://bit.ly/35xZGy6 | Logs: https://bit.ly/32MfbH5
arebil has quit [Quit: arebil]
teepee has quit [Remote host closed the connection]
teepee has joined #openscad
ferdna has joined #openscad
snaked has joined #openscad
pbsds has quit [Quit: Ping timeout (120 seconds)]
pbsds has joined #openscad
mmu_man has quit [Ping timeout: 264 seconds]
<gbruno> [github] kintel synchronize pull request #4933 (PolySet Refactor: Remove Polygon2d features from PolySet) https://github.com/openscad/openscad/pull/4933
<gbruno> [github] kintel pushed 3 modifications (Put back geomVisitMark in LegacyThrownTogetherRenderer) https://github.com/openscad/openscad/commit/6ef778a493e8bf184ff08a24ddc94065f864d987
mmu_man has joined #openscad
<gbruno> [github] kintel pushed 2 modifications (minor style fixes) https://github.com/openscad/openscad/commit/00f0bfcd63650f9d1481bb60ea7477c127ed5ffb
<gbruno> [github] kintel synchronize pull request #4933 (PolySet Refactor: Remove Polygon2d features from PolySet) https://github.com/openscad/openscad/pull/4933
ferdna has quit [Quit: Leaving]
J24k19 has quit [Ping timeout: 250 seconds]
nomike has quit [Remote host closed the connection]
<gbruno> [github] kintel pushed 2 modifications (Minor clarifications) https://github.com/openscad/openscad/commit/ba9f773408f5480fe18a8960db2bd492f70ba31d
<gbruno> [github] kintel synchronize pull request #4933 (PolySet Refactor: Remove Polygon2d features from PolySet) https://github.com/openscad/openscad/pull/4933
LordOfBikes has quit [Ping timeout: 276 seconds]
<gbruno> [github] kintel pushed 1 modifications (Remove superfluous debug output) https://github.com/openscad/openscad/commit/6ad4ac7c89894d6d9691e90a0cf4529df4c1e6cf
<gbruno> [github] kintel synchronize pull request #4933 (PolySet Refactor: Remove Polygon2d features from PolySet) https://github.com/openscad/openscad/pull/4933
LordOfBikes has joined #openscad
<gbruno> [github] kintel pushed 1 modifications (Add missing include) https://github.com/openscad/openscad/commit/bfbf1dadafae5c6e9fd773221b0bf9a980f3ad88
<gbruno> [github] kintel synchronize pull request #4933 (PolySet Refactor: Remove Polygon2d features from PolySet) https://github.com/openscad/openscad/pull/4933
nik has joined #openscad
<JordanBrown> gbruno hangs out here a lot, but is a really boring guy to talk to.
<JordanBrown> But his name is good.
<nik> hi all, how's everyone doin tonight?
nik is now known as Nik
Nik is now known as nik
<JordanBrown> I'm good, though I was just about to go AFK. kintel and InPhase might theoretically be lurking, but the Germany crowd is presumably in bed.
nik is now known as NikoKun
<NikoKun> No worries. it's been a while since I've used irc, like decades.. heh
<gbruno> [github] kintel pushed 1 modifications (Added missing include) https://github.com/openscad/openscad/commit/6d76c893746a0e0db701de5e18b951cf158da246
<gbruno> [github] kintel synchronize pull request #4933 (PolySet Refactor: Remove Polygon2d features from PolySet) https://github.com/openscad/openscad/pull/4933
mmu_man has quit [Ping timeout: 252 seconds]
NikoKun has quit [Quit: Leaving]
<gbruno> [github] kintel pushed 6 modifications (Made measurements work with 2D objects again) https://github.com/openscad/openscad/commit/4eb0f22a0c77d173e58ba8593bc952c8a4dcb243
<gbruno> [github] kintel synchronize pull request #4933 (PolySet Refactor: Remove Polygon2d features from PolySet) https://github.com/openscad/openscad/pull/4933
kintel has joined #openscad
<ndnihil> am AI, coming to take our jobs!
epony has quit [Remote host closed the connection]
<ndnihil> maybe
epony has joined #openscad
<JordanBrown> ndnihil: looks like a round-ish cube.
invultri has joined #openscad
<invultri> Is there a more build in way to do this:https://gist.github.com/christianvdstap/8940e6ab27ef92c81248e7ee3c30c1a9 ?
<invultri> ah.. that is just a foldl
hyperair has quit [Remote host closed the connection]
hyperair has joined #openscad
<teepee> it indeed almost looks like a cube in "left" view with a bit of squinting
<JordanBrown> invultri: more built-in? No. Simpler, yeah, a bit.
<JordanBrown> teepee you wake up too early.
<teepee> indeed, trying to decide if I go back for an hour or two or train for next week when I actually have to get up at this time
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<JordanBrown> Infinite loop with tail recursion == Bad.
<JordanBrown> invultri: I put my take on that function as a comment in your gist.
<JordanBrown> Infinite loop with tail recursion + Automatic Reload and Preview == Particularly Bad.
<invultri> JordanBrown: not sure what you mean with "automatic reload and preview". head = first of list, tail = rest of list. Yours is probably better since you do not chomp the v down till an empty list.
<JordanBrown> two independent comments.
<JordanBrown> sorry
<JordanBrown> when I was writing mine I had a typo that caused an infinite recursive loop with tail recursion, which in OpenSCAD can be interrupted only by shutting down the program.
<JordanBrown> So I reloaded the program from the automatic backup, and since it was set for automatic preview, it ran it again and hung again.
<JordanBrown> Yes, I understood the intent of head() and tail(), but there are no such built-in functions.
<JordanBrown> And yes, you definitely do not want to chomp down the list.
<invultri> comment added with the missing things
<invultri> JordanBrown: yes... once upon a time there was this stop button but that got removed again in case you went infinite recursion. Usually it means going to vi and undoing the change.
<JordanBrown> For head and tail, if you explicitly specify the step as 1 (e.g. n:1:N-1) then you shouldn't need the test and explicit [].
<JordanBrown> [2:1:1] will execute zero times and yield your empty list.
<invultri> ain't that a warning however?
<JordanBrown> no
<JordanBrown> At least I don't think it is. Checking.
<JordanBrown> huh, so it is. I swear that I've done that many times before.
<JordanBrown> looking around some more.
<invultri> it says it is "deprecated" so it probably was fine once
<JordanBrown> ah, it's a warning if the values are constants.
<JordanBrown> The deprecation warning is for begin>end without an explicit step.
<JordanBrown> because that runs the loop backwards.
<JordanBrown> sorry, no, it doesn't, it just silently swaps them.
<JordanBrown> So if you might need to yield an empty list, you have to explicitly say :1: in the middle.
<JordanBrown> Or :-1: if you're counting down.
<JordanBrown> For the special case of adding up all of the values, I suspect that the fastest answer is
<invultri> the more I learn. looks like that 6am was a good time for fp
<JordanBrown> function vsum(v) = v * [ for (i=v) 1 ];
<JordanBrown> Not that it often matters exactly how fast such a thing is.
<JordanBrown> But anyhow, for that accumulate function stepping across is simpler and faster.
<JordanBrown> And the pattern for it is simple enough that although I've written a general function like accumulate once or twice before, I've never bothered to keep it around. I just write the appropriate recursive function each time.
<JordanBrown> I'm kind of surprised that BOSL2 doesn't offer a general function like accumulate.
<invultri> well it is also my mistake for not identifying it as a foldl
<JordanBrown> One of the BOSL2 guys, Adrian Mariano, discovered that if you can reformulate your problem into being a matrix multiply, that's almost always the right answer.
<JordanBrown> But he is a lot better at reformulating things into matrix multiplies than I am.
<invultri> I suck at matrixes for some reason. I should work to a first grade matrix book sometime. I do understand their usefulness, but if I can't use the tool ...
arebil has joined #openscad
<JordanBrown> Time for me to more or less shut down for the night.
<invultri> and I have to head to the dayjob ;) thanks for the chat
<JordanBrown> bye
invultri has quit [Quit: leaving]
little_blossom has joined #openscad
GNUmoon has joined #openscad
<gbruno> [github] gsohler edited issue #4880 (Track all the issues/bugs of python-pr3-squashed PR) https://github.com/openscad/openscad/issues/4880
J24k has joined #openscad
teepee_ has joined #openscad
teepee has quit [Ping timeout: 240 seconds]
teepee_ is now known as teepee
teepee has quit [Remote host closed the connection]
teepee has joined #openscad
cart_ has joined #openscad
jonasbits has quit [Quit: No Ping reply in 180 seconds.]
jonasbits has joined #openscad
J24k has quit [Quit: Client closed]
J24k has joined #openscad
dostoyevsky2 has quit [Ping timeout: 260 seconds]
J24k has quit [Quit: Client closed]
J24k has joined #openscad
Guest47 has joined #openscad
dostoyevsky2 has joined #openscad
snaked has quit [Quit: Leaving]
mmu_man has joined #openscad
fling has quit [Ping timeout: 240 seconds]
Guest30 has joined #openscad
Guest30 has left #openscad [#openscad]
omegatron has joined #openscad
ferdna has joined #openscad
mmu_man has quit [Ping timeout: 264 seconds]
invultri has joined #openscad
<invultri> does openscad cache the results of functions if their inputs don't change?
Guest47 has quit [Ping timeout: 250 seconds]
mmu_man has joined #openscad
epony has quit [Remote host closed the connection]
epony has joined #openscad
<teepee> invultri: no, only geometry
J24k has quit [Quit: Client closed]
J24k has joined #openscad
lastrodamo has joined #openscad
aiyion2 has quit [Remote host closed the connection]
aiyion2 has joined #openscad
snaked has joined #openscad
ferdna has quit [Quit: Leaving]
fling has joined #openscad
fling has quit [Remote host closed the connection]
fling has joined #openscad
teepee_ has joined #openscad
teepee has quit [Ping timeout: 240 seconds]
teepee_ is now known as teepee
cart_ has quit [Ping timeout: 268 seconds]
arebil has quit [Ping timeout: 256 seconds]
castawayc has quit [Remote host closed the connection]
invultri has quit [Quit: Lost terminal]
snaked has quit [Read error: Connection reset by peer]
snaked has joined #openscad
lastrodamo has quit [Quit: Leaving]
escherial has quit [Quit: Ping timeout (120 seconds)]
escherial has joined #openscad
qeed__ has joined #openscad
ccox_ has joined #openscad
escherial5 has joined #openscad
germ has quit [Read error: Connection reset by peer]
Friithian has quit [Ping timeout: 260 seconds]
qeed_ has quit [Ping timeout: 246 seconds]
escherial has quit [Ping timeout: 264 seconds]
escherial5 is now known as escherial
ccox has quit [Ping timeout: 246 seconds]
germ has joined #openscad
ccox_ has quit [*.net *.split]
qeed__ has quit [*.net *.split]
drfff has quit [*.net *.split]
paddymahoney has quit [*.net *.split]
hyperair has quit [*.net *.split]
foul_owl has quit [*.net *.split]
linext has quit [*.net *.split]
vsellier has quit [*.net *.split]
gbruno has quit [*.net *.split]
jaredo has quit [*.net *.split]
marcus has quit [*.net *.split]
lf94- has quit [*.net *.split]
berndj has quit [*.net *.split]
omegatron has quit [*.net *.split]
Reisga2 has quit [*.net *.split]
pca006132 has quit [*.net *.split]
ToAruShiroiNeko has quit [*.net *.split]
MatrixBot1234516 has quit [*.net *.split]
RoyK has quit [*.net *.split]
killjoy has quit [*.net *.split]
Joel has quit [*.net *.split]
abff has quit [*.net *.split]
t4nk_fn has quit [*.net *.split]
splud has quit [*.net *.split]
Flecks has quit [*.net *.split]
Church- has quit [*.net *.split]
tcurdt- has quit [*.net *.split]
ubitux has quit [*.net *.split]
Non-ICE has quit [*.net *.split]
peepsalot has quit [*.net *.split]
SamantazFox has quit [*.net *.split]
Ekho has quit [*.net *.split]
extor has quit [*.net *.split]
rogeliodh has quit [*.net *.split]
gwillen has quit [*.net *.split]
Scopeuk has quit [*.net *.split]
LordOfBikes has quit [*.net *.split]
pie_ has quit [*.net *.split]
dustinm` has quit [*.net *.split]
InPhase has quit [*.net *.split]
zauberfisch has quit [*.net *.split]
lostapathy has quit [*.net *.split]
mohnish has quit [*.net *.split]
raboof has quit [*.net *.split]
Ckat has quit [*.net *.split]
ChanServ has quit [*.net *.split]
snaked has quit [*.net *.split]
guerd87 has quit [*.net *.split]
oldlaptop has quit [*.net *.split]
epony has quit [*.net *.split]
othx has quit [*.net *.split]
crazy_imp has quit [*.net *.split]
juri_ has quit [*.net *.split]
castaway has quit [*.net *.split]
sinned6915 has quit [*.net *.split]
Alexer has quit [*.net *.split]
ndnihil has quit [*.net *.split]
rapha has quit [*.net *.split]
teepee has quit [*.net *.split]
aiyion2 has quit [*.net *.split]
GNUmoon has quit [*.net *.split]
califax has quit [*.net *.split]
germ has quit [*.net *.split]
erectus has quit [*.net *.split]
TheAssassin has quit [*.net *.split]
fling has quit [*.net *.split]
escherial has quit [*.net *.split]
rvt has quit [*.net *.split]
pa has quit [*.net *.split]
feuerrot has quit [*.net *.split]
phryk has quit [*.net *.split]
buZz has quit [*.net *.split]
leptonix has quit [*.net *.split]
dostoyevsky2 has quit [*.net *.split]
voxpelli has quit [*.net *.split]
dTal has quit [*.net *.split]
jonasbits has quit [*.net *.split]
little_blossom has quit [*.net *.split]
kanzure has quit [*.net *.split]
knielsen has quit [*.net *.split]
guso78 has quit [*.net *.split]
pbsds has quit [*.net *.split]
HumanG33k has quit [*.net *.split]
sauce has quit [*.net *.split]
redlizard has quit [*.net *.split]
muesli has quit [*.net *.split]
cbmuser has quit [*.net *.split]
Virindi has quit [*.net *.split]
joseph_ has quit [*.net *.split]
greenbigfrog has quit [*.net *.split]
yogadude has quit [*.net *.split]
mmu_man has quit [*.net *.split]
meshugga has quit [*.net *.split]
clemens3 has quit [*.net *.split]
Wolf480pl has quit [*.net *.split]
red-snail has quit [*.net *.split]
petaflot has quit [*.net *.split]
gimzmoe has quit [*.net *.split]
J24k has quit [*.net *.split]
germ has joined #openscad
qeed__ has joined #openscad
ccox_ has joined #openscad
snaked has joined #openscad
escherial has joined #openscad
teepee has joined #openscad
fling has joined #openscad
aiyion2 has joined #openscad
J24k has joined #openscad
hyperair has joined #openscad
little_blossom has joined #openscad
epony has joined #openscad
jonasbits has joined #openscad
mmu_man has joined #openscad
LordOfBikes has joined #openscad
pbsds has joined #openscad
califax has joined #openscad
peepsalot has joined #openscad
drfff has joined #openscad
pca006132 has joined #openscad
erectus has joined #openscad
Reisga2 has joined #openscad
ToAruShiroiNeko has joined #openscad
pie_ has joined #openscad
MatrixBot1234516 has joined #openscad
othx has joined #openscad
RoyK has joined #openscad
guerd87 has joined #openscad
rvt has joined #openscad
gbruno has joined #openscad
jaredo has joined #openscad
paddymahoney has joined #openscad
GNUmoon has joined #openscad
dostoyevsky2 has joined #openscad
Non-ICE has joined #openscad
omegatron has joined #openscad
vsellier has joined #openscad
foul_owl has joined #openscad
TheAssassin has joined #openscad
greenbigfrog has joined #openscad
meshugga has joined #openscad
pa has joined #openscad
killjoy has joined #openscad
feuerrot has joined #openscad
SamantazFox has joined #openscad
castaway has joined #openscad
juri_ has joined #openscad
crazy_imp has joined #openscad
HumanG33k has joined #openscad
Joel has joined #openscad
rapha has joined #openscad
phryk has joined #openscad
Ekho has joined #openscad
buZz has joined #openscad
yogadude has joined #openscad
marcus has joined #openscad
abff has joined #openscad
InPhase has joined #openscad
dustinm` has joined #openscad
t4nk_fn has joined #openscad
zauberfisch has joined #openscad
splud has joined #openscad
lostapathy has joined #openscad
extor has joined #openscad
lf94- has joined #openscad
sinned6915 has joined #openscad
kanzure has joined #openscad
petaflot has joined #openscad
gimzmoe has joined #openscad
joseph_ has joined #openscad
cbmuser has joined #openscad
muesli has joined #openscad
Wolf480pl has joined #openscad
redlizard has joined #openscad
sauce has joined #openscad
guso78 has joined #openscad
Virindi has joined #openscad
linext has joined #openscad
oldlaptop has joined #openscad
clemens3 has joined #openscad
rogeliodh has joined #openscad
Alexer has joined #openscad
voxpelli has joined #openscad
raboof has joined #openscad
Flecks has joined #openscad
ndnihil has joined #openscad
tcurdt- has joined #openscad
ubitux has joined #openscad
berndj has joined #openscad
leptonix has joined #openscad
Ckat has joined #openscad
Scopeuk has joined #openscad
gwillen has joined #openscad
Church- has joined #openscad
mohnish has joined #openscad
ChanServ has joined #openscad
dTal has joined #openscad
red-snail has joined #openscad
knielsen has joined #openscad
Friithian has joined #openscad
Guest66 has joined #openscad
Guest66 has quit [Ping timeout: 250 seconds]
Friithian has quit [Quit: Please Hold.]
Lagopus has joined #openscad