-*- coding: utf-8 -*- Emily ​heyy gang Welcome to live chat! Remember to guard your privacy and abide by our community guidelines. crash hacker ​/comfy/ Emily ​when are you not crash :) The Magpie ​Greetings Emily ​@Xah Lee - i posted a working version, i don't think you saw it crash hacker ​js The Magpie ​Hi Emily, so popular. Talk show all about you 😃 Daniel Langlois ​Star Wars makes no logical sense. Daniel Langlois ​I'm just sayin'.. Emily ​i know! i'm so honoured and flattered Daniel Langlois ​what are we talking about? Emily ​my time system The Magpie ​Emily ofc Emily ​and converting to it crash hacker ​glang crash hacker ​elisp crash hacker ​js The Magpie ​any is fine, all programming is just logic syntax is secondary crash hacker ​then go lang crash hacker ​I want to see routines G Q ​haskell Emily ​golang crash hacker ​GO LANG G Q ​erlang レイセン ​golang Emily ​erlang :o G Q ​of course G Q ​ofc - of course Freddy Freeman ​hey! Freddy Freeman ​ohyes! golang! Emily ​go go golan jedwar pacheco ​hi everybody!! Here Edwar from Peru Freddy Freeman ​greetings edwar Emily ​yoyo edwar Xah Lee ​probleb description http://xahlee.info/talk_show/xah_talk... George ​I posted my ruby solution on discord crash hacker ​/based/ george crash hacker ​[message retracted] crash hacker ​👌 MATI NAVAS ​hey all crash hacker ​hello mati George ​👋 MATI NAVAS ​wohoo golang Benkio ​if you append it to an empty string?? Idk I'm guessing Benkio ​pogchamp 😀 Freddy Freeman ​import strings Freddy Freeman ​s := strings.Split(time24, ":") Dion Bridger ​loop through the length of the string Freddy Freeman ​using strconv Dion Bridger ​multiply each digit by 10^(len(string)-idx) George ​Can't you just use epoch time? Dion Bridger ​after converting the digit using it's index in "0123456789" Freddy Freeman ​var emTotalSec = strconv.ParseInt(s[2], 10, 64) Dion Bridger ​you need a packaghe to convert strings to numbers Dion Bridger ​seriously? Dion Bridger ​C has atoi in the stdlib Freddy Freeman ​[message retracted] George ​I don't think it's not a 3rd party package Freddy Freeman ​[message retracted] Dion Bridger ​everyone makes fun of python George ​Sorry Dion Bridger ​but being able to just say int("12312312312") is so much better George ​I dont think it's a 3rd party package Dion Bridger ​does go have 1st class functions? Freddy Freeman ​interesting, as today i had a disucssion with a collegue and he told me golang takes the readabiliy of python and the power of c and optimizes for modern CPUs Dion Bridger ​(X) Freddy Freeman ​but so far it seems not so different from C ^^ but im no C expert either haha Dion Bridger ​It looks the same to me crash hacker ​you need to come from the mindset of modularity crash hacker ​that's where the two vary Dion Bridger ​I can really feel the practicality :P crash hacker ​check out a talk called goforC crash hacker ​that should give you a clear idea Dion Bridger ​tbh I probably won't become a gopher crash hacker ​its just 10 slides or something Freddy Freeman ​ok thanks Dion Bridger ​I'm more interested in HLL than low level anyway crash hacker ​should be a 5 mins read Mr. Yamen- YT ​hello Freddy Freeman ​ya this seems a nice approach Dion Bridger ​how are strings represented in Go? George ​I think my version wins code golf ⛳️ 🏌️‍♂️ George ​5 lines Dion Bridger ​can you subtract the ASCII code for "0" from a digit and get its value that way? This message is held for review. Mr. Yamen- YT ​Can you subscribe to my brother from tunisien Freddy Freeman ​[message retracted] Freddy Freeman ​[message retracted] Emily ​of course i am still here Emily ​working on my erlang version Dion Bridger ​1st class functions is at least one thing Dion Bridger ​The problem I have with golang is that its designer has more or less explicitly explained that they're designing for idiots Dion Bridger ​“The key point here is our programmers are Googlers, they’re not researchers...They’re not capable of understanding a brilliant language”-- Rob Pike George ​You don't need to worry about hours/minutes/seconds. Just multiply % of day by 6^6. Then present in base 6. George ​It's really easy Emily ​@Xah Lee i started it when you started George ​It doesn't take a string George ​I'll post an example how to use it later crash hacker ​o is just giving a custom name to executable file MATI NAVAS ​u can run it now at least ?! MATI NAVAS ​@Xah Lee Dion Bridger ​everyone shame arwn George ​to_emtime(Time.parse('12:00')) Emily ​@Xah Lee - got the erlang one done 😛 Emily ​instructions for how to run it are at the bottom in the comments :p Dion Bridger ​.el I think crash hacker ​.el Emily ​@Xah Lee .erl Dion Bridger ​oh no that's elisp crash hacker ​oh yeah crash hacker ​😅 Emily ​@Xah Lee - you need to save the file as "emtime.erl" Dion Bridger ​that's a bit of a fuss Emily ​@Xah Lee - OR change the module like to "-module(emtime_emily)." Emily ​yeah - the compiler requires the file name to match the module name :/ Dion Bridger ​adios Freddy Freeman ​ok thanks xah\ Freddy Freeman ​ugh this exercise in bash... Freddy Freeman ​no thanks Dion Bridger ​I'm working on a custom proglang for my job lol Dion Bridger ​bye Xah Xah Lee Say something... 0/200