LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-30-2020, 11:49 PM   #1
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,416
Blog Entries: 43

Rep: Reputation: 36
My First Primary OS Goal


Here's what I want to do:

Step 1. Finish language. PNF and related tools.

When testing them I was unsure of the liscence. But I ended up using gpl for production copies. Found at http://smileynet001.ddns.net:81/~pnf. As of writing, website is down. Need to get back up.

Step 2 - Test on Linux.

Step 3 - Build Linux from scratch. Modify init to call my pnf program with bootloader file as parameter. boot.pnf

Step 4 - write bootloader code to jump to kernel

Step 5 - Write kernel


Tell me what you think of plans, please.
 
Old 05-31-2020, 07:38 AM   #2
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,598

Rep: Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691
Quote:
Originally Posted by des_a View Post
Here's what I want to do:

Step 1. Finish language. PNF and related tools.

When testing them I was unsure of the liscence. But I ended up using gpl for production copies. Found at http://smileynet001.ddns.net:81/~pnf. As of writing, website is down. Need to get back up.

Step 2 - Test on Linux.

Step 3 - Build Linux from scratch. Modify init to call my pnf program with bootloader file as parameter. boot.pnf

Step 4 - write bootloader code to jump to kernel

Step 5 - Write kernel


Tell me what you think of plans, please.
That makes clear some steps, but not your real goal. Am I understand that your real goal is to create a new programming language or compiler and then migrate Linux source to that new language or compiler and compile and test the migrated Linux kernel?
 
Old 05-31-2020, 01:36 PM   #3
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,416

Original Poster
Blog Entries: 43

Rep: Reputation: 36
How's this:

1st Real Goal - Finish creating language

2nd Real Goal - Use language to create itself when powerful enough

3rd Real Goal - Create a new OS using language
 
Old 06-01-2020, 04:17 AM   #4
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,597

Rep: Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545

Is this a pure learning exercise, or do you foresee other people using your language and/or operating system?

 
Old 06-02-2020, 10:42 PM   #5
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,416

Original Poster
Blog Entries: 43

Rep: Reputation: 36
I hope that other people would begin to use my language. And I hope the two most common uses would be writing new languages and operating systems.
 
Old 06-03-2020, 12:24 AM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Good luck - especially as how long it took google to finally get Fuchsia out the door.

Sounds to me you are diving in the deep end.
 
Old 06-03-2020, 12:46 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,804

Rep: Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306Reputation: 7306
Quote:
Originally Posted by des_a View Post
I hope that other people would begin to use my language. And I hope the two most common uses would be writing new languages and operating systems.
Why do you think we need more languages and operating systems? Can you offer something really "amazing"?
 
Old 06-24-2020, 05:39 AM   #8
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,416

Original Poster
Blog Entries: 43

Rep: Reputation: 36
So far, it is unique. It has multiple types of on the PC, what would be called interrupts. Also it's functions have multiple return values if needed.

Also, this is the start of a super language which will be used to create a compiler that takes English as it's input. My final language goal is to be able to program by voice command. An os or whatever.
 
Old 06-24-2020, 07:43 AM   #9
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,598

Rep: Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691Reputation: 2691
What classes have you taken in compiler construction?Are you using any standard compiler construction tools? Have you experience in language creation and railroad logic? Have you a definition for your language, or are you still defining the syntax diagrams?
 
Old 06-25-2020, 01:27 AM   #10
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by des_a View Post
So far, it is unique. It has multiple types of on the PC, what would be called interrupts. Also it's functions have multiple return values if needed.

Also, this is the start of a super language which will be used to create a compiler that takes English as it's input. My final language goal is to be able to program by voice command. An os or whatever.
That is so cool. Where is it? I want to see it and test it, and tell people to contribute!
 
Old 06-27-2020, 09:56 AM   #11
z80
Member
 
Registered: Jul 2019
Location: Europe
Distribution: Slackware64-current
Posts: 135

Rep: Reputation: 99
Looks like he's reinventing Forth.
 
Old 06-28-2020, 12:54 AM   #12
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,416

Original Poster
Blog Entries: 43

Rep: Reputation: 36
I have taken no classes in compiler construction. I am book and web and self taught.
 
Old 06-28-2020, 12:56 AM   #13
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,416

Original Poster
Blog Entries: 43

Rep: Reputation: 36
I am using bison and flex for parts of it. When it's ready I will use biflex in it. I invented biflex and it's almost ready.
 
Old 06-28-2020, 12:58 AM   #14
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,416

Original Poster
Blog Entries: 43

Rep: Reputation: 36
This is my biggest experience in compiler construction. What is railroad logic?
 
Old 06-28-2020, 12:59 AM   #15
des_a
Senior Member
 
Registered: Sep 2006
Posts: 1,416

Original Poster
Blog Entries: 43

Rep: Reputation: 36
Still adding features, so still no syntax diagrams.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Librem 15, the first free software GNU/Linux laptop, makes funding goal LXer Syndicated Linux News 0 01-22-2015 06:06 PM
My first post on LQ - My goal in life and more Zacariaz LinuxQuestions.org Member Intro 4 07-01-2011 02:38 AM
Dual boot primary Linspire & XP primary slave? watmonki Linspire/Freespire 5 11-01-2005 08:16 PM
boot loader, MBR, redhat9 on primary slave, winxp on primary master samik Linux - Hardware 4 10-15-2003 08:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration