whitequark[cis] changed the topic of #glasgow to: https://glasgow-embedded.org · digital interface explorer · https://www.crowdsupply.com/1bitsquared/glasgow · code https://github.com/GlasgowEmbedded/glasgow · logs https://libera.irclog.whitequark.org/glasgow · matrix #glasgow-interface-explorer:matrix.org · discord https://1bitsquared.com/pages/chat
itsmk_ has quit [Ping timeout: 244 seconds]
<tpw_rules> whitequark[cis]: where is glasgow's regex for that version purpose?
<whitequark[cis]> target.toolchain
<tpw_rules> hm, silly question but what is the meaning of .+? in the regex?
itsmk has joined #glasgow
<whitequark[cis]> "any characters, up to the first time the subsequent pattern matches"
<tpw_rules> oh, so ? is being used as the least long match instead of 0 or 1 operator here
<whitequark[cis]> yes
<tpw_rules> does the returned version get compared or anything, or just given to the user?
<whitequark[cis]> given to the user iirc
<whitequark[cis]> not sure, check the code
<tpw_rules> yes i'm looking through it but version is a bit of a general term
<duskwuff[m]> *? and +? are the non-greedy variants of * and +; they match as few times as possible rather than as many as possible
<tpw_rules> i've used *?, idk why i didn't connect it to +?
<tpw_rules> ahh, i see how nix broke it, sorry about that. technically "nextpnr-" is a part of its version string though considering that's the tag name :)
<tpw_rules> also fwiw i do not like platformio on account of there is no way to do locking or patching...
<whitequark[cis]> i do handle that
<tpw_rules> what was saying is that in some sense the regex could be r".+?\(Version (.+)\)$"
<whitequark[cis]> no
<whitequark[cis]> nextpnr is not a version of nextpnr, it is garbage
<whitequark[cis]> the regex correctly rejects it as garbage
<tpw_rules> definitely, but the tag is nextpnr-0.2, not 0.2
<tpw_rules> which is why it shows up in the version in the first place
<tpw_rules> anyway i am working on a patch to nixpkgs right now
<whitequark[cis]> yes? nextpnr- is not a part of the version, just like yosys- isn't a part of the version for yosys
<whitequark[cis]> in fact yosys is switching to v* or something
<tpw_rules> they switched to just the number yeah
redstarcomrade has joined #glasgow
meklort has quit [Ping timeout: 248 seconds]
meklort has joined #glasgow
SnoopJ is now known as SpookJ
GNUmoon has quit [Ping timeout: 260 seconds]
Griwes has quit [Ping timeout: 260 seconds]
Griwes has joined #glasgow
GNUmoon has joined #glasgow
redstarcomrade has quit [Read error: Connection reset by peer]
andymandias has joined #glasgow
<wiebel[m]> Would it be possible to reprogram the FX2 at runtime to, say change the USB class to HID or UART?
<whitequark[cis]> technically? yes. am i willing to support that? fuck no
<whitequark[cis]> the amount of complexity that would introduce is unmanageable. that was actually sort of the original plan for the device. but it's just not tractable
<wiebel[m]> Ok, thx. But it would have been awesome.
<whitequark[cis]> one person's "awesome" is another person's "maintenance nightmare"
vegard_e[m] has joined #glasgow
<vegard_e[m]> if you want to use glasgow to make custom USB devices, you'd probably be much better off with an applet implementing a USB core in the FPGA
isabelburgos[m] has joined #glasgow
<isabelburgos[m]> you might be interested in https://github.com/greatscottgadgets/luna
urjaman has quit [Read error: Connection reset by peer]
urja has joined #glasgow
FFY00 has joined #glasgow
FFY00_ has quit [Ping timeout: 265 seconds]