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
juri_ has quit [Ping timeout: 255 seconds]
juri_ has joined #openscad
<JordanBrown> InPhase: yes, I saw that reference. But if you follow it up, you find that that paper is on transfinite sets, which doesn't seem like the basis for the concept of normal sets.
<JordanBrown> And yes, MCAD is in poor shape. My discussion above was more about a hypothetical bundled library that one might actually want to use.
kintel has joined #openscad
<kintel> pca006132 ugh, so I have to build tracy manually. They have a CMake config, a meson config, and the docs say just use the Makefile
JordanBrown1 has joined #openscad
<JordanBrown1> test
<JordanBrown> test
<JordanBrown1> (Experimenting with switching to Thunderbird chat.)
JordanBrown has quit [Quit: I used to think I was indecisive, but now I'm not too sure.]
JordanBrown1 is now known as JordanBrown
JordanBrown has left #openscad [#openscad]
JordanBrown has joined #openscad
JordanBrown1 has joined #openscad
<JordanBrown1> test
<JordanBrown> test
JordanBrown1 has quit [Client Quit]
<JordanBrown> Actually, I think I'll try Pidgin again. I don't remember why I stopped using it.
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
LordOfBikes has quit [Ping timeout: 268 seconds]
LordOfBikes has joined #openscad
kintel has joined #openscad
<kintel> pca006132 Got tracy working - turned out that the macOS version was a one-liner away. For the first time in a long time, the macOS version of a niche OSS tool was easier to install than Linux ;) ..and I had to run openscad as sudo to get samples.
mmu_man has quit [Ping timeout: 264 seconds]
J23k83 has joined #openscad
J23k65 has quit [Ping timeout: 250 seconds]
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fling has quit [Remote host closed the connection]
fling has joined #openscad
snaked has joined #openscad
<pca006132> kintel what one-liner did you add? And it is weird that it requires sudo for sampling, probably some OSX limitation
pca006132 has quit [Remote host closed the connection]
pca006132 has joined #openscad
JordanBrown1 has joined #openscad
pa has quit [*.net *.split]
nelson__ has quit [*.net *.split]
hisacro has quit [*.net *.split]
hisacro has joined #openscad
pah has joined #openscad
nelson__ has joined #openscad
nelson_ has joined #openscad
nelson__ has quit [Ping timeout: 255 seconds]
<JordanBrown1> Trivia: what is the output of this program?
<JordanBrown1> include = 0;
<JordanBrown1> if (include < 0 || include > 3) echo("out of range");
JordanBrown2 has joined #openscad
JordanBrown1 has quit [Ping timeout: 256 seconds]
JordanBrown2 has quit [Ping timeout: 255 seconds]
pah is now known as pa
JordanBrown2 has joined #openscad
JordanBrown2 has quit [Ping timeout: 256 seconds]
mmu_man has joined #openscad
J23k83 has quit [Quit: Client closed]
J23k83 has joined #openscad
teepee_ has joined #openscad
teepee has quit [Ping timeout: 240 seconds]
teepee_ is now known as teepee
<InPhase> JordanBrown: I anticipated the keyword collision, but didn't anticipate the resulting behavior after handling the keyword collision. :)
<InPhase> I guess that's what you get from a text substitution command in a language with no semantic errors...
kintel has joined #openscad
<kintel> pca006132 the sudo requirement was on Linux. On macOS I just "brew install tracy". I don't have a Linux build yet..
fling has quit [Ping timeout: 240 seconds]
<kintel> -> so I'm executing openscad on Linux, but receiving traces on macOS, which was kind of what I hoped for anyway :)
<kintel> (only doing automatic sampling atm., perhaps that's what sudo was needed for
fling has joined #openscad
fling has quit [Remote host closed the connection]
fling has joined #openscad
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Non-ICE has quit [Quit: Screw you guys, im going home!]
snaked has quit [Quit: Leaving]
<pca006132> weird, it should not require sudo
<pca006132> but anyway glad that it works
<pca006132> you can use the ZoneScoped macro for instrumentation, it should give more accurate results comparing to sampling
kintel has joined #openscad
<pca006132> I tried adding opengl profiling to openscad, but without success, I think maybe because things like context creation and swap buffer are controlled by qt
<pca006132> don't have much experience with opengl so can't really debug that
fling has quit [Remote host closed the connection]
fling has joined #openscad
<kintel> pca006132 do you know if I can get tracy to record stack frames too?
JordanBrown2 has joined #openscad
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<JordanBrown> InPhase the thing that surprised me was that it wasn't required to be at the beginning of a line.
JordanBrown2 has quit [Ping timeout: 256 seconds]
snaked has joined #openscad
JordanBrown2 has joined #openscad
TheAssassin has quit [Remote host closed the connection]
TheAssassin has joined #openscad
pca006132 has quit [Read error: Connection reset by peer]
pca006132 has joined #openscad
<JordanBrown2> kintel, teepee: lexer.l is inconsistent on whether it uses spaces or tabs, and when it uses tabs they seem to be set up for 4-space tabs. Got any opinion on standardizing it, to spaces, 4-space tabs, or 8-space tabs?
<InPhase> JordanBrown: That behavior persists back to the 2015 release (which only partially runs for me, but enough to test that).
<JordanBrown2> InPhase I'm not surprised; it seems more like the kind of behavior you would get when you are first trying to get things to work, rather than a deliberate feature.
<gbruno> [github] jordanbrown0 opened pull request #4891 (Ignore \r characters. Fixes #4882.) https://github.com/openscad/openscad/pull/4891
<gbruno> [github] jordanbrown0 opened pull request #4892 (Standardize lexer.l on 4-space indents using spaces. Align all actions.) https://github.com/openscad/openscad/pull/4892
<JordanBrown2> PR#4892 is a formatting-only change; it yields exactly the same scanner. kintel? teepee?
JordanBrown2 has quit [Ping timeout: 264 seconds]
kintel has joined #openscad
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Non-ICE has joined #openscad
<teepee> JordanBrown: fine by me
<teepee> JordanBrown: isn't old macos also \r only?
<teepee> hmm, ok macos 9, I suppose that predates openscad :)
<JordanBrown> We could make it handle \r-only files, but as you say there are no OpenSCAD-capable systems that use that format, and really no recent systems at all.
<JordanBrown> I thought about it, and my conclusion was that ignoring \r was the simplest solution.
<JordanBrown> But if people want it to handle \r-only files I can make it do that.
<teepee> if the solution is as simple as in the linked post, why not just cover all the cases?
<JordanBrown> It's not that one pattern doesn't work. But I think there are five line-break-matching patterns in our lexer.
<JordanBrown> Though, you know, \r\n?|\n sure is pretty simple.
<teepee> and assigning that to NL or something would not make things difficult to understand
<JordanBrown> The count-lines macro would have to get smarter. (And sadly for only a very very limited case: include <> and use <> where there is a line break between the keyword and <.)
<JordanBrown> I was thinking that you would merge #4892 (the space/tab one) and then I would PR #4891 (the lexer fix) on top of it. That way somebody reviewing the changes can easily see the substantive changes in 4891 without them being obscured by the layout changes in 4892.
<teepee> sure, I can merge the whitespace fix if that helps
<JordanBrown> Seems like it leaves a cleaner history for those who follow.
<JordanBrown> Thanks.
teepee has quit [Remote host closed the connection]
<gbruno> [github] t-paul closed pull request #4892 (Standardize lexer.l on 4-space indents using spaces. Align all actions.) https://github.com/openscad/openscad/pull/4892
<gbruno> [github] t-paul pushed 1 modifications (Merge pull request #4892 from jordanbrown0/lexer-source-tabs Standardize lexer.l on 4-space indents using spaces. Align all actions.) https://github.com/openscad/openscad/commit/3d094bf87bbdc533b553169fcd7c0207774c3e22
<JordanBrown> I'll look at supporting the \r-only case.
<JordanBrown> But given its very very low value, if it's more than a tiny bit more complicated...
teepee has joined #openscad