IRC Logs for #crux-devel Friday, 2019-02-15

*** frinnst has quit IRC00:38
*** frinnst has joined #crux-devel00:39
*** frinnst has quit IRC00:43
*** frinnst has joined #crux-devel00:49
*** frinnst has quit IRC00:58
*** frinnst has joined #crux-devel02:07
*** frinnst has quit IRC02:07
*** frinnst has joined #crux-devel02:07
*** frinnst has quit IRC02:36
*** frinnst has joined #crux-devel02:38
*** frinnst has quit IRC02:38
*** frinnst has joined #crux-devel02:38
*** frinnst has quit IRC02:44
*** frinnst has joined #crux-devel03:00
*** frinnst has quit IRC03:00
*** frinnst has joined #crux-devel03:00
*** frinnst has quit IRC03:07
*** frinnst has joined #crux-devel03:08
*** frinnst has quit IRC03:08
*** frinnst has joined #crux-devel03:08
*** frinnst has quit IRC03:21
*** frinnst has joined #crux-devel03:22
*** frinnst has quit IRC03:22
*** frinnst has joined #crux-devel03:22
*** frinnst has quit IRC03:45
*** frinnst has joined #crux-devel03:48
*** frinnst has quit IRC03:48
*** frinnst has joined #crux-devel03:48
*** uplime has quit IRC07:09
*** uplime has joined #crux-devel07:22
*** prologic has quit IRC09:05
*** prologic has joined #crux-devel09:07
*** heroux has quit IRC09:24
*** heroux has joined #crux-devel09:24
*** frinnst has quit IRC11:35
*** frinnst has joined #crux-devel11:55
*** frinnst has quit IRC11:55
*** frinnst has joined #crux-devel11:55
*** frinnst has quit IRC15:55
*** frinnst has joined #crux-devel16:11
*** frinnst has quit IRC16:11
*** frinnst has joined #crux-devel16:11
*** jue3 has joined #crux-devel17:48
*** onodera has joined #crux-devel18:01
frinnstRomster: regret picking up the mozilla source stuff + rust yet? :-)18:18
*** onodera has quit IRC18:56
*** onodera has joined #crux-devel18:57
*** heroux has quit IRC19:51
*** heroux has joined #crux-devel19:52
*** jue3 has quit IRC19:59
jaegerC question for you guys - given a string containing the name of a package tarball such as "bash#4.4.23-1.pkg.tar.xz", which would be your preference for parsing it into its name, version, and release/revision components?21:42
jaegerstrtok tomfoolery, strrchr, regex match, or something else?21:43
jaegerI'm reading a package from an archive using libarchive but of course since there's no metadata in our packages, the only way to figure out its name/version/release is the filename21:44
jaegerI'm leaning towards regex for ease of reading/understanding. Performance isn't too big an issue in such a simple case22:04
darfoi'd go for regex over strtok and str(r)chr since it is more readable, less finicky.23:31
darfounless you want a unix learning experience. then flex (lexx) would be fun.23:32
jaegerdon't want to use external tools in this case23:34
jaegeryeah, my personal preference is regex, I don't like strtok/strrchr/strstr/etc. much23:34
jaegerI went ahead and implemented it with regex currently but I figured it wouldn't hurt to ask for opinions23:35
jaegerexample test: http://ix.io/1B9l23:36
jaegerIt's not a perfect regex, also, but this is just learning/testing23:36
jaegerThis might not even be necessary in the end. What I'm doing right now is implementing 'pkginfo -l /path/to/some/package#version-1.pkg.tar.xz'23:50
jaegerwhich doesn't even care about the name, version, and release, just the files therein23:50
jaegerBut I was reusing code that creates a package struct using the name, version, and release :)23:51
jaegerCould just pass it dummy/placeholder values and skip the parsing23:51

Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!