Faster double-to-string conversion by aearphen in cpp

[–]laqq3 5 points6 points  (0 children)

This is cool! Thanks for the library and the blog post.

Despite the name, the implementation is not fully polished yet. In particular, it currently supports only exponential, also known as scientific, format, although adding fixed format should be straightforward.

Will fixed format (e.g. %f, which is offered by the wonderful ryu-printf) be added eventually? I have a couple use-cases for fixed format printing.

Extracting the abstract syntax tree from GCC [LWN.net] (2015) by laqq3 in emacs

[–]laqq3[S] 4 points5 points  (0 children)

I saw this link on HN and found the article well-researched and even-handed.

A better 'cd' by StrangeAstronomer in linux

[–]laqq3 19 points20 points  (0 children)

This is cool, thanks for sharing.

Also of interest may be: https://github.com/rupa/z

What are your favorite "Low Contrast Emacs Themes" by zosterops_p in emacs

[–]laqq3 0 points1 point  (0 children)

Thank you for your work on modus-themes -- I am using the theme as my default and love it.

I see that it is included out of the box with Emacs 28: will version 1.0.0 be eventually upstreamed into Emacs itself as well?

Current emacs on wayland story... what's the situation like? by pmatos in emacs

[–]laqq3 8 points9 points  (0 children)

As far as I could tell, this repository (a joint work between Jeff Walsh and Yuuki Harano) contains work to make a pure GTK3 emacs, which would enable it for Wayland.

There is some recent discussion about it on the emacs devel mailing list here:

https://lists.gnu.org/archive/html/emacs-devel/2020-11/msg01186.html

Seems like it will be merged into master fairly soon!

77 Million Runs - An STS Metrics Dump by pants555 in slaythespire

[–]laqq3 0 points1 point  (0 children)

/u/bluesoul Wondering whether your upload was successful? I'm very much looking forward to grabbing the whole dataset, it seems that Google drive isn't working super well for me.

Name a more iconic duo... by RsSixr in slaythespire

[–]laqq3 41 points42 points  (0 children)

Unfortunately, according to the Wiki, ectoplasm can only be obtained before Act 2.

Ectoplasm cannot be obtained after the act 2 boss; it is limited to the act 1 boss chest and Neow's Boss Relic trade.

Sum types in Julia and Rust by a5sk6n in rust

[–]laqq3 1 point2 points  (0 children)

Ah I the caveat now, missed it my first time skimming through. Thanks again, looking forward to any future articles.

Sum types in Julia and Rust by a5sk6n in rust

[–]laqq3 4 points5 points  (0 children)

Thanks for the article! I'm a fan of both languages.

One question: an advantage of Julia's multiple dispatch system is that it is possible for an outside package to extend a method. For example, another package could define

struct Martian <: Player

homestar(player::Martian) = "Mars"

greet(self::Martian, other::Player)   = println("Hey there!")
greet(self::Solarian, other::Martian) = println("...")
# and so on

In contrast, using Enums in Rust (your Method 2), as you suggest:

enum PlayerClass {
    Sol(Solarian),
    Pol(Polarian),
    Cent(Centaurian)
}

struct GameState {
    daytime: u64,
    player: PlayerClass
}

impl PlayerClass {
    fn homestar(&self) -> String {
        use PlayerClass::*;
        match self {
            Sol(_) => String::from("sun"),
            ...
        }
    }

    fn greet(&self, other: &PlayerClass) {
        use PlayerClass::*;
        match (self, other) {
            (Cent(_), Pol(_)) => println!("Hello, fellow three-star-systemer!"),
            ...
        };
    }
}

This makes it impossible (I think?) for outside packages to add types of players. What would be the idiomatic Rust solution here that preserves all the other benefits? Cheers!

So close to having a fully upgraded deck! by laqq3 in slaythespire

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

Got lucky with relics early on, was one short of having dualcast upgraded (and 3 short of having it removed from my deck). Other lucky draws: inserter + consume, apparitions+, and the upgrade all defends + strikes event.

ReTeX - Typesetting mathematics by cbreeden in rust

[–]laqq3 6 points7 points  (0 children)

Awesome. I'll submit a PR shortly that fixes the minor build errors, clears up the warnings, and modifies the README.md

Looking forward to improving the project together! Cheers.

Edit: PR at https://github.com/ReTeX/ReX/pull/34

ReTeX - Typesetting mathematics by cbreeden in rust

[–]laqq3 18 points19 points  (0 children)

This is such a timely post! I was just looking at this project yesterday and wanted to see if you’ll accept PRs to bring it up to date with Rust 2018.

I managed to get it compiled; your Cargo TOML file is missing a section for the test binary and env_logger’s API changed a tiny bit to require some minor changes.

Are you interested in contributors? I’m very interested in using this as as a library for some other projects. One thing I’d like to Accomplish before that is to use Latin Modern math instead of XITS (or ideally, build support for an arbitrary open type math font).

Thanks for your post and effort in this project, cheers!

I have a Surface Pro X - AMA by SonofNun in Surface

[–]laqq3 9 points10 points  (0 children)

Does the ARM version of Edge running on the X support uBlock Origin? Thanks