profile
viewpoint

camsteffen/kenny 3

A KenKen puzzle generator and solver

camsteffen/alacritty 0

A cross-platform, GPU-accelerated terminal emulator

camsteffen/alpha_vantage 0

A python wrapper for Alpha Vantage API for financial data.

camsteffen/angular 0

One framework. Mobile & desktop.

camsteffen/angular_components 0

The official Material Design components for AngularDart. Used at Google in production apps.

camsteffen/bash-git-prompt 0

An informative and fancy bash prompt for Git users

camsteffen/bromite 0

Bromite a Chromium fork with ad blocking and privacy enhancements; take back your browser!

camsteffen/CanCan 0

A solver and generator of KenKen puzzles

camsteffen/cfg-if 0

A if/elif-like macro for Rust #[cfg] statements

GollumEvent

issue openeddirenv/direnv

`direnv edit` does not recognize `$VISUAL` variable

Describe the bug When I run direnv edit, I see $EDITOR not found. and it opens TextEdit.

To Reproduce Run direnv edit with $EDITOR unset and $VISUAL set (e.g. to vim)

Expected behavior The editor specified by $VISUAL is used to edit .envrc

Environment

  • OS: macOS
  • Shell: zsh
  • Direnv version 2.32.2

Additional context I expect this to be consistent with git config --edit, for example. I can't think of other examples, but I believe only having VISUAL set has worked out for me for other tools and direnv is the first tool to require EDITOR.

created time in 10 days

issue openedaws/aws-sdk-ruby

Feature: Allow QueuePoller to be interrupted from another thread

Describe the feature

There should be a way to cleanly stop/interrupt QueuePoller from another thread. It should immediately abort pending poll requests, but if the poll callback is executing, it should wait for that to complete before returning.

Use Case

I would to write code like Signal.trap("INT") { poller.stop }, so that I may use Ctrl+C to interrupt a daemon script that is polling SQS with QueuePoller.

Proposed Solution

The QueuePoller could have a method stop that can be invoked from any thread. If a call to poll is awaiting an SQS poll request, the request will be immediately aborted and poll will return normally. If poll is executing the callback when stop is invoked, then it will wait until the callback returns and then poll will return without making further poll requests.

Other Information

No response

Acknowledgements

  • [X] I may be able to implement this feature request
  • [ ] This feature might incur a breaking change

SDK version used

3.1.0

Environment details (OS name and version, etc.)

macOS

created time in 25 days

delete branch camsteffen/simplecov

delete branch : patch-1

delete time in a month

issue commentpuma/puma

Puma threads deadlock when multiple simultaneous requests

@saudraisn Did you ever figure this out? I'm experiencing a very similar issue.

saudraisn

comment created time in 2 months

pull request commentrust-lang/rust

Uplift `clippy::{drop,forget}_{ref,copy}` lints

Should the "ref" and "copy" lints be collapsed? Refs are Copy.

Urgau

comment created time in 2 months

Pull request review commentrust-lang/rustfmt

Implement `let-else` formatting

 fn main() {-    let Some(1) = Some(1) else { return };+    // Although this won't compile it still parses so make sure we can format empty else blocks+    let Some(x) = opt else {};++    // let-else may be formatted on a single line if they are "short" and only contain a single expression+    let Some(x) = opt else { return };++    let Some(x) = opt else { return; };++    let Some(x) = opt else {+        // nope+        return;+    };

In particular, struct patterns, tuples and arrays can raise some unique formatting concerns.

ytmimi

comment created time in 2 months

PullRequestReviewEvent

Pull request review commentrust-lang/rustfmt

Implement `let-else` formatting

 fn main() {-    let Some(1) = Some(1) else { return };+    // Although this won't compile it still parses so make sure we can format empty else blocks+    let Some(x) = opt else {};++    // let-else may be formatted on a single line if they are "short" and only contain a single expression+    let Some(x) = opt else { return };++    let Some(x) = opt else { return; };++    let Some(x) = opt else {+        // nope+        return;+    };

I think there's a missing case of

let Some(x) = opt else {
    return
}

Also I don't see any examples with long patterns after let. Probably good to add variation to the types of patterns in general.

ytmimi

comment created time in 2 months

PullRequestReviewEvent

pull request commentrust-lang/team

Remove camsteffen from clippy team

r? @Manishearth ?

camsteffen

comment created time in 3 months

PR opened rust-lang/team

Remove camsteffen from clippy team

I haven't been contributing for a while now so I think it's time. It's been fun!

+1 -1

0 comment

1 changed file

pr created time in 3 months

push eventcamsteffen/team

Cameron Steffen

commit sha 5c9586733734f6f4f962e1715ac95aecbb1eda34

Remove camsteffen from clippy team

view details

push time in 3 months

PR closed rust-lang/rust

Resolve lang items in AST T-rustdoc T-compiler T-bootstrap S-blocked A-translation

Based on #103603

Lang items can be resolved in the AST rather than the HIR. And then any HIR structures referencing LangItem can be replaced with their "normal" couterpart. Specifically QPath::LangItem and GenericBound::LangItemTrait are factored out.

Best reviewed commit-at-a-time.

+855 -1022

21 comments

88 changed files

camsteffen

pr closed time in 3 months

pull request commentrust-lang/rust

Resolve lang items in AST

Closing (for now) since I haven't had time for rust for a long while 😢

camsteffen

comment created time in 3 months

PR closed rust-lang/rust

Make typeck aware of uninhabited types A-testsuite S-waiting-on-author disposition-merge finished-final-comment-period perf-regression T-types

It was previously assumed in #85556 that we can't check if an expression has an uninhabited type in typeck. So an unreachable_code case was added to the liveness pass instead. This PR moves that case back into typeck. It just requires adding cycle_delay_bug to the uninhabited query.

Incidentally this leads to some new cases for unreachable_code. But it should simply be consistent with how ! is currently handled.

My original motivation is to remove a blocker to doing some refactoring on liveness.

r? rust-lang/compiler

+682 -274

82 comments

35 changed files

camsteffen

pr closed time in 3 months

pull request commentrust-lang/rust

Make typeck aware of uninhabited types

Unfortunately I haven't had much time for rust lately. @cjgillot PM'ed me and offered to take over here. I'm just going to close this PR.

camsteffen

comment created time in 3 months

issue commentrust-lang/rust

Tracking issue for `Option::contains` and `Result::contains`

@BrianLondon, @soc is just quoting earlier comments in this thread where they got into a squabble with another individual, so no need to worry about that. Generally the community is welcoming to different perspectives.

Centril

comment created time in 3 months

more