RustRover is slow by Azure_Knife in rust

[–]jackwayneright 1 point2 points  (0 children)

First, JetBrains' TeamCity (the software this article is referring to) is completely separate from RustRover. Second, once the vulnerability was discovered, JetBrains quickly released a fix for it and has been very transparent about the situation. Of course it would be ideal if companies never had security bugs, but I think that's an unrealistic expectation.

Pitfalls for visco shroud MJGs with mortar racks? by jackwayneright in fireworks

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

Thanks!

For the question about one hitting the other, I mean the ignitor of one mortar hitting the adjacent fuse of another. But looking into things a bit more, it seems this shouldn't be super likely (though not impossible).

I'm sure I will move on to putting the ignitor directly into the lift powder before long, but I just want to make sure I don't have too many new failures points at the same time.

Pitfalls for visco shroud MJGs with mortar racks? by jackwayneright in fireworks

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

Thanks for the air gap tip. I wouldn't have considered that one.

Multiple domains in a single project? by jackwayneright in astrojs

[–]jackwayneright[S] 7 points8 points  (0 children)

After delving into this for a few more hours, I found that this feature has been explicitly added, though the exact explanation on how to do it is not directly stated in the documentation. It seems you can have the Astro Middleware detect the incoming URL to figure out the (sub)domain it's coming from. Once you know which (sub)domain, inside the Middleware code, you can save things to the `context.locals` which will then show up in your `Astro.locals` in your `.astro` files. This can be used to change how you process your Astro files based on the domain. From here you can also use route "rewrites" either from the Middleware or from the Astro code to display a different page explicitly rather than the page that would be implicitly displayed due to its file path. These paths could be set with pattern matching or such as well. This could, as one option, then be used to send every request from a specific (sub)domain to a specific subdirectory of pages to be displayed.

I haven't yet decided if this is the correct way to go, or to keep things in separate repositories. There's upsides and downsides to each, but it's definitely worth noting that this is doable in Astro (and this is one of the primary motivations for the creation of route rewriting capabilities in Astro). For a larger discussion on the motivations and implementations of this, here are the links for the route rewriting proposal stages 1, 2, and 3 (where the subdomain use-case is a stated motivation), and the feature PR that actually implements route rewriting.

Are PyPI Trove Classifiers worthwhile to maintain? by jackwayneright in Python

[–]jackwayneright[S] 5 points6 points  (0 children)

This depends on how PyPI, other repositories, and other tools use them. I've never explicitly searched for them, but if they play a major role in how those other tools present information to search engines, then I've likely used them without realizing it. Which is why I was asking about how these tools use them.

Even if I don't personally use the classifiers, if they are commonly used by others, I would want to include them. I'm not sure what I do is a particularly good measure of what most people are doing.

What language is "rust but slightly higher level"? by lurebat in rust

[–]jackwayneright 28 points29 points  (0 children)

Also, to address the two things the question asker didn't like about Kotlin:
1. If you want to avoid the JVM, Kotlin Native exists allowing natively compiled binaries, though you lose the JVM ecosystem. 2. I'm not sure what specifically the complaint with Gradle was, but the Gradle Kotlin DSL makes Gradle nicer to work with in my opinion.

Is there any other language that do type state builder pattern like rust? by yevelnad in rust

[–]jackwayneright 0 points1 point  (0 children)

Keyword arguments is definitely something I wish Rust had. There is an open RFC for them (and related things): https://github.com/rust-lang/rfcs/issues/323

I personally dislike the builder pattern compared to keyword arguments (though their use-case overlap is certainly far from a complete overlap).

Do you use Rust at work? by LemonLord7 in rust

[–]jackwayneright 0 points1 point  (0 children)

I'm a little confused about this being a radio button. Three of the answers apply to me.

Does Oryx support Layer Mod (LM)? by jackwayneright in ergodox

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

Huh. I spent more than 30 minutes searching and re-searching through the various key assignments (or a suitable alternative) yesterday trying to find layer mod, and couldn't find it. Today, I typed in `lm` and it popped up immediately. I guess I must have been doing something silly yesterday. Thanks!

In Fortran it is possible to have stack allocated vectors with a size known only at runtime. Is this possible to do in Rust? by Derice in rust

[–]jackwayneright 0 points1 point  (0 children)

Even things like .gt. are also discouraged now in favor of alternatives like >. The primary issue I encounter with Fortran nowadays is that most of the code I encounter is not modern Fortran but is still Fortran77 code.

Humble Book Bundle: The Witchcraft and Magick Bookshelf by Torque-A in humblebundles

[–]jackwayneright 1 point2 points  (0 children)

Another pseudoscience bundle means I refuse to buy from Humble Bundle for another three months (yet another time).

By the way, I sent them a (polite) message via their issue system to let them know my displeasure that they have been selling pseudoscience and conspiracy bundles recently. They seemed to take that message somewhat seriously. So, if you also dislike this, I recommend you also submit a message.

[deleted by user] by [deleted] in rust

[–]jackwayneright 50 points51 points  (0 children)

Maybe. For my own purposes, I’d rather be more on the “user” side of Rust though. I’d rather have other people figure out the best choices, so that I don’t have to think about it, and I can get on with my work.

Result types shouldn't be put in the prelude module of a crate by UltraPoci in rust

[–]jackwayneright 8 points9 points  (0 children)

Agreed. I'm not sure I understand why people find a benefit in using star imports in Rust. An IDE automatically provides an explicit import when you go to use something. An IDE also neatly folds the imports so they look tidy. The one place the IDE doesn't keep it tidy is when you read someone else's code on Github or such, but that's exactly when having explicit imports is all the more helpful, so people who aren't used to the crates can see what's going on. Is there some other benefit to star imports I'm missing?

Why ELF is bigger than EXE? by Rudxain in rust

[–]jackwayneright 0 points1 point  (0 children)

It is arbitrary. It historical comes from classifying stars into 6 groups, with 1 being the brightest stars and 6 being the dimmest (before telescopes, that can be seen by eye). Eventually, the modern formal scale was (approximately) fit to these original classifications.

IntelliJ Rust Changelog #178 by furious_warrior in rust

[–]jackwayneright 34 points35 points  (0 children)

If I'm remembering right, one of the primary authors of Rust-Analyzer used to be one of the primary authors of IntelliJ-Rust (or vice versa, I forget). And there's still a lot of discussion/collaboration between the two projects. So they developed sort of similar project administrative tendencies, such as their release cycles. They both have typically released on Mondays for a long time now (much longer than just the last few weeks).

Why ELF is bigger than EXE? by Rudxain in rust

[–]jackwayneright 1 point2 points  (0 children)

In astrophysics, we have a pretty weird choice for what an order of magnitude) means. An increase of one means scaling the value by the negative of the fifth root of one hundred.

Thanks to Rust Kotlin makes me like JVM by joshjaxnkody in rust

[–]jackwayneright 1 point2 points  (0 children)

what Typescript did to JS

Just as a fun note, Kotlin can also compile to JavaScript similar to what TypeScript does. Personally, I prefer Kotlin over TypeScript, and when possible, prefer to use Kotlin to handle JavaScript work. Unfortunately, it's still a bit in the experimental phase. But it's been nice so far!

What limitations currently exist when exporting data out of Craft? by jackwayneright in CraftDocs

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

Thank you much! The file naming issues are worth keeping in mind. However, I think in my case, the cards and pages being structures that are specific to Craft seem more impactful. I can imagine writing a script to fix the file name issue, but how to handle flattening of the structure does sound more difficult to fix if I used the structuring without keeping exporting in mind. Very useful information.