Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 18 17:52
    greggirwin commented #252
  • Oct 18 15:19
    Tovim commented #252
  • Oct 16 21:01
    greggirwin commented #252
  • Oct 16 20:24
    Tovim edited #252
  • Oct 16 20:21
    Tovim opened #252
  • Oct 12 17:13

    greggirwin on master

    FIX: remove resolved Parse issu… Merge pull request #251 from 92… (compare)

  • Oct 12 17:13
    greggirwin closed #251
  • Oct 12 11:48
    9214 opened #251
  • Oct 09 20:15

    greggirwin on master

    Minor grammar improvements Minor grammar improvements Mad… Merge pull request #247 from 22… (compare)

  • Oct 09 20:15
    greggirwin closed #247
  • Oct 09 20:14

    greggirwin on master

    FIX: a typo "France" is not a … Merge pull request #249 from 22… (compare)

  • Oct 09 20:14
    greggirwin closed #249
  • Oct 06 17:04

    greggirwin on master

    FIX: minor typo. Merge pull request #250 from 92… (compare)

  • Oct 06 17:04
    greggirwin closed #250
  • Oct 02 20:51
    9214 opened #250
  • Sep 21 23:35

    greggirwin on master

    docs-cs: lost file lexer.adoc doc-cs: cs/dt/issue.adoc slight… doc-cs: one wee ant more and 8 more (compare)

  • Sep 21 23:35
    greggirwin closed #246
  • Sep 21 23:34

    greggirwin on master

    FIX: elaborate on CASE keyword. Merge pull request #245 from 92… (compare)

  • Sep 21 23:34
    greggirwin closed #245
  • Sep 21 23:32

    greggirwin on master

    FEAT: describe positional mode … FEAT: minor clarification on mo… Merge pull request #241 from 92… (compare)

Boleslav Březovský
@rebolek
how else could you run the script than switch directory?
GiuseppeChillemi
@GiuseppeChillemi
do %scriptdir/myscript.red
The directory is the root one but the script is in the subdirectory.
Boleslav Březovský
@rebolek
if you do this, directory is changed to %scriptdir
GiuseppeChillemi
@GiuseppeChillemi
Bingo!
Where is this written?
Boleslav Březovský
@rebolek
I'm not sure I understand, it's obvious it has to work this way.
GiuseppeChillemi
@GiuseppeChillemi
You can read a file without changing the current dir, that what are paths are meant for.
Boleslav Březovský
@rebolek
the dir is changed only for the file in subdir
Imagine you have #include or do %file.red in your script and the directory wouldn't be changed somehow. Then your script wouldn't work.
GiuseppeChillemi
@GiuseppeChillemi
Yes, I am not advocating the working of "active dir". The Current-dir concept you find in shells is usually a static value, and you change it manually with a change-dir like command. If you run a program in a subdirectory from a shell, the current shell dir does not change. Usually, other than the current-dir you have a program-dir which is the directory where the program resides. In Red the active dir is dynamic and script dependent. So, please think like a first time user of Red, what will he probably think trying to explain the help of what-dir (when a change-dir exists too) without any further explanation?
Maybe a little change would help here: "active dir" -> "current script dir" ? "current running script dir"?
Boleslav Březovský
@rebolek
You can find various paths in system/options and system/script.
GiuseppeChillemi
@GiuseppeChillemi
I am looking at them:
make object! [
    title: none
    header: none
    parent: none
    path: none
    args: ""
]
This is system/script (Printed out from a running script)
Boleslav Březovský
@rebolek
Ok, maybe Red doesn't fill these fields properly yet :-)
GiuseppeChillemi
@GiuseppeChillemi
I had no header or title but path should be set.
Returning to the topic: IMHO, the active script concept is not documented so it is worth extending a little the what-dir help
ccmywish
@ccmywish
Hi, everyone. I'm here to express thanks to helpin.red . It's a really helpful site to guide me around the Red world as a new comer . Besides, I'm totally impressed by the 1MB size Red executable. Could someone tell me about how this was done? Or is there any doc i can find about that?
Boleslav Březovský
@rebolek
Hi @ccmywish If you are interested how it was achieved, just read the sources ;-) Red isn't reinventing the wheel. Lot of functionality is already in the OS, so Red just uses it.
ccmywish
@ccmywish
@rebolek Thanks to reply , I'll try reading the sources some time . ^O^
Boleslav Březovský
@rebolek
I think that the right question should be - how do others achieve such bloat? How can they make 100+ MB executable? That's the question we should ask.
Raimon Grau
@kidd
@ccmywish , I'm also new and also going through that same path. here's what started my journey: https://news.ycombinator.com/item?id=24080254 . I'm happy to share any findings, but really , it seems the truth is out there in compiler.r and system/*.
ccmywish
@ccmywish
@kidd Many thanks for your sharing! o( ̄▽ ̄)d
Maciej Łoziński
@loziniak
@ccmywish 1MB (actually currently 1,4MB on my Linux) is due to compression.
Although I don't know how big the executable would be uncompressed.
@rebolek I wonder how big would an electron app be if compressed with same methods as Red executable?
Boleslav Březovský
@rebolek
@loziniak I'm no expert in Electron apps, but a safe bet is 50-70% of uncompressed size.
Maciej Łoziński
@loziniak
@rebolek still far beyond Red's scale :-)
Maciej Łoziński
@loziniak
Anyway, regarding docs: Has there been any discussion about adding a "SEE ALSO:" section to built-in function docstrings? I think it would ease language exploration by learners. And sometimes you just forget the right word. For example case could have "SEE ALSO: switch, either". @meijeru 's specs functions categories or red-by-example's categories could be helpful with that.
Boleslav Březovský
@rebolek
This is something that is available in R2 function docs (for example see Related: in http://www.rebol.com/docs/words/wunion.html ). It would be nice to have it built-in. I believe that the whole func dialect needs updating. Things like url! with link to documentation, default values and so on.
Gregg Irwin
@greggirwin
@kidd sorry for the delay in responding. The mailing list exists, at least I can still see it, though it's mostly dead. Only a few old Rebolers seem to use it. Editing it out of the readme makes sense. @x8x can you also remove it from https://www.red-lang.org/ ? If somebody disagrees, speak up. Since it isn't used, we shouldn't promote it as a main contact point.
1 reply
Gregg Irwin
@greggirwin
@loziniak see-also: functionality will be done outside of doc strings, simply because we have to draw the line somewhere on what goes into code versus what is best handled as metadata and tooling. In this case, documentation and learning tools can leverage other sources, rather than using reflection. I worked on some ideas for the data organization in this area a while back, and will try to find my notes.
Gregg Irwin
@greggirwin
Found them. I had started working on an updated word-browser from the R2 days. Won't get back to it soon, but it's in my mind again now.
image.png
Maciej Łoziński
@loziniak
@greggirwin nice piece of utility! red-by-example comes into my mind as a source of content, perhaps joining two projects together would be some kind of an idea. they share a common purpose.
Gregg Irwin
@greggirwin
Certainly we should be able to use RBE content to pre-fill many examples. Good idea.
FLuX LoOP
@x8x
@greggirwin , removed the link to mailing list, what about irc? @rebolek is a lone wolf in there ;-) I would also not advertise it, Gitter only!
Gregg Irwin
@greggirwin
Agreed.
FLuX LoOP
@x8x
It's gone.
Vladimir Vasilyev
@9214
README also has been updated: red/red#4665.
Gregg Irwin
@greggirwin
Thanks both!
Rudolf Meijer
@meijeru
I agree one should not overburden docstrings. Nevertheless, all built-in functions should have not only a docstring for themselves, but preferably also for their refinements, or where applicable, for the arguments belonging to those refinements. This is NOT the case for the following:
ask    /hide
read    /info
register-scheme    /native
stop-reactor    /deep
write    /info
Gregg Irwin
@greggirwin
@meijeru those should have something there, yes.
Petr Krenzelok
@pekr
Where has the json stuff moved? In june blog post, there is the following link to json, which does not seem to be valid anymore? https://github.com/red/red/blob/master/environment/codecs/json.red
Case sensitivity? 😲
Petr Krenzelok
@pekr
Have official docs moved? Previously I could see menu on the left side, prior to that, language selection was there.
Well, it either did not work with the June blog article right from the start, or someone renamed the file later (more probable).
Semseddin Moldibi
@endo64
Docs temporarily moved to GitHub
Petr Krenzelok
@pekr
As Blog is a useful resource, should be fixed imo. But who can do that?
Semseddin Moldibi
@endo64
It's renamed:
FIX: properly uppercase codec names.
dockimbel committed on May 15