<trungnt2910[m]>
* It's a binary that's compiled from 90% of Haiku's runtime\_loader objects.
<trungnt2910[m]>
The rest of it is some patched objects to handle syscalls and TLS.
<trungnt2910[m]>
<Skipp_OSX> "I see, you are running on..." <- HyClone server is just a kernel server that stores some states that should have been stored by the kernel.
<trungnt2910[m]>
The code that loads, maps and executes ELF files is the same as Haiku's runtime_loader.
<Skipp_OSX>
oh so then you are running Haiku's runtime_loader on Linux, cool
<trungnt2910[m]>
Skipp_OSX: Yeah, the goal is to share as much code with Haiku as possible.
<trungnt2910[m]>
* It's a binary that's compiled from 90% of Haiku's runtime\_loader objects.
<trungnt2910[m]>
The rest of it are some patched objects to handle syscalls and TLS.
<trungnt2910[m]>
Now this is the real bashonhaikuonubuntuonwindows.
<trungnt2910[m]>
I still don't understand though, why is the prompt `bash-5.1$` instead of the real cwd.
<Skipp_OSX>
x512 app_server crashed in the Window::MouseMoved() method trying to run View::ViewAt() and GTK crashed trying to load the cursor so it seems like missing cursor might be the problem causing both crashes.
<Skipp_OSX>
trungnt2910[m] your bash prompt is set up in .bashrc, or .profile, .bash-profile
<trungnt2910[m]>
Sorry but I'm quite a noob at bash.
<trungnt2910[m]>
But thanks for your help.
<x512[m]>
trungnt2910: Have you tried to run Python? HaikuPorter is written in Python.
<Skipp_OSX>
trungnt2910[m] .bashrc is probably the one you want to look at
<tqh>
nice, btw whats our take on zsh vs bash these days ..
<Skipp_OSX>
zsh has a nicer license, better features, but bash is still king for compatibility
<x512[m]>
A lot of software probably hardcoded to Bash.
<tqh>
Mac is on zsh, I think FreeBSD as well, and I havn't had issues with compability when using zsh..
<Skipp_OSX>
seems that eventually we'll flush glibc, gcc, and bash down the toilet and switch to musl, clang, and zsh, but we're not there yet.
<tqh>
That is why I am starting this discussion :)
<Skipp_OSX>
Should be on the glass elevator hehe
<x512[m]>
Not a part of BeAPI.
<tqh>
It was discussed long ago, this is just a rehash :)
<Skipp_OSX>
but since it was discussed a long time ago, we've managed to build a lot more stuff without using glibc and gcc
<trungnt2910[m]>
<x512[m]> "trungnt2910: Have you tried to..." <- Maybe that's my next target.
<trungnt2910[m]>
That is, after I clean up some stuff, document things a little bit, and then publish the source on GitHub (for anyone who's interested)
<trungnt2910[m]>
BTW, are there any Haiku syscall tests? I might be interested in running them as a CI on GitHub Actions.
<trungnt2910[m]>
Skipp_OSX: Follow what Apple does eh?
<x512[m]>
And switch to PE executable format :)
<trungnt2910[m]>
PE is hell to parse.
<x512[m]>
PE is very simple format.
<x512[m]>
I made PE loaders and analyzers.
<trungnt2910[m]>
Really? I created a C# library that parses PE, ELF and Mach-O, and IMO Mach-O is the simplest while PE is the most complicated.
<x512[m]>
ELF is MUCH more difficult and its symbol resolving system is complex and fragile.
<x512[m]>
What is complicated in PE?
<x512[m]>
It have very trivial relocations and symbol resolution.
thomaslewis has joined #haiku
<x512[m]>
Note that BeOS R4 x86 (Haiku is BeOS reimplementation) used PE executables.
<tqh>
Wouldn't we want to do something else if we switched that part?
Vidrep_64 has joined #haiku
<x512[m]>
Honestly I think that switching to PE may be not a good idea because it will likely complicate ports building. But it can be interesting experiment.
<Skipp_OSX>
PE is tied to Metroworks compiler, even if Be used it on R4 x86, that's not a good reason that we should
<Skipp_OSX>
but maybe there is a good reason, I don't have a strong preference
<x512[m]>
Clang can be used to compile PEs. And it seems use ABI compatible to BeOS R4.
<x512[m]>
At least C++ name mangling is compatible.
<tqh>
So PE, ELF, COFF, any other formats?
<Skipp_OSX>
so does that mean our runtime loader could be made to execute BeOS R4 apps? hehe
thomaslewis has left #haiku [#haiku]
<x512[m]>
PE advantage is 2 level symbol resolving that avoid symbol name collision between libraries. PE allows to have 2 or more libraries with the same symbols in single process.
<x512[m]>
Skipp_OSX: Yes. It can support both.
<Skipp_OSX>
I ran into that with DevaCalc which had a PE binary, but of course it didn't run on Haiku. It was detected as an executable correctly though.
<Skipp_OSX>
The short answer is no, nobody is going to do any work on WebKit before the next release.
<Vidrep_64>
I don't mean WebKit 2, but legacy branch
thomaslewis has left #haiku [#haiku]
<Skipp_OSX>
same answer
<PulkoMandy>
for me the current web+ crashes on kit as well anyway so that's not even a regression
<PulkoMandy>
I think I'll do the same as for the previous beta, do an update during the preparation of beta4 when the haikuports builders are running the latest haiku
<PulkoMandy>
also I have to decide if I build it with curl, but that would probably require more testing to see if the cookie manager still works, if cookies are properly saved, etc
<Vidrep_64>
PulkoMandy, it looks like we'll be using WebKitLegacy for the foreseeable future
<PulkoMandy>
until someone gets webkit2 working. I would like to at least finish cleaning up and merging Rajagopalan's work before we give this code to another GSoC student
<PulkoMandy>
unless someone else gets it working before that (and with clean code that I can review and merge)
<PulkoMandy>
I have a bit more free time than usual during the summer (choir is on vacations so no rehearsals, and it's too hot to go outside ride my bicycle), so maybe I will have a look again in the next few weeks
<PulkoMandy>
had other things I wanted to finish first
<Vidrep_64>
PulkoMandy, as far as WebKit goes, it looks like you're still "it".
<PulkoMandy>
mostly. Nephele and Madmax did some work too, and they did more in-depth things that require investigating and actually fixing problems
Begasus has quit [Quit: Leaving]
<PulkoMandy>
I'm just merging changes from WebKit at the moment
Begasus_32 has quit [Quit: Vision[]: Gone to the dogs!]
<Vidrep_64>
WebKit2 looks like a project more suited for a paid contract
Gaspare has quit [Quit: Gaspare]
<PulkoMandy>
I don't know, I think it's not that far off actually, it just needs a days or two of work to get it running again, but for me it has to be two fully uninterrupted days. A coding sprint could be enough maybe. But then there are more steps between just having it running and having it fully usable
<PulkoMandy>
and reasonably fast
selfish has quit [Read error: No route to host]
Gaspare has joined #haiku
selfish has joined #haiku
thomaslewis has joined #haiku
thomaslewis has left #haiku [#haiku]
deadfwd[m] has joined #haiku
<deadfwd[m]>
Anyone else having issues with BeShare? Crashes on launch
<win8linux[m]>
tqh: Personally, ZSH would be a better fit for Haiku with regards to user experience. Better autocompletion from the get-go and being able to use arrow keys in tab completion make the terminal more user-friendly.
<win8linux[m]>
Fish would be even better in that regard, but it is an exotic shell and has many incompatibilities with most scripts.
<win8linux[m]>
Majority of shell scripts assume Bash or at the very least, a Bourne-compatible shell.
<win8linux[m]>
ZSH can be extended to have many of its features anyways, while still being a Bourne-compatible shell.
vdamewood has joined #haiku
thomaslewis has joined #haiku
Gaspare has quit [Quit: Gaspare]
jmairboeck has joined #haiku
thomaslewis has left #haiku [#haiku]
vdamewood_ has joined #haiku
vdamewood has quit [Ping timeout: 480 seconds]
gouchi has joined #haiku
Gaspare has joined #haiku
jmairboeck has quit [Quit: Konversation terminated!]
Anarchos has joined #haiku
thomaslewis has joined #haiku
vdamewood_ has quit [Quit: Life beckons.]
mmu_man has quit [Ping timeout: 480 seconds]
thomaslewis has left #haiku [#haiku]
mmu_man has joined #haiku
julicenri has quit [Read error: Connection reset by peer]
Vidrep_64 has quit [Quit: Vision[]: i've been blurred!]
thomaslewis has joined #haiku
KapiX has joined #haiku
<zdykstra>
fish and bash coexist quite nicely - fish never tries to be /bin/sh, /bin/bash, /bin/dash, etc - so just put a proper shebang on your script and everything is fine
x10z has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
julicenri has joined #haiku
thomaslewis has left #haiku [#haiku]
<Skipp_OSX>
so zsh would be a better choice
hackkitten has quit [Read error: Connection reset by peer]
hackkitten has joined #haiku
Anarchos has quit [Ping timeout: 480 seconds]
gouchi has quit [Quit: Quitte]
thomaslewis has joined #haiku
KapiX has quit [Quit: KapiX]
<rennj>
ibm rexx and amiga dos would be the better choice, only the amiga makes it possible https://imgur.com/H2OQ1Qx