Skip to content

[FR] Decouple progress frontend #400

@tkf

Description

@tkf

IIUC, due to Juno-specific check in @progress macro implementation, code using @progress can only work inside Juno:

Juno.jl/src/progress.jl

Lines 105 to 106 in 554707e

if isactive()
@logmsg($PROGRESSLEVEL, $(esc(name)), progress=0.0, _id=Symbol($_id))

The specification in Juno.progress docstring also does not specify that using LogLevel(-1) is crucial.

These are issues I noticed while writing a ProgressMeter-Logging bridge ProgressMeterLogging.jl and adding a frontend support in my package JuliaFolds/Transducers.jl#63. I think a cleaner solution may be having a base package with a spec and a reference implementation of frontend progress macros and functions.

What do you think? Is it a good approach to decouple progress logging interface (frontend API and specification documentation) from Juno?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions