Code Monkey home page Code Monkey logo

Comments (26)

cormullion avatar cormullion commented on June 8, 2024 2

Nice job. A version in black could look cool:

juliaperformance-black

from benchmarktools.jl.

gdalle avatar gdalle commented on June 8, 2024 2

I am hereby tempting you

from benchmarktools.jl.

gdalle avatar gdalle commented on June 8, 2024 2

You gave in to temptation

from benchmarktools.jl.

gdalle avatar gdalle commented on June 8, 2024 2

@cormullion, casually renaming core packages since 2023

from benchmarktools.jl.

ararslan avatar ararslan commented on June 8, 2024 2

Alright, replaced with the updated one 👍

from benchmarktools.jl.

gdalle avatar gdalle commented on June 8, 2024 1

juliaperformance

Done with the following code:

using Luxor

JULIA_COLORS = [Luxor.julia_blue, Luxor.julia_green, Luxor.julia_red, Luxor.julia_purple]

function main()
    Drawing(500, 500, "/tmp/juliaperformance.svg")
    origin()
    squircle(O, 250, 250, :clip, rt=0.3)
    sethue("white")
    paint()

    @layer begin
        translate(0, 200)
        rmin = 150
        rmax = 260
        band = 40

        for n in 1:4
            setblend(blend(O - (240, 0), O + (240, 0), "white", JULIA_COLORS[n]))
            sector(O,
                rescale(n, 1, 3, rmin, rmax),
                rescale(n, 1, 3, rmin, rmax) + band,
                3π / 2 - deg2rad(45), 3π / 2 + deg2rad(45),
                :fill)
        end

        sethue("white")
        setline(25)
        line(O, polar(400, deg2rad(290)), :strokepreserve)
        setline(14)
        sethue("black")
        strokepath()
        circle(O, 30, :fill)
    end

    finish()
    preview()
end

main()

from benchmarktools.jl.

cormullion avatar cormullion commented on June 8, 2024 1

Oops - I completely overlooked that mistake ... 😱 I'll redo it tomorrow if that's OK...

from benchmarktools.jl.

gdalle avatar gdalle commented on June 8, 2024 1

I hope to not see GraphsNext.jl ...

You just gave me nightmares.

But if all goes well you may not even need to see MetaGraphs(Next).jl ever again

from benchmarktools.jl.

ararslan avatar ararslan commented on June 8, 2024

Love it! Where are you thinking the logo should go? The repository settings allow you to provide an image as a "social media preview" but I have no idea what that actually means. We could add it to the README.

from benchmarktools.jl.

cormullion avatar cormullion commented on June 8, 2024

The "social media preview" is the image you get when people link to your site on those social media sites I hear so much about (do people still use Twitter?😱😀), usually a biggish rectangular image.... if there isn't one in settings you get (I think):

Screenshot 2023-06-14 at 17 59 04 copy

You'd probably need to make something bigger than a logo (eg https://github.com/cormullion/Karnak.jl )

Sometimes there's a place for icon + link: eg on the Julia home page:

Screenshot 2023-06-14 at 18 00 50

Then there's the Documenter documentation - which has options to show and switch between light and dark mode logos.

from benchmarktools.jl.

gdalle avatar gdalle commented on June 8, 2024

Yeah I was thinking social media preview + docs, and possibly readme. The only issue with the readme is that you can't adapt to the light/dark theme?

from benchmarktools.jl.

cormullion avatar cormullion commented on June 8, 2024

You can:

JuliaLang/julia#49544

  • especially if Kristoffer approves of it 😛

from benchmarktools.jl.

gdalle avatar gdalle commented on June 8, 2024

I don't have access to the repo settings for the social media preview. @vchuravy gimme the power?

from benchmarktools.jl.

gdalle avatar gdalle commented on June 8, 2024

Does anyone know why the Readme logo fails to show up?

from benchmarktools.jl.

cormullion avatar cormullion commented on June 8, 2024

line 1 of readme doesn’t look like HTML code?

from benchmarktools.jl.

gdalle avatar gdalle commented on June 8, 2024

line 1 of readme doesn’t look like HTML code?

Right, I tried to put the logo next to the title and it worked in the markdown preview of VSCode so I didn't think twice

from benchmarktools.jl.

ararslan avatar ararslan commented on June 8, 2024

I can add the social media preview. Looks like the images here are square but the section in the settings says:

Images should be at least 640×320px (1280×640px for best display).

Indeed, putting the square one in there crops the height to fill the width. Does someone want to make a wide version?

from benchmarktools.jl.

cormullion avatar cormullion commented on June 8, 2024

don’t tempt me …

from benchmarktools.jl.

cormullion avatar cormullion commented on June 8, 2024

benchmarks-social-media-preview

from benchmarktools.jl.

ararslan avatar ararslan commented on June 8, 2024

Apologies for the delay. The fruit of @cormullion's temptation has been set as the social media preview. What's left to consider this issue complete? Adding the logo to the Documenter styling?

from benchmarktools.jl.

gdalle avatar gdalle commented on June 8, 2024

The logo is already in the docs so we can probably close. I'm still a bit confused as to what "Benchmarks.jl" stands for in the social media preview though, isn't it a little misleading regarding the actual name of the package?

from benchmarktools.jl.

cormullion avatar cormullion commented on June 8, 2024

haha - well it really should be Benchmarks, but it superseded an older package with that name already taken, hence the Tools. The rich texture of history ... 😀

from benchmarktools.jl.

gdalle avatar gdalle commented on June 8, 2024

Honestly that's half of the reason why I work so hard to make Graphs.jl succeed, it's cause we finally have the right name 🤣

from benchmarktools.jl.

cormullion avatar cormullion commented on June 8, 2024

I hope to not see GraphsNext.jl ...

from benchmarktools.jl.

cormullion avatar cormullion commented on June 8, 2024

benchmarks-social-media-preview

from benchmarktools.jl.

gdalle avatar gdalle commented on June 8, 2024

@ararslan here we go ^^

from benchmarktools.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.