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
califax has quit [Remote host closed the connection]
califax has joined #openscad
teepee_ has joined #openscad
teepee has quit [Ping timeout: 240 seconds]
teepee_ is now known as teepee
kintel has joined #openscad
castawayc has quit [Server closed connection]
castawayc has joined #openscad
<kintel> I just noticed that sometime between 2015 and 2019, search() no longer prints a warning if a character is not found in a string, e.g. `echo(search("e","abcdabcd"));`
<kintel> Does anyone know if that was done on purpose?
<kintel> Other search variants seem to still print a warning
* InPhase "search"es memory...
<InPhase> peepsalot: Did you clean-up some of search 2018-2019 or so around the same time frames as those comparison cleanups and such?
<InPhase> I only have hazy memories of discussions of it roughly in that jumbled timeframe of memories.
<peepsalot> possibly, off the top of my head I feel like I might have touched it as part of Value rework, where EmbededVectorType was added etc.
<kintel> This was before 2019, so it's very possible it's my own fault, didn't try to search git history in detail yet
<peepsalot> is it not something that we have a test for?
<peepsalot> i don't recall removing any warnings on purpose myself
<kintel> Not sure we have tests for warnings
<kintel> peepsalot but since you're here and have touched the Value utf8 stuff a bit:
<peepsalot> echo tests should include warnings afaik
<kintel> ok, I'll double check the test histories
<kintel> What I'm trying to do is to move the glib features g_utf8_get_char(), g_utf8_validate() etc. into the str_utf8_wrapper class
<kintel> -> with the goal of isolating calls into glib to that class itself, as a stepping stone towards playing with glib utf8 alternatives.
<peepsalot> i guess the issue is code that's not accessing through Value already?
<peepsalot> i don't recall how much glib usage there is across the project, but the str_utf8_wrapper calls a couple of those functions
<peepsalot> and has builtin character iterator
<kintel> yeah, there's only a handful of glob usage elsewhere
<kintel> Wops, looks like we all agreed back in 2015 that removing the warning was a good thing: https://github.com/openscad/openscad/pull/1312
<InPhase> https://github.com/openscad/openscad/pull/2310/files I did find this, authored by peepsalot and committed by kintel in 2018. But it doesn't sound like it could cause the mentioned behavioral change.
<peepsalot> well, mystery solved :)
<kintel> For some reason, only some warnings were removed...
<InPhase> :)
<InPhase> I still believe we should destroy "search" with fire and have a completely redesigned tool for this.
<InPhase> But that would be a thing to think about for a bit.
<kintel> haha, yeah, it's such a weird function
<InPhase> It feels like the "what if it also did this" meeting had some intoxicants in the meeting snacks. :)
<kintel> This was the early days where functions were invented just to enable certain demo features
<kintel> This was actually a feature built to render text, where fonts were defined as lists of vertices vertices. Before teepee wrote the font feature
<kintel> Anyway, I figured out what happened. Someone remove warnings by doing test-driven development. ..except we didn't have full test coverage back then.
<kintel> ..and later someone else added more tests, bring in more warnings: https://github.com/openscad/openscad/pull/2661
<kintel> I guess we can kill the rest of the warnings now :)
LordOfBikes has quit [Ping timeout: 250 seconds]
fardog has quit [Server closed connection]
fardog has joined #openscad
<gbruno> [github] kintel pushed 2 modifications (Remove unnecessary warning when a search string wasn't found in a vector) https://github.com/openscad/openscad/commit/b6176c2786f40f98a86f74f7293a5622aa736497
<gbruno> [github] kintel opened pull request #4666 (Remove unnecessary warning when a search string wasn't found in a vector) https://github.com/openscad/openscad/pull/4666
LordOfBikes has joined #openscad
splud has quit [Ping timeout: 265 seconds]
<gbruno> [github] kintel pushed 5 modifications (Consolidate and isolate glib usage to str_utf8_wrapper) https://github.com/openscad/openscad/commit/bea4f59bb3a07492401b7965055e3ecf4a31b88f
<gbruno> [github] kintel opened pull request #4667 (Isolate glib usate to str_utf8_wrapper) https://github.com/openscad/openscad/pull/4667
<gbruno> [github] kintel edited pull request #4667 (Isolate glib usage to str_utf8_wrapper) https://github.com/openscad/openscad/pull/4667
<gbruno> [github] kintel pushed 5 modifications (Consolidate and isolate glib usage to str_utf8_wrapper) https://github.com/openscad/openscad/commit/d40446c9a565a81a7d513a674579396fb90a5315
<gbruno> [github] kintel synchronize pull request #4667 (Isolate glib usage to str_utf8_wrapper) https://github.com/openscad/openscad/pull/4667
mmu_man has quit [Ping timeout: 268 seconds]
splud has joined #openscad
splud has quit [Ping timeout: 255 seconds]
splud has joined #openscad
zauberfisch has quit [Server closed connection]
zauberfisch has joined #openscad
J23k84 has joined #openscad
<gbruno> [github] kintel converted_to_draft pull request #4656 (Use gettext functionality from glib instead of directly from gettext) https://github.com/openscad/openscad/pull/4656
<gbruno> [github] kintel converted_to_draft pull request #4663 (Bump glib to 2.75.2 for macOS) https://github.com/openscad/openscad/pull/4663
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
J23k7 has quit [Ping timeout: 245 seconds]
use-value1 has joined #openscad
use-value has quit [Ping timeout: 265 seconds]
use-value1 is now known as use-value
fling has quit [Remote host closed the connection]
fling has joined #openscad
RoyK has quit [Server closed connection]
RoyK has joined #openscad
qeed_ has joined #openscad
qeed has quit [Ping timeout: 260 seconds]
fling has quit [Remote host closed the connection]
fling has joined #openscad
qeed has joined #openscad
qeed_ has quit [Ping timeout: 260 seconds]
leptonix has quit [Server closed connection]
leptonix has joined #openscad
J23k90 has joined #openscad
J23k84 has quit [Ping timeout: 245 seconds]
use-value has quit [Remote host closed the connection]
use-value has joined #openscad
e2k_ has quit [Quit: leaving]
guso78 has joined #openscad
<gbruno> [github] coolian1337 opened issue #4668 (Openscad crashes on linear_extrude with list for scale) https://github.com/openscad/openscad/issues/4668
mmu_man has joined #openscad
tarski-operator has quit [Ping timeout: 265 seconds]
guso78 has quit [Quit: Client closed]
L29Ah has left #openscad [#openscad]
L29Ah has joined #openscad
J23k58 has joined #openscad
J23k90 has quit [Ping timeout: 245 seconds]
Guest42 has joined #openscad
<Guest42> I was on this chat yesterday with a question how to import OBJ & MTL to openSCAD. I was advised to use latest dev snapshot. I tried - it failed with error. Is it supposed to be supported?
<Guest42> Also - is there a discord channel for OpenScad?
<J23k58> discord is evil
<J23k58> teepee said obj import should be supported - was was the error msg? Guest42
<Guest42> unsupported file format
<Guest42> And yes - a devil, yet I can follow up on messages and answers after I log off
<Guest42> Wait,... Maybe it's a wrong error message - let me run it again on the new version
<buZz> Guest42: we use irc, not gamerchat :)
<buZz> whats that file?
<buZz> MTL? never heard of, is it 'material' ? :D
<buZz> i dont believe openscad supports such
<J23k58> Guest42 you can use the log to check https://libera.irclog.whitequark.org/openscad/
Guest42 has quit [Ping timeout: 245 seconds]
<J23k58> hm "ERROR: Compilation aborted by exception: bad lexical cast: source type value could not be interpreted as target" with 2023.06.06
ubitux has quit [Server closed connection]
ubitux has joined #openscad
<J23k58> hm mtl is wavefront (obj) material template library
<J23k58> wow discord is owned by tencent https://dataromas.com/what-companies-does-tencent-own/  ( china )
linext has quit [Quit: Leaving]
linext has joined #openscad
L29Ah has left #openscad [#openscad]
guso78 has joined #openscad
kintel has joined #openscad
<kintel> joseph_ How are things progressing?
guso78 has quit [Quit: Client closed]
Guest42 has joined #openscad
<Guest42> Compilation aborted by exception: bad lexical cast: source type value could not be interpreted as target
<Guest42> This is the error I get when importing OBJ file
<teepee> can you share that file? I don't think there is support for MTL, so it's probably tripping over those lines
<Guest42> With the latest dev snapshort OpenSCAD release
<teepee> expecting only geometry data
Guest58 has joined #openscad
Guest41 has joined #openscad
Guest58 has quit [Client Quit]
Guest41 has quit [Client Quit]
<J23k58> teepee i tried this with a cube and sphere (no mtl no vertex color)  both give that error
<J23k58> both created with autocad meshmixer and saved as obj
<J23k58> also tried with 3D-builder .. same result
L29Ah has joined #openscad
Guest42 has quit [Ping timeout: 245 seconds]
guso78 has joined #openscad
guso78 has quit [Ping timeout: 245 seconds]
J23k58 has quit [Quit: Client closed]
J23k58 has joined #openscad
<teepee> J23k58: hmm, we may want to poke guso78 about that then
<J23k58> k
mmu_man has quit [Ping timeout: 250 seconds]
<guso78[m]> Poke me with obj topic? Right now i am mssing the Context. But i will try to Catch Up, when relevant ....
<guso78[m]> Ahh. Pleased Share an example obj with me , Then i can Look into IT!
<gbruno> [github] Equbuxu opened issue #4669 (Preview artifact when using difference with two linear_extrude'ed squares) https://github.com/openscad/openscad/issues/4669
<gbruno> [github] thehans closed issue #4669 (Preview artifact when using difference with two linear_extrude'ed squares) https://github.com/openscad/openscad/issues/4669
Scopeuk has quit [Server closed connection]
Scopeuk has joined #openscad
<J23k58> guso78[m] have you successfully imported an obj file ?  I mean if even a cube fails
<guso78[m]> There IS an example ctest dodecahedron which works.
<guso78[m]> Maybe import obj needs to become much more versatile. MTL IS Not yet supported e.g.
<guso78[m]> Will Look into the shown obj in the evening
<J23k58> maybe some conversion thing ..
<J23k58> i have tried other obj files and all give the same error
snaked has quit [Quit: Leaving]
<guso78[m]> No Problem, later i will know more about the issue
<guso78[m]> Could BE stupid crlf Thing even ....
peeps[work] has joined #openscad
guerd871 has quit [Ping timeout: 240 seconds]
snaked has joined #openscad
J23k58 has quit [Quit: Client closed]
J23k58 has joined #openscad
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
J23k58 has quit [Client Quit]
J23k58 has joined #openscad
J23k58 has quit [Client Quit]
J23k58 has joined #openscad
<lf94> Do people make money using hardware description languages in the FOSS ecosystem?
<lf94> I feel there's a parallel to code CAD there
<lf94> Both produce plans to create tangible things
guso78 has joined #openscad
<Scopeuk> hdl is in a weird place
<juri_> so, i know people who do.
<juri_> and i officially make $15 a month, writing implicitcad/HSlice.
<juri_> that's one *good* cup of coffee, in exchange for my evenings and weekends. :P
<Scopeuk> the tools, foss and proprietary are capable but also naff. development there will likely blow it open. I guess most people who re doing it aren't doing it for foss, particularly as a lot of your tool chains are weird and proprietary if you want to extract the last 30% of performance
<InPhase> lf94: In my past drifts into hardware description languages, you are typically coupled to some vendor's hardware if you want to do anything with the serious hardware, and you don't want to spend forever on infrastructure. Although this appears to be gradually getting a little better with some of the hobbyist options like a few arduino associated items.
<lf94> Oddly similar to CAD world: everyone's tied to some vendor for their CADware.
<InPhase> lf94: So there are limits on how "open" it is until there are more standardized options that interoperate well with open source tools.
<teepee> there's a couple of fabs now with fully open source PDKs, so interesting stuff happening
<teepee> I was surprised GF joined the club too, although I only saw some sort of press release
<teepee> big difference is you buy *chips*, nobody really wants to buy software
<gbruno> [github] gsohler opened pull request #4670 (Importobj fix) https://github.com/openscad/openscad/pull/4670
kintel has joined #openscad
<gbruno> [github] gsohler synchronize pull request #4670 (Importobj fix) https://github.com/openscad/openscad/pull/4670
mmu_man has joined #openscad
guerd87 has joined #openscad
guerd87 has quit [Read error: Connection reset by peer]
guerd87 has joined #openscad
<joseph_> kintel: I have been tinkering locally with refactoring. Before deciding how to check in everything and push it, I think it would be useful to know beforehand the way that I'm eventually going to get this year's (and last year's) work into the main repository. I thought that making a visualization would help with the final decision-making. I created this: https://github.com/jbinvnt/gsoc-2023-git-planning/blob/master/
<joseph_> GitDiagram20230612.pdf and perhaps teepee can weigh in too
<joseph_> The IRC character limit seems to have split my link. Here it is again: https://github.com/jbinvnt/gsoc-2023-git-planning/blob/master/GitDiagram20230612.pdf
<kintel> I think I, by far, would prefer Method 3, probably even split the refactoring code into multiple PRs as you progress
<kintel> ..but I think a more interesting discussion is going to be how to scope the refactoring, as that in itself could easily be too large of a project to finish in time, especially if you want to target both preview rendering and geometry rendering
<kintel> Reasoning for my preference: Method 1: Dirty master, which will break our nightly releases, Method 2: Too many feature in the same PR; will be too time consuming to review and merge, and thus run the risk of never making it into master.
<kintel> Btw. in terms of refactoring: Have you reviewed the existing GL code in OpenSCAD, and determined where legacy GL calls are made from, as a starting point for choosing where to focus refactoring work? ..or is the refactoring meant to be a green "no functional changes" refactoring to make it easier to progress afterwards?
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
J23k58 has quit [Quit: Client closed]
J23k58 has joined #openscad
<joseph_> kintel: Thanks for the feedback. Because I anticipate that the rebase required for option 3 would likely have many conflicts, it might become easier to just rewrite the rendering changes from last year on top of the refactored master (hopefully which, as a result of the refactoring, won't be a huge amount of work).
othx has quit [Remote host closed the connection]
guso78 has quit [Quit: Client closed]
<joseph_> kintel: When I say "refactoring," for now what I mean is just the "no functional changes" edits. My core goal is to decouple the OpenGL drawing methods from the logic that processes the incoming geometry (be it CGAL or OpenCSG). I expect that this will then allow me to consolidate the rendering that is shared in OpenCSGRenderer and CGALRenderer, allowing future modernizations/edits to happen in one place
othx has joined #openscad
teepee_ has joined #openscad
guso78 has joined #openscad
teepee has quit [Ping timeout: 240 seconds]
teepee_ is now known as teepee
JakeSays has quit [Server closed connection]
JakeSays has joined #openscad
teepee has quit [Remote host closed the connection]
teepee has joined #openscad
snaked has quit [Quit: Leaving]
mmu_man has quit [Ping timeout: 246 seconds]
kintel has joined #openscad
<kintel> joseph_: I would probably largely deselect preview rendering if I were you; OpenCSG is most probably making its own GL calls, or put some limitations on how to use OpenGL, so you may hit a wall there at some point.
<kintel> Also keep in mind that there is legacy rendering core scattered elsewhere, outside of the geometry rendering classes.
<kintel> I do believe CGALRenderer should be largely legacy free already if the VBO stuff is enabled. Refactoring the VBO stuff itself might be a big enough task for the remaining time
<kintel> ^ as you can read between the lines, I feel that the largest risk is to take on a too big of a task, ending up with another PR which cannot be merged.
<kintel> ..but once you understand the code in the renderers and can estimate what a green refactoring looks like, that should de-risk this.
foul_owl has quit [Quit: WeeChat 2.3]
mmu_man has joined #openscad
guso26 has joined #openscad
kintel has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
hrberg has quit [Ping timeout: 268 seconds]
erectus has quit [Ping timeout: 240 seconds]
guso26 has quit [Quit: Client closed]
erectus has joined #openscad
peeps[work] has quit [Ping timeout: 250 seconds]
L29Ah has left #openscad [#openscad]
L29Ah has joined #openscad
J23k58 has quit [Quit: Client closed]
J23k58 has joined #openscad
noonien3 has quit [Server closed connection]
noonien3 has joined #openscad
guso78 has quit [Quit: Client closed]
escherial has quit [Server closed connection]
escherial has joined #openscad