Live data from Hacker News

Beads: Computer language and toolchain

beadslang.org

231–235 of 235 posts

Re: Beads: Computer language and toolchain

#231
post #7

This video gives more of a feel for the language. https://youtu.be/4WYxAfX_fTw It's definitely… interesting.

He uses both g_second and g_seconds without a compile error. Maybe the system defines both?

no, there is a typo in the video. The SDK is the best authority for Beads examples, as those are checked on each build for any errors. We have about 20 sample programs, some large enough to show most of the language features.

Re: Beads: Computer language and toolchain

#232

https://beadslang.org/blog/2021/3/23/rip-segmentation

This is.... gibberish. What's going on here? Are we being trolled?

The Multics operating system, which was funded by the DARPA at MIT's Project Mac for 10 years, was superior to Unix from a technical standpoint, and it used segmentation.

http://pages.cs.wisc.edu/~solomon/cs537-old/last/segmentatio...

Unix has Paging but not segmentation. Segmentation allows you to grow a memory block without having to copy as it grows, something that just plain paging cannot do.

Re: Beads: Computer language and toolchain

#234
post #94

Earlier quoted context omitted.

I think he's saying that inside of the loop in FizzBuzz, it should look like something like this (Python-esque pseudocode, assuming for a second print() doesn't add a newline automatically): if x % 3 == 0: print("Fizz") if x % 5 == 0: print("Buzz") if x % 3 != 0 and x % 5 != 0: print(x) print("\n") i.e. no special "FizzBuzz" case for when it's divisible by 15, it just naturally falls out of the first two if's. It's a…

as I learned above you can use the "end" kwarg to avoid the newline: print("Fizz", end="")

That doesn't work here, though, because then you don't get "FizzBuzz" for 15 -- you get "Fizz" and "Buzz" on separate lines.
Post reply on HN