question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

remove ZDM from parser

See original GitHub issue

Currently the parser uses ZDM internally, which got deprecated decades ago. While this is not a big deal for currently implemented sequence functions, it limits the expressiveness of newer or yet to come features, as a numercial 0 value is not possible.

ZDM should be removed from the parser logic and be replaced with appropriate default value handling on individual functions.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jerchcommented, Oct 22, 2021

@Tyriar I think this needs to be scheduled for v5, as it would need integrators hooking own sequences into xterm.js to be aware of the -1 case to still handle the default case correctly.

I would create a PR for it, that would have to wait for v5 then (similar to the sound PR draft, which is also a v5 thingy).

1reaction
jerchcommented, Oct 19, 2021

Well ZDM defaults empty params to 0, which has a certain meaning in the context of the called function (most functions map it to 1). This basically makes 0 as numerical value unusable, unless its default meaning is zero as well.

ZDM itself is a relic from very early terminals in the 70s with very limited parsing power, and got removed from the specs in the 80s. We kinda inherited that mode in the parser, as all functions we currently have implemented fit the ZDM model (and it makes the parser slightly simpler). But there are newer functions, that dont follow that scheme anymore, beside the discourage of the specs.

Removing ZDM does change a few things, but would not affect any of the existing functions. Involved changes:

  • map empty params to some other value in the parser than 0 (prolly -1, as it cannot be reached by normal means in a sequence)
  • fix all functions with ZDM behavior, so -1|0 again maps to the default (e.g. -1|0 => 1 for cursor sequences)

With these changes 0 now can mean zero, while the sequence has some from zero different default value. Its fixing that “definition hole” of ZDM.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Zero Downtime Migration – The Pro Tips - Databases Are Fun
First, you have to abort the existing job, before you can enter a new migration job. [zdmuser@zdmhost]$ $ZDM_HOME/bin/zdmcli abort job -jobid n.
Read more >
[ZDM]: How To Install And Uninstall Zero Downtime Migraton ...
This note explains the steps to install and uninstall Zero Downtime Migration Software. Details. Sign In. To view full details, sign in with ......
Read more >
Zero Downtime Migration (ZDM) – Logical Online Migration to ...
It configures and runs everything for you automatically to achieve (near) zero downtime while migrating your Oracle database to Oracle Cloud.
Read more >
Zero Downtime Migration - DBA Knowledge Base
During testing Oracle ZDM (Zero Downtime Migration), I've stopped ZDM host ungracefully. After that zdmservice was not able to start:
Read more >
Windows ZDM Frequently Asked Questions (FAQ)
To remove Windows ZDM you need access the device itself. Locate your Settings, then click About, click Connect to work or school, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found