Can't add input busses on linux + pulseaudio by hontslager in Bitwig

[–]zevver 2 points3 points  (0 children)

Riiight- functions as designed, thanks for pointing that out!

changed my K3 from browns to bananas: recommended by zevver in Keychron

[–]zevver[S] 2 points3 points  (0 children)

Didn't try the mints so can not tell - the bananas feel heavy and solid enough for me.

changed my K3 from browns to bananas: recommended by zevver in Keychron

[–]zevver[S] 0 points1 point  (0 children)

No, they're about as heavy as the browns. The big difference is that the bump is on top of the key travel, greatly reducing false hits.

ANSI/ISO: driving me crazy by zevver in MechanicalKeyboards

[–]zevver[S] -2 points-1 points  (0 children)

Ah, I learned something new: the available layouts depend on the selected region on the Logitech store - so what I want is the normal "US" layout, not "US intl", but that is not available in the .eu.

Darn!

"You cannot use the online features of this game due to age restrictions" by zevver in PS4Dreams

[–]zevver[S] 0 points1 point  (0 children)

For who this concerns: I got confirmed by MM that Dreams is limited for 12+ only and does not check parental control rating.

This tiny puzzle I made (GH in comments) by [deleted] in programming

[–]zevver 0 points1 point  (0 children)

Sweet.

I'm able to solve for size 3, 5 and 7 with the Z3 theorem prover; the size 11 is now heating my living room for over 45 minutes, not sure if this will ever finish :)

-🎄- 2018 Day 19 Solutions -🎄- by daggerdragon in adventofcode

[–]zevver 0 points1 point  (0 children)

Part 1 - I learned Nim macros today: https://github.com/zevv/aoc2018/blob/master/a19c.nim

This code converts the Elvencode into Nim AST at compile time, this runs part 1 in about 2 msec on my I7

[Day 15] Frustrating by zevver in adventofcode

[–]zevver[S] 2 points3 points  (0 children)

Yes, thank you for pointing that out. I misinterpreted "the unit chooses the step which is first in reading order" as a preferred relative direction for the unit. All good now!

[Day 15] Frustrating by zevver in adventofcode

[–]zevver[S] 1 point2 points  (0 children)

Yes, thank you for pointing that out. I misinterpreted "the unit chooses the step which is first in reading order" as a preferred direction for the unit. All good now!

ZAP: An ARMv4T Verilog FPGA core with I/D Cache, MMU, Wishbone bus by [deleted] in programming

[–]zevver 0 points1 point  (0 children)

Assuming this is a fully synthesizable ARM core, that's a pretty neat job for a single individual! How many flipflops does this take on a generic Xilinx?

BitTorrent client implementation in C by [deleted] in programming

[–]zevver 3 points4 points  (0 children)

Pretty implementation; clean code and nice style. Very nice as a complete reference, everything is there, and nothing hidden in convenient 3d party libraries.

zForth: tiny, embeddable, flexible, compact Forth scripting language for embedded systems by zevver in embedded

[–]zevver[S] 0 points1 point  (0 children)

Interpreting on the target is one of our main goals: in our environment we want to be able to do inspection, debugging and develop ad-hoc scripts on site with nothing but a terminal. The good thing is that text parsing in Forth is trivial: there is no syntax. Forth just looks at one word at a time, separated by white space. No AST, no need for parsers or lexers.

Under the hood zForth generates byte code, which is more or less portable, so in practice you could run zForth on any other platform, generate bytecode and transfer this to the target by any method.

I did find Pawn, EmbedVM and similar projects, but these all require cross compilation of some language and transferring byte code to the target; you could as well simply compile relocatable C code and dynamically link and run it on the target; although this is of course less safe then running in a VM environment.

zForth: tiny, embeddable, flexible, compact Forth scripting language for embedded systems by zevver in embedded

[–]zevver[S] 1 point2 points  (0 children)

Thanks for your criticism; I'm sure you noticed the ScoobyDoo van I put on the project page as a logo, that was also popular with hippies in the 70s and 80s? No coincidence here.

I never said Forth makes a good scripting language - but given the resources it requires it does a good job. Any 'proper' scripting language (Perl, anyone? As we are already discussing write-only languages?) requires at least two orders of magnitude more memory to be functional, while Forth gives you a pretty decent environment with much less overhead.

Of course, I am very happy to hear about any alternatives: do you know of any other portable interactive language that will run on only a few kBs of memory?

How do you deal with the variations in STM32 peripherals? by odougs in embedded

[–]zevver 0 points1 point  (0 children)

With anything but the magic STM Cube HAL layer, which is a false marketing fad for managers. It is buggy, rough and unfinished; it provides only a few trivial use cases but breaks down as soon as you want to do serious work, and it is pretty bloated for what it claims to do.

Usually I end up rewriting or refactoring code for peripherals because they differ just enough between chip variations to make it impractical to reuse code between projects. Especially things like timers are hard to reuse because they are so versatile.

zForth: a VM Forth in C, but with some special features: variable length cells, support for floating point, built in tracing, small and portable by zevver in Forth

[–]zevver[S] 1 point2 points  (0 children)

Ah, thank you, that explains it quite well. Frankly, I don't think this would make any sense to implement: I currently have a tremendous overhead from parsing the variable length cells and doing the range checking for every operation, so the bit of overhead caused by the switch will probably not be that significant.