Author Topic: MBC  (Read 425 times)

Offline John

  • Forum Support / SB Dev
  • Posts: 2345
    • ScriptBasic Open Source Project
Re: MBC
« Reply #30 on: December 24, 2018, 06:27:21 PM »
I wonder if there is a free Gitlab plug-in to support interfacing with foriegn repos? Hard to believe this hasn't been address already by the community.

Offline John

  • Forum Support / SB Dev
  • Posts: 2345
    • ScriptBasic Open Source Project
Re: MBC
« Reply #31 on: December 24, 2018, 06:39:13 PM »

Offline AIR

  • BASIC Developer
  • Posts: 504
Re: MBC
« Reply #32 on: December 24, 2018, 06:50:40 PM »
If you're willing to get your hands dirty, you could probably set up an hourly cron job that will periodically do a git pull/fetch for a given (or several of the) repo's.

Hell, you could write a script in SB to do it, and just schedule it with cron.  The alternative would be a Bash/Python/Ruby script, or some compiled binary.

All you would need to do in the script is CD into the repo root, and issue the appropriate git command.

This is all theoretical, I'm not sure if GitLab does something funky with the repo's.

A good way to test is to use a repo you control on, say, GitHub and mirror it in GitLab.  Then set up what I've suggested above.  Then make a change in the GitHub repo, and see if the change is reflected in GitLab (after the update period you set up in the cron job, of course).

Unlike modifying the GitLab code, this shouldn't violate their TOS since a git repo is a git repo in the end....they just make it simple for the terminal-challenged.

AIR.

Offline AIR

  • BASIC Developer
  • Posts: 504
Re: MBC
« Reply #33 on: December 24, 2018, 06:54:19 PM »
How to properly mirror a git repository

This only references mirroring, it doesn't address keeping that mirror in sync automatically....

For me, git pull and git fetch/git branch (for getting local access to the upstream branches) are all I need to get what I want.

Offline AIR

  • BASIC Developer
  • Posts: 504
Re: MBC
« Reply #34 on: December 24, 2018, 06:59:46 PM »
This is probably what you want to look at:  https://help.github.com/articles/syncing-a-fork/

Offline John

  • Forum Support / SB Dev
  • Posts: 2345
    • ScriptBasic Open Source Project
Re: MBC
« Reply #35 on: December 24, 2018, 07:17:10 PM »
Am I correct to assume the version of MBC in the sandbox it tuned for Linux where the original is a Mac branch?

Offline AIR

  • BASIC Developer
  • Posts: 504
Re: MBC
« Reply #36 on: December 24, 2018, 08:25:58 PM »
Look at the commit message for the mbc4.cc file.

Best to use the provided Makefile, then copy the final binary to a location on your path.
« Last Edit: December 24, 2018, 08:28:57 PM by AIR »

Offline John

  • Forum Support / SB Dev
  • Posts: 2345
    • ScriptBasic Open Source Project
Re: MBC
« Reply #37 on: December 24, 2018, 09:55:09 PM »
You said you where looking for feedback so here it is.

Can you do an IUP example in MBC that covers the basics?

Offline AIR

  • BASIC Developer
  • Posts: 504
Re: MBC
« Reply #38 on: December 24, 2018, 10:02:21 PM »
When IUP works natively on macOS....remember, my Dev systems are macOS...

Offline John

  • Forum Support / SB Dev
  • Posts: 2345
    • ScriptBasic Open Source Project
Re: MBC
« Reply #39 on: December 24, 2018, 10:32:28 PM »
I think you're missing an opertunity to attract the Linux crowd.

Joe (BigFish) from the BaCon group is what you need to make MBC shine on Linux. He would be a good sandbox member to have as well.
« Last Edit: December 24, 2018, 10:36:19 PM by John »

Offline AIR

  • BASIC Developer
  • Posts: 504
Re: MBC
« Reply #40 on: December 24, 2018, 10:53:47 PM »
I think you're missing an opertunity to attract the Linux crowd.

Linux has many viable options already, macOS only has PureBasic/RealBasic, and to a lesser degree BlitzBasic.  Of the three, only RealBasic accomplishes what I want from a GUI perspective, but at a cost of a ~12MB runtime per app (plus it ain't free).  So that's my focus.

To be completely honest, MBC pisses me off constantly.  I keep having to fix legacy crap from it's Windows BCX C roots.  That's why I've been adding stuff to JADE recently, because a C++/ObjC++ direction using the Cocoa Framework is where I'm heading....

<RANT>

        BTW, F*** SWIFT.  I have to use so much ObjC code to do stuff, it's not worth the effort.

</RANT>

AIR.

Offline John

  • Forum Support / SB Dev
  • Posts: 2345
    • ScriptBasic Open Source Project
Re: MBC
« Reply #41 on: December 25, 2018, 12:01:21 AM »
Makes for exciting times here on the forum. I like the variety and different approaches languages/developers take to solve the same task.

Offline John

  • Forum Support / SB Dev
  • Posts: 2345
    • ScriptBasic Open Source Project
Re: MBC
« Reply #42 on: December 25, 2018, 07:33:15 PM »
I personally would like to see JADE be the project of interest. It could help with extending C BASIC. I'm planning on pushing the Script BASIC extension modules I wrote which most were done using C BASIC.

I wonder where James Fuller is with his version of BCX?
« Last Edit: December 25, 2018, 09:14:02 PM by John »