You are not logged in.

#1 2025-04-02 23:59:27

fygar256
Member
From: Japan
Registered: 2023-03-03
Posts: 25
Website

Binary file editor like vI - 'bi'

I made a binary file editor named 'bi' (abbreviation of Binary file editor like vI)  for linux to mimic vi's interface at binary file.
There is a binary file editor whose user interface is similar to vi named 'bvi' made by Gerhard Buergmann in 1996 for linux but I wrote the first version of bi for MS-DOS in 1991 and uploaded onto ASCII-net in 1991. I was the first to do so.  I re-created bi  for linux today.
please see this link,evaluate it and report errors and bugs.
https://github.com/fygar256/bi
For Japanese, this link please see:
https://qiita.com/fygar256/items/d2ff41b96d2e6ab2bb68

Regards.

Last edited by fygar256 (2025-04-22 11:49:05)

Online

#2 2025-04-08 01:57:49

espresso
Member
From: Pale Blue Dot, US
Registered: 2023-05-15
Posts: 42

Re: Binary file editor like vI - 'bi'

Your code is so clean, it sparkles. big_smile
Supported operations worked flawlessly.

I am finding the other repos and information interesting as well (also having interests in C/++, python, and computing in general *edit: and nature*).

Thanks for sharing, and warm regards!

Last edited by espresso (2025-04-08 06:03:54)

Offline

#3 2025-04-09 00:39:58

fygar256
Member
From: Japan
Registered: 2023-03-03
Posts: 25
Website

Re: Binary file editor like vI - 'bi'

Thanks for evaluating. Your report is very appreciated.
I will write "complete" in the manual.
Regards.

Online

#4 2025-04-09 06:24:01

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,245
Website

Re: Binary file editor like vI - 'bi'

While the program may do what it claims to be doing and may be useful to some people, it's not for me.
Here are some things I observed:

1) No following PEP-8 (this is rather a minor inconvenience)
2) Use of globals
3) Some humongous functions
4) No type hints
5) No use of context managers

This all makes it hard to create a mental model of the program's state at any given point.


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#5 2025-04-09 07:42:54

fygar256
Member
From: Japan
Registered: 2023-03-03
Posts: 25
Website

Re: Binary file editor like vI - 'bi'

There are many insufficient point in this program, but No bugs it's ok. my python program skill is not sufficient,
I agree. But it just works. I want to write clean code. You can improve bi before you complain.
It's no good to be pigeonholed. Do not complain about the others's program. but thanks for your evaluation.

Last edited by fygar256 (2025-04-09 08:30:44)

Online

#6 2025-04-09 08:33:17

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,245
Website

Re: Binary file editor like vI - 'bi'

It was meant as a starting point for a potential code review, not a complaint.
It's up to you to decide whether to act on the issues I raised or to ignore them.
Given your reply to @espresso I assumed that you are open to feedback and critique.
If you just wanted to receive flattery, I apologise for the misunderstanding.


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#7 2025-04-09 08:38:04

fygar256
Member
From: Japan
Registered: 2023-03-03
Posts: 25
Website

Re: Binary file editor like vI - 'bi'

I don't want to hear flattery, I just don't want to hear nasty remarks. So I ignore them.

Last edited by fygar256 (2025-04-09 21:04:10)

Online

#8 2025-04-10 15:39:20

fygar256
Member
From: Japan
Registered: 2023-03-03
Posts: 25
Website

Re: Binary file editor like vI - 'bi'

I have reflected on this. I will take your opinion into consideration, Mr. schard.

Online

#9 2025-04-13 11:50:19

fygar256
Member
From: Japan
Registered: 2023-03-03
Posts: 25
Website

Re: Binary file editor like vI - 'bi'

I have made a major update and debug to bi. version 3.4.1 (complete) released.
https://github.com/fygar256/bi

Last edited by fygar256 (2025-04-26 15:00:24)

Online

#10 Yesterday 12:59:53

fygar256
Member
From: Japan
Registered: 2023-03-03
Posts: 25
Website

Re: Binary file editor like vI - 'bi'

Released bi 3.4.1.4 stable as an AUR package.
You can install bi like this: yay -S bi
Please use it.
Regards

Last edited by fygar256 (Yesterday 13:00:39)

Online

#11 Yesterday 13:14:26

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,614

Re: Binary file editor like vI - 'bi'

Please do NOT use that PKGBUILD. It does really bad things in that 'make' call.

Offline

#12 Yesterday 13:16:32

fygar256
Member
From: Japan
Registered: 2023-03-03
Posts: 25
Website

Re: Binary file editor like vI - 'bi'

Yes. I will rewrite it.
Thank you.

Online

#13 Yesterday 15:11:32

fygar256
Member
From: Japan
Registered: 2023-03-03
Posts: 25
Website

Re: Binary file editor like vI - 'bi'

I got rid of 'make' command. is that Okay?
Regards.

Last edited by fygar256 (Yesterday 16:08:17)

Online

#14 Yesterday 15:47:50

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,614

Re: Binary file editor like vI - 'bi'

That takes care of the show stopper, yes. There are plenty of other problems, but none of them fatal.

Last edited by Scimmia (Yesterday 16:52:48)

Offline

#15 Today 02:38:10

fygar256
Member
From: Japan
Registered: 2023-03-03
Posts: 25
Website

Re: Binary file editor like vI - 'bi'

If so, could you please explain in detail?

Online

#16 Today 06:47:09

fygar256
Member
From: Japan
Registered: 2023-03-03
Posts: 25
Website

Re: Binary file editor like vI - 'bi'

v3.4.2.0 stable released to AUR. everything is finished.
Please install bi and use it.

yay -S bi

Online

Board footer

Powered by FluxBB