« first day (2261 days earlier)      last day (2705 days later) » 
00:00 - 23:0023:00 - 00:00

user1804599
 
Today I was looking at some old task queuing system and vaguely remembered Sean Parent mentioning "did the queue go dry?" as a condition for triggering something. And then it struck me I could replace a io_service.post with a simple vec.push_back + mutex lock. It turned out to reduce the cost from 500ns to ~50ns.
 
lol
 
And I could replace this code with this code.
 
I won the combat training tutorial by the enemy ship ramming me
and suiciding
 
Ven
@rightfold ETOOMANYEQUALITIES
 
user1804599
11:08 PM
equivalences*
 
user1804599
How do I make a MAIN parameter optional if a Boolean flag is set?
 
Ven
multi MAIN
 
user1804599
Not sure how.
 
Ven
mmh
you can Bool :$x where * === True I think
 
why can't all enums implement a .toString() method?
Qt does something similar with MOC for example,
 
11:17 PM
enums are weaklings
 
user1804599
@Ven or just where * :P
 
user1804599
Ambiguous call to 'MAIN'; these signatures all match:
:(Str $connection-string, Cool $in-file, Cool $out-file = "-")
:(Cool $in-file, Cool $out-file = "-", Bool :$syntax-only where { ... })
  in block <unit> at .\purspgpp line 87
 
No, you're weak
MOC master race
 
enumerators don't even have a symbol name
 
Ven
@rightfold add a where False?
:D
 
11:18 PM
the compiler can implement what I want with a substitution, or just find and replace
 
Ven
* === False
 
user1804599
Yeah, with where !* it works. XD
 
Ven
XD
 
user1804599
amazing
 
user1804599
Usage:
  .\purspgpp [--syntax-only (False True)] <connection-string> <in-file> [<out-file>]
  .\purspgpp [--syntax-only (False True)] <in-file> [<out-file>]
 
user1804599
11:19 PM
nice
 
Ven
you can add per-param doc
 
Ven
if $conn.defined can be with $conn
 
user1804599
Thanks.
 
Ven
(affects $_ tho)
 
user1804599
11:23 PM
Should be a multi sub.
 
Ven
ah :)
 
user1804599
multi sub process-query(libpq::Connection:D $conn, Str:D $source --> Str:D) { ... }
multi sub process-query(libpq::Connection:U $conn, Str:D $source --> Str:D) { ... }
 
Ven
ay
 
user1804599
@Ven issue got fixed lol
 
Ven
gut
 
user1804599
11:28 PM
It's nice that '-'.IO does stdout, even on Windows.
 
Ven
you mean STDIN?
 
user1804599
well if you read from it probably
 
user1804599
but if you write it does stdout
 
Ven
ah, TIL
 
user1804599
IO(Cool) $out-file = '-' :)
 
Ven
11:33 PM
@rightfold not sure i agree with the fix actually
a keybind to focus search sounds nice
vOv
 
user1804599
but not if it interferes with existing browser behavior
 
user1804599
lool
 
Ven
i'd argue that's a brother bug
 
user1804599
$x¹⁵ raises the value of $x to the power 15.
 
Ven
of course :)
 
user1804599
11:45 PM
@Ven what is a nicer way to write (0 ..^ PQnparams($result)).map({PQparamtype($result, $_)})?
 
user1804599
(^PQnfields($result)).map({PQftype($result, $_)}) is nicer already.
 
Ven
got nothin' else
 
user1804599
Something like >>?
 
user1804599
PQftype($result, *) didn't work.
 
Ven
^PQnfields($_) .map(PQftype($_, *)) given $result <= awful
 
11:53 PM
@Ven merry xmas <3
(to you and your cats)
 
Ven
@Borgleader merry xmas @jaggedSpire
@Borgleader i'm afraid i've been kittyless for a full week now.
 
user1804599
> This type cannot unbox to a native integer: P6opaque, Whatever
 
Ven
lol
 
user1804599
You can't pass * to native functions.
 
Ven
it's using Mu, oviously...
 
11:54 PM
@Ven RIP you :(
 
@Puppy I have a spam filter set for "Mr. Mooing Duck"
 
lol
 
00:00 - 23:0023:00 - 00:00

« first day (2261 days earlier)      last day (2705 days later) »