Re: [Jprogramming] Repeated rolling dice

2014-12-31 Thread robert therriault
They work for me on j803 jhs with courier as the font. u: 9857 ⚁ Cheers, bob On Dec 31, 2014, at 12:51 PM, Björn Helgason wrote: > I use plain jqt on Android > On 31 Dec 2014 20:12, "Skip Cave" wrote: > >> The unicode characters 9856-9861 (hex 2680-2685) don't have the dice >> characters

Re: [Jprogramming] Repeated rolling dice

2014-12-31 Thread Björn Helgason
I use plain jqt on Android On 31 Dec 2014 20:12, "Skip Cave" wrote: > The unicode characters 9856-9861 (hex 2680-2685) don't have the dice > characters on any of the fonts I tried in jqt64-j803 on my Win 8.1 machine. > Any idea what fonts might have he dice characters? > > Skip > > > On Wed, Dec

[Jprogramming] an alternative to &. - and fun with conjunctions

2014-12-31 Thread 'Pascal Jasmin' via Programming
A conjunction that returns an adverb and applies its 2 arguments before and after the adverb's parameter. B =: 2 : '(@: u)(v @:)' >: +:B -: 2 2.5 >: &.+: 2 2.5 >: dfh B hfd '1a' 1b The verbs are placed counterintuitively under the presumption that the u verb will be longer, and s

Re: [Jprogramming] variable integer coding (challenge)

2014-12-31 Thread Joe Bogner
Thanks. I couldn't follow the examples so I worked through it on my own. Sharing it here for anyone else who's following. I switched to 9 bits instead of 19 to simplify the example NB. 300 needs 9 bits to be expressed $ #: 300 9 NB. Show 4 9 bit numbers $ #: 300 301 302 303 4 9 Writi

Re: [Jprogramming] Repeated rolling dice

2014-12-31 Thread Skip Cave
The unicode characters 9856-9861 (hex 2680-2685) don't have the dice characters on any of the fonts I tried in jqt64-j803 on my Win 8.1 machine. Any idea what fonts might have he dice characters? Skip On Wed, Dec 31, 2014 at 6:24 AM, Björn Helgason wrote: > It all depends on what font is used.

Re: [Jprogramming] variable integer coding (challenge)

2014-12-31 Thread 'Pascal Jasmin' via Programming
Also, if you have only 4 19 bit values, you can pack them up tighter _2 (16&#.)\ #. |: ?. 4 19 $ 2 109 59 161 30 136 80 64 129 56 1 Non multiples of 8 would just generally leave some trailing 0s on decode, which could simply be understood as invalid. - Original Message - From: 'Pascal

Re: [Jprogramming] variable integer coding (challenge)

2014-12-31 Thread 'Pascal Jasmin' via Programming
base64 is essentially taking 3 bytes and storing them as 4. The inverse can take 4 6bit values and pack them into 3 bytes. The J code for base64 is pretty generic to see how to do it for any base. 7 bit values could be packed 8 at a time in 7 bytes. There is a different way to pack 8 x bit v

Re: [Jprogramming] variable integer coding (challenge)

2014-12-31 Thread 'Pascal Jasmin' via Programming
I was not thinking of encoding a whole table, into a binary field, but that could be done as you described too. My specific use case is storing 2 public cryptographic keys per user, along with a version number that indicates key size and algorithm involved. That version number is almost surely

Re: [Jprogramming] variable integer coding (challenge)

2014-12-31 Thread Raul Miller
The answer to that is contextual. But on intel architectures, it's often going to be: no. Thanks, -- Raul On Wed, Dec 31, 2014 at 10:02 AM, Joe Bogner wrote: > Can 19 bits be stored in memory or a file on modern computers without > taking up 3 bytes (24 bits)? The only idea that came to mind w

Re: [Jprogramming] variable integer coding (challenge)

2014-12-31 Thread Joe Bogner
Can 19 bits be stored in memory or a file on modern computers without taking up 3 bytes (24 bits)? The only idea that came to mind would some bit packing scheme with multiple items. That seems complicated unless there was a need to store billions of these numbers On Dec 31, 2014 9:28 AM, "Joe Bogne

Re: [Jprogramming] variable integer coding (challenge)

2014-12-31 Thread Joe Bogner
Thanks. I missed the point of the variable breakup point but exploring different options below illustrated it for me. Changing the breakup point can encode the numbers into different bit lengths (other than 8) which can then be written to the file/memory. For example, 1021 encoded in 511 breakups

Re: [Jprogramming] Repeated rolling dice

2014-12-31 Thread Björn Helgason
It all depends on what font is used. Many/most only have subsets of the pictures/fonts/bitmaps/signs for the unicode places. http://unicode-table.com/en/ press a sign and it will give a popup with the unicode number/name On 31 Dec 2014 11:25, "Linda Alvord" wrote: > u: 9856+i. 6 results in 6 e

Re: [Jprogramming] Repeated rolling dice

2014-12-31 Thread Linda Alvord
Here's the problem I came across with the chess board. CB=:(|.(8$9823),9820 9822 9821 9819 9818 9821 9822 9820),(32$32),(8$9817),9814 9816 9815 9812 9813 9815 9816 9814 8 8 $<"0 u: CB ┌───┬───┬───┬───┬───┬───┬───┬───┐ │♜│♞│♝│♚│♛│♝│♞│♜│ ├───┼───┼───┼───┼───┼───┼───┼───┤ │♟│♟│♟│♟│♟│♟│♟│♟│ ├─

Re: [Jprogramming] Repeated rolling dice

2014-12-31 Thread Linda Alvord
u: 9856+i. 6 results in 6 empty boxes? I had no trouble getting chess pieces. I tried (jqt font size 16) u:200 50$i.1 and don't see any dice. Any ideas? Theree are many symbols but also many boxes. Linda -Original Message- From: programming-boun...@forums.jsoftware.com [mailto: