profile
viewpoint
Zack M. Davis zackmdavis Coalition Berkeley, CA zackmdavis.net/blog

AtheMathmo/rusty-machine 978

Machine Learning library for Rust

zackmdavis/Glitteral 5

sparkling, vague dreams of a future programming language

zackmdavis/Leafline 5

an oppositional strategy game engine

compwron/mez 4

Zendo playable via restful endpoint

zackmdavis/Cauzzle 2

Bayesian networks!

zackmdavis/App_Academy_Exercises 1

exercises during App Academy

zackmdavis/dotfiles 1

my configuration info

zackmdavis/Epilogue 1

the last database

zackmdavis/Finetooth 1

an experimental discussion forum

zackmdavis/hystriscene 1

a chat server, presumably for porcupines

issue commentrust-lang/rust

`--explain` should disambiguate nonexistent from underdocumented error codes

@jakevossen5 I'm not; go for it! (Although ... I thought I remembered seeing an issue recently where people were discussing moving away from the numeric error codes, but I can't find it. @estebank, was that a real thing?)

zackmdavis

comment created time in 4 days

startedpschanely/CrossHair

started time in 4 days

pull request commentrust-lang/rust

Improve reporting errors and suggestions for trait bounds

@bors r+

Patryk27

comment created time in 14 days

startedlaunchbadge/sqlx

started time in 24 days

pull request commentrust-lang/rust

Improve reporting errors and suggestions for trait bounds

@bors r+

Patryk27

comment created time in a month

starteddessalines/lemmy

started time in a month

push eventzackmdavis/Category_War

Zack M. Davis

commit sha 8b350d11b418c715eb55c6f740f77b7626c407c4

check in

view details

Zack M. Davis

commit sha aa1881a339d533c5a1d9a757b1a1eecfe6292507

check in

view details

Zack M. Davis

commit sha 3fa52e9ac4b63dc8e01bae6a2439dc9301f4402c

starting to draft "Algorithmic Intent"

view details

push time in a month

startedriceissa/ea-forum-reader

started time in a month

pull request commentrust-lang/rust

Improve reporting errors and suggestions for trait bounds

@bors delegate+

Patryk27

comment created time in a month

Pull request review commentrust-lang/rust

Improve reporting errors and suggestions for trait bounds

 LL |     for (i, n) in &v.iter().enumerate() {    |                   -^^^^^^^^^^^^^^^^^^^^    |                   |    |                   `&std::iter::Enumerate<std::slice::Iter<'_, {integer}>>` is not an iterator-   |                   help: consider removing 1 leading `&`-references+   |                   help: consider removing the leading `&`-reference

nice

Patryk27

comment created time in a month

Pull request review commentrust-lang/rust

Improve reporting errors and suggestions for trait bounds

+// ignore-tidy-filelength

(The huge diff numbers made the PR disproportionately more intimidating to review :crying_cat_face: )

Patryk27

comment created time in a month

Pull request review commentrust-lang/rust

Improve reporting errors and suggestions for trait bounds

 pub struct InferCtxt<'a, 'tcx> {      /// Track how many errors were reported when this infcx is created.     /// If the number of errors increases, that's also a sign (line-    /// `tained_by_errors`) to avoid reporting certain kinds of errors.

nice catch

Patryk27

comment created time in a month

startedCanop/broot

started time in a month

push eventzackmdavis/Category_War

Zack M. Davis

commit sha 3e595db2da7f7305d0f16dc5a3e4c12337c9c791

check in

view details

push time in a month

pull request commentrust-lang/rust

Improve reporting errors and suggestions for trait bounds

okay, I at least managed to pull-request my resignation from the reviewer queue, and now I have to go to my dayjob, and then tonight I'll actually review this, and if I break my word this time then, like, hit me with a stick

Patryk27

comment created time in a month

PR opened rust-lang/highfive

ZMD hopefully-temporarily resigns from rustc reviewer queue

Sorry, I haven't been keeping up with my GitHub notifications lately, and it's more responsible to ensure that I don't get tagged rather than to be tagged and not respond in a timely fashion. I hope to get my life in order such that I can be more active in Rust soon. :cold_sweat: :crying_cat_face:

+1 -1

0 comment

1 changed file

pr created time in a month

create barnchzackmdavis/highfive

branch : zmd-resign

created branch time in a month

fork zackmdavis/highfive

Github hooks to provide an encouraging atmosphere for new contributors

fork in a month

pull request commentrust-lang/rust

Improve reporting errors and suggestions for trait bounds

(ugh, or tomorrow night, need to sleep now :cold_sweat: )

Patryk27

comment created time in a month

pull request commentrust-lang/rust

Improve reporting errors and suggestions for trait bounds

@Patryk27 Thanks for your patience. Let me take a look tonight (I'm super behind on notifications and may need to resign from the reviewer queue :cold_sweat: :crying_cat_face: )

Patryk27

comment created time in a month

pull request commentLessWrong2/Lesswrong2

Ungate pingbacks

pingbacks are the best feature :sparkling_heart:

jimrandomh

comment created time in 2 months

issue commentLessWrong2/Lesswrong2

phantom major past revisions?

Again: https://www.lesswrong.com/posts/trb9HPWFk8Gy9MBdN/less-wrong-poetry-corner-walter-raleigh-s-the-lie (If it isn't happening to everybody this consistently, maybe something my browser is doing makes it more likely? I'm on Firefox 71.0 on Xubuntu 16.04.)

zackmdavis

comment created time in 2 months

issue commentLessWrong2/Lesswrong2

phantom major past revisions?

Happened again with https://www.lesswrong.com/posts/jrLkMFd88b4FRMwC6/don-t-double-crux-with-suicide-rock (but, individual bug-instance reports like this are likely not useful, because I assume that once you have a fix, it shouldn't be hard to query for posts with a 2.0.0 but not a 1.0.0?).

zackmdavis

comment created time in 2 months

push eventzackmdavis/Category_War

Zack M. Davis

commit sha d93aa9976458c227495f42dde980e0bb7c44ffb6

check in

view details

push time in 2 months

issue commentLessWrong2/Lesswrong2

phantom major past revisions?

thanks :sparkling_heart:

zackmdavis

comment created time in 2 months

issue openedLessWrong2/Lesswrong2

phantom major past revisions?

The site is claiming that the post I just published has "major past revisions." This is unwanted. (I did "Save as Draft" and edit once or twice before publishing (after drafting the post in my local text editor and pasting it into the website), but I don't think that should count as a "major revision", and it hasn't on previous posts.) When I click to view these alleged major past revisions, the pop-up list is empty.

major_past_revisions

created time in 2 months

push eventzackmdavis/Category_War

Zack M. Davis

commit sha 1761333a54025e8c3be3e221bd85555d5f617dda

check in

view details

Zack M. Davis

commit sha a7d2df6d31c8111e9957d9804fac810cf3c10bd6

check in

view details

push time in 2 months

startedlinkchecker/linkchecker

started time in 2 months

push eventzackmdavis/Talks

Zack M. Davis

commit sha 28e7b613517a77c0c53feecb45d46054cedf8d0f

apply for !!Con West 2020! I didn't include the "... Structure of Cognition" alternate title in the application form because I don't want the hint that this is a sequel to my performance last year to possibly bias a reviewer who remembers my title from last year.

view details

push time in 2 months

push eventzackmdavis/Category_War

Zack M. Davis

commit sha 07adf9e98e2b054f6c1dd136132b10fd286fa2bd

remove comment-drafting file This repo is kind of a mess.

view details

Zack M. Davis

commit sha d6e1c6dca15abce861af06658e186afe87e4c498

check in

view details

Zack M. Davis

commit sha 37252b86efa2423332f0999ae4f6bed2a288fddf

working on "Funk-tunul's Legacy" This is really not what I'm supposed to be working on today!

view details

push time in 3 months

push eventzackmdavis/Category_War

Zack M. Davis

commit sha b3cca6c835744a35cfbf09419cdc6b876aa9d473

drafting "Funk-tunul's Legacy and ..."

view details

push time in 3 months

startedyevbar/advent-of-code

started time in 3 months

push eventzackmdavis/Category_War

Zack M. Davis

commit sha eb6d5917edbc1552a71cfe8326ef48e07e9920f8

drafting "Firming Up ..."

view details

push time in 3 months

push eventzackmdavis/Category_War

Zack M. Davis

commit sha f54e10856877ef852fdbe9d752b8e93ee899732f

check in

view details

Zack M. Davis

commit sha 229980ffae23dd806b9b076b39f4f77d19a1a219

drafting "... Surprisingly Useless"

view details

push time in 3 months

push eventzackmdavis/Category_War

Zack M. Davis

commit sha e2202b39e8d9b0c440a628f13ab1f61217b27a87

check in

view details

push time in 3 months

push eventzackmdavis/Category_War

Zack M. Davis

commit sha 564ce31b173cebf9beb7cf79e5cf0d78c800532c

check in These diffs were mostly just sitting there and aren't new.

view details

Zack M. Davis

commit sha fce679747efacc3ad46be02a47daca00ff71ac2a

review season comment drafting

view details

push time in 3 months

startednushell/nushell

started time in 3 months

pull request commentrust-lang/rust

let caller of check_ptr_access_align control the error message

r? @zackmdavis (not dead, just having a bad year)

I like the "Display impl on an enum specifies the finite set of error messages" strategy.

@bors r+ rollup

RalfJung

comment created time in 4 months

delete branch zackmdavis/HyTimer

delete branch : louder

delete time in 4 months

PR merged zackmdavis/HyTimer

Louder! (feat. xrefresh and notify-send)

I've been using my watch timer at my dayjob lately, but it's loud—no one has complained, but maybe they're just shy. Maybe this will suffice as a "visual bell" that I can trust to relieve me when it's time. (Distrusting the timer and feeling the need to pick at the time left is contrary to the method!)

+2 -0

0 comment

1 changed file

zackmdavis

pr closed time in 4 months

push eventzackmdavis/HyTimer

Zack M. Davis

commit sha ffa6b12342d8d35405c781a360669834523e3193

Louder! (feat. xrefresh and notify-send) I've been using my watch timer at my dayjob lately, but it's loud—no one has complained, but maybe they're just shy. Maybe this will suffice as a "visual bell" that I can trust to relieve me when it's time. (Distrusting the timer and feeling the need to pick at the time left is contrary to the method!)

view details

push time in 4 months

PR opened zackmdavis/HyTimer

Louder! (feat. xrefresh and notify-send)

I've been using my watch timer at my dayjob lately, but it's loud—no one has complained, but maybe they're just shy. Maybe this will suffice as a "visual bell" that I can trust to relieve me when it's time. (Distrusting the timer and feeling the need to pick at the time left is contrary to the method!)

+2 -0

0 comment

1 changed file

pr created time in 4 months

create barnchzackmdavis/HyTimer

branch : louder

created branch time in 4 months

issue commentrust-lang/rust

Broken suggestion for lint "hidden lifetime parameters in types"

Thanks for the report. This is a duplicate of #55768.

lzutao

comment created time in 4 months

push eventzackmdavis/Category_War

Zack M. Davis

commit sha 32a5192877fc4c1d657fa8b4bbc4fb2ed0deda3a

full draft of "Algorithms of Deception!" Probably give it another read-through and publish tomorrow evening?

view details

push time in 4 months

push eventzackmdavis/Category_War

Zack M. Davis

commit sha a312ff4961c46e5d52bffcfa319ff54a5fb613de

drafting "Algorithms of Deception!"

view details

push time in 4 months

pull request commentrust-lang/rust

Optimize `BitIter`

@bors r+

nnethercote

comment created time in 4 months

push eventzackmdavis/Category_War

Zack M. Davis

commit sha b23b7ca07bfdc1b7bc256e028cea92dd3ce58dac

capstone and edits to "Maybe Lying ..."

view details

push time in 4 months

push eventzackmdavis/Category_War

Zack M. Davis

commit sha 5e515777705880e226035e336781fe977183fe66

check in

view details

Zack M. Davis

commit sha 5ee1be877dcadfc3741d28188cdcd23b4abec1fe

drafting "Maybe Lying Doesn't Exist"

view details

Zack M. Davis

commit sha 64128fc489fa63715bb8c7b9f83a615f20d36278

check in notes

view details

push time in 4 months

push eventzackmdavis/Category_War

Zack M. Davis

commit sha 54da636e0882a4469d4304c03428902f537d58cf

drafting "Maybe Lying Doesn't Exist"

view details

Zack M. Davis

commit sha 3039dfd24d235ff06dfa5e5248cb71d2812d44ea

drafting "Maybe Lying Doesn't Exist"

view details

push time in 4 months

push eventzackmdavis/Category_War

Zack M. Davis

commit sha 9bbff4590b3bb8271af676444b727cfedbfec18e

finished "Heads I Win ..." It was very well-received!

view details

Zack M. Davis

commit sha 075087c8804cf495938011fd8e2621b9da23d5ab

check in

view details

Zack M. Davis

commit sha b246c9dd0393774ad404ea416d4c47a523bb9ea7

check in

view details

Zack M. Davis

commit sha 6c0a71cc77485434a10d664370e56186af0ff16c

Python code for "Algorithms of Deception!"

view details

Zack M. Davis

commit sha 343b808614280ab4ee401c3ee23534e4af924e01

drafting "Algorithms of Deception!"

view details

Zack M. Davis

commit sha 269caba59fc5a6dd8ec95e1dd6333912f4ac8407

check in

view details

push time in 4 months

issue commentgetsentry/sentry-python

sqlalchemy integration not working

Yes, we do a few tasks in a separate thread with this helper (where session is an imported scoped_session):

def run_in_thread(target, args=tuple(), kwargs=None):
    """
    Like threading.Thread(...).start(), except reports errors to Sentry and closes the database
    connection at the end.

    Necessary because the FlaskIntegration only reports errors that happen in the main thread, and
    our normal database connection cleanup happens on Flask AppContext teardown.
    """

    def run():
        try:
            target(*args, **(kwargs or {}))
        except Exception:
            if sentry:
                sentry_sdk.capture_exception()
            logging.exception("exception in task thread")
            raise
        finally:
            session.remove()

    thread = threading.Thread(target=run)
    thread.start()
    return thread
zackmdavis

comment created time in 4 months

issue openedgetsentry/sentry-python

sqlalchemy integration not working

The Sentry webapp recommended enabling the sqlalchemy integration, and I was eager to try it out, but it makes a bunch of our unit tests fail like this in _after_cursor_execute:

../../../.local/share/virtualenvs/webserver-UPOAulyH/lib/python3.7/site-packages/sentry_sdk/integrations/sqlalchemy.py:63: in _after_cursor_execute
    ctx_mgr.__exit__(None, None, None)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <contextlib._GeneratorContextManager object at 0x7f2b8a56c990>, type = None, value = None, traceback = None

    def __exit__(self, type, value, traceback):
        if type is None:
            try:
>               next(self.gen)
E               ValueError: generator already executing

Some sort of threading issue?? We're also using the Flask integration, if that's at all relevant.

created time in 4 months

pull request commentrust-lang/rust

Add lint and tests for unnecessary parens around types

(And, of course, if you find any cases that aren't fine to remove; that would be a bug in your lint change; I'll do my own audit of the TyKind variants once we have this building.)

jack-t

comment created time in 5 months

pull request commentrust-lang/rust

Add lint and tests for unnecessary parens around types

@jack-t Thanks! You can edit libcore/ and libstd/ as part of this PR. (It should be fine to remove those parens in Option<(&'a K)>, &c.)

jack-t

comment created time in 5 months

pull request commentrust-lang/rust

Disable stack probe when thread sanitizer is enabled

Not my bailiwick.

r? @alexcrichton

tmiasko

comment created time in 5 months

pull request commentrust-lang/rust

add more info in debug traces for gcu merging

Part of me was about to say, "Do we actually need this in master, if it was specifically for debugging this-and-such problem?" But if it's useful for the next person to look at this code, yes, sure; thanks.

@bors r+ rollup

andjo403

comment created time in 5 months

pull request commentrust-lang/rust

Avoid `SmallVec::collect`

Thanks! :sparkling_heart:

@bors r+

nnethercote

comment created time in 5 months

pull request commentrust-lang/rust

Do not ICE when dereferencing non-Copy raw pointer

r? @zackmdavis

@bors r+

estebank

comment created time in 5 months

startedbakkot/uuidv4-gen

started time in 5 months

PR closed zackmdavis/Leafline

Revert "Small locale"

Reverts zackmdavis/Leafline#30

+365 -886

1 comment

9 changed files

FoxLisk

pr closed time in 5 months

PR closed zackmdavis/Leafline

Performance work

i'm mostly stumped on how to squeeze any more speed out of this now, with the exception of rethinking the threading a lot, which sounds hard. but it should be quicker now!

compared to the branch this is intending to follow, im seeing ./leafline --correspond --depth 5 --from 'rnbqkbnr/pp1p1ppp/2p5/4P3/2P5/8/PP2PPPP/RNBQKBNR b KQkq - 0 3' all the way down to about 6s (from 13); depth 6 now takes about a minute (from >2).

+381 -118

2 comments

7 changed files

FoxLisk

pr closed time in 5 months

pull request commentzackmdavis/Leafline

Performance work

looks like this was included in #30?

FoxLisk

comment created time in 5 months

pull request commentzackmdavis/Leafline

Revert "Small locale"

FoxLisk

comment created time in 5 months

pull request commentzackmdavis/Leafline

Small locale

@FoxLisk It's actually probably better this way—for the health of the project! (I told you I would review #29 back in April, and I never got around to it, because I have been trash all year.)

FoxLisk

comment created time in 5 months

create barnchzackmdavis/Algorithms_of_Deception

branch : master

created branch time in 5 months

created repositoryzackmdavis/Algorithms_of_Deception

reducing lying, selective reporting, and category-gerrymandering to code

created time in 5 months

startedtuffylock/readyready

started time in 5 months

pull request commentrust-lang/rust

fix one typo

@bors r+ rollup

guanqun

comment created time in 5 months

push eventzackmdavis/Category_War

Zack M. Davis

commit sha 936dad9677c1e8ddb3fbd0743bdc3913f28f6d75

check in

view details

push time in 5 months

push eventzackmdavis/Category_War

Zack M. Davis

commit sha 2759ce3d7ff91bf2311b863dc0a1d3188710721d

drafting "Heads I Win ..."

view details

Zack M. Davis

commit sha fefdc0bb2e49a3deae78834f578d451fb2175eb5

filling in TODOs After plugging my network connection back in.

view details

push time in 5 months

push eventzackmdavis/USS_Uncommon_Priors_Require_Origin_Disputes

Zack M. Davis

commit sha 9998616c899e3123c5df1b0c77ffb54d4ee4591b

scenario selection

view details

push time in 5 months

startedkalix-systems/ictp

started time in 5 months

push eventzackmdavis/Category_War

Zack M. Davis

commit sha 0fe5ffe2c5f244a3cc2db5cf7210073011128429

check in

view details

push time in 5 months

pull request commentrust-lang/rust

Shrink `ObligationCauseCode`

@bors r+

nnethercote

comment created time in 5 months

pull request commentrust-lang/rust

Stabilize nested self receivers

(going through my review debt now; since Centril has already stepped up to comment in depth, I hope it's OK if I abdicate reviewer status on this one)

r? @Centril

cramertj

comment created time in 5 months

pull request commentrust-lang/rust

Be accurate on `format!` parse error expectations

@bors r+

estebank

comment created time in 5 months

pull request commentrust-lang/rust

Box `DiagnosticBuilder`.

Great! :sparkling_heart:

@bors r+

nnethercote

comment created time in 5 months

startednshepperd/gpt-2

started time in 5 months

push eventzackmdavis/Exercises_A

Zack M. Davis

commit sha 38dab066dfa9ebe4a8ed1572d18e6b8f0bedd586

consider

view details

push time in 5 months

push eventzackmdavis/Category_War

Zack M. Davis

commit sha 3775f33fc8e2733d4cb3931c7821ec6eee9e54d0

check in (old) changes to "Schelling Categories"

view details

Zack M. Davis

commit sha c20f14e370910dc70f340ee076e73209c6962599

drafting "Heads I Win ..."

view details

Zack M. Davis

commit sha 5dabaf5bc69ac7b4378e46a04b4168749f6fcf4e

links &c. in "Heads I Win ..."

view details

Zack M. Davis

commit sha fc4c1733f7a4d64252584fa4f9ac05c763647df0

drafting "Heads I Win ..." (after 1 full block) It's past noon and I've only done 1 pomodoro/work-block. Got to catch up! I have so much to create—so much pain to process, so that MAYBE I can do my goddamned job next week.

view details

Zack M. Davis

commit sha 7200b26c0159ef9b61c4efe8021d57e82f77aadd

epic footnote &c.

view details

Zack M. Davis

commit sha 573ddcc3ba30ae8bb593122d7c1a6dfff99f4595

drafting "Heads I Win ..." I just noticed that one of my assumptions is bonkers and will have to rewrite that paragraph (the punishment criterion can't be "less than 50% green", because it needs to be safe to mostly report gray rolls).

view details

Zack M. Davis

commit sha 64a5eba98b70082513368346ad387303c174f570

tidy up I don't have the interest level to finish this right now; I sent an email with the partial draft to a few folks

view details

push time in 5 months

startedRustPython/RustPython

started time in 6 months

more