emojicode / emojicode

πŸ˜€πŸ˜œπŸ”‚ World’s only programming language that’s bursting with emojis

Home Page:https://emojicode.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ©β²πŸ’ˆ 5000 does not suspend the calling thread.

datafatmunger opened this issue Β· comments

commented

The following does not seem to work. I would expect, I believe, the same behaviour as a sleep(5000), for example. I'm using Linux.

πŸ©β²πŸ’ˆ 5000

Simplest example:

πŸπŸ‡
  πŸ©β²πŸ’ˆ 5000 
πŸ‰
commented

@idmean Thank you very much for the response! We are using emojicode currently for a set of beginning programming workshops in China (I'm an American based in the Netherlands).

I am now getting the correct delay (I was thinking in milliseconds not microseconds), but I'm having unexpected behaviour...see the following example in which I would expect one line of a file to be printed per second...forever:

πŸ“¦ files πŸ”΄
🏁 πŸ‡
  πŸ” πŸ‘ πŸ‡
    πŸ₯‘ fileData πŸ©πŸ“‡πŸ“„ πŸ”€earth.txtπŸ”€ πŸ‡

      πŸ‘΄πŸ˜€ πŸͺπŸ”€Read πŸ”€ πŸ”‘ πŸ” fileData 10 πŸ”€ bytesπŸ”€ πŸͺ

      🍦 lines πŸ”« 🍺 πŸ”‘ fileData πŸ”€βŒn❌rπŸ”€
      πŸ”‚ line lines πŸ‡
        πŸ˜€ line
        πŸ©β²πŸ’ˆ 1000000
      πŸ‰
    πŸ‰
    πŸ“ error πŸ‡
      πŸ˜€ πŸ”€πŸ˜’ Could not read fileπŸ”€
    πŸ‰

  πŸ‰
πŸ‰

commented

Nm...my bug. Working program below...for the internets. Closed!

πŸ“¦ files πŸ”΄
🏁 πŸ‡
  πŸ” πŸ‘ πŸ‡
    πŸ₯‘ fileData πŸ©πŸ“‡πŸ“„ πŸ”€earth.txtπŸ”€ πŸ‡

      πŸ‘΄πŸ˜€ πŸͺπŸ”€Read πŸ”€ πŸ”‘ πŸ” fileData 10 πŸ”€ bytesπŸ”€ πŸͺ

      🍦 lines πŸ”« 🍺 πŸ”‘ fileData πŸ”€βŒnπŸ”€ 
      πŸ”‚ line lines πŸ‡
        πŸ˜€ πŸͺline πŸ”€---πŸ”€πŸͺ
        πŸ©β²πŸ’ˆ 1000000
      πŸ‰
    πŸ‰
    πŸ“ error πŸ‡
      πŸ˜€ πŸ”€πŸ˜’ Could not read fileπŸ”€
    πŸ‰

  πŸ‰
πŸ‰

Emojicode teached in school. Wow. Our success is near.