00:02:08 | * | chemist69 quit (Ping timeout: 245 seconds) |
00:03:24 | * | Matthias247 quit (Read error: Connection reset by peer) |
00:17:25 | * | PMunch quit (Quit: leaving) |
00:18:19 | * | couven92 quit (Quit: Client disconnecting) |
00:24:33 | * | chemist69 joined #nim |
00:24:37 | krux02 | how can I unescape "\n"? |
00:27:18 | * | Jesin quit (Quit: Leaving) |
00:32:34 | vlad1777d__ | krux02, you can use "Triple quoted string literals" |
00:33:03 | vlad1777d__ | or so: "\\n" |
00:33:13 | krux02 | vlad: sorry I am not very specific |
00:33:18 | krux02 | I guess I am too tired |
00:33:37 | krux02 | but the question is not that actually, it is the other way around. |
00:33:55 | vlad1777d__ | krux02, I did not understood what you want =) |
00:34:40 | krux02 | I don't want my newlines to be escaped as \n, I want my "\n\t" and all other escape sequences to be replaced as newlines and tabs etc |
00:35:06 | krux02 | I already have the string, I can't just change the literal |
00:36:05 | vlad1777d__ | krux02, they'll be replaced automatically if you create string: "\n\t" |
00:37:04 | vlad1777d__ | if you received string and made: "echo string_this", than you see "\n\t", this means that you have symbol of newline and tab in your string |
00:37:27 | vlad1777d__ | And you have no need to "unescape" it |
00:37:50 | krux02 | vlad1777d__: but the problem is that I have the need to unescape them |
00:38:08 | krux02 | because the string comes from somewhere else |
00:38:10 | FromGitter | <gogolxdong> @flyx thank you,I was almost there but with settings:/n port=80 |
00:39:56 | vlad1777d__ | krux02, you can replace them with escape characters |
00:40:49 | vlad1777d__ | krux02, strutils.replace(some_string, r"\n", "\n") |
00:40:54 | krux02 | vlad I know I can replace them, but I am scared of the \x |
00:41:17 | krux02 | because I want that all esacapes ever will be replaced |
00:41:29 | krux02 | and when the language changes and adds more, even then they should be changed |
00:41:41 | krux02 | I wast a solution that will never require my attention again |
00:41:53 | krux02 | and I am horribly tired and can't think properly anymore |
00:42:02 | krux02 | I asked this question in in the forum, too |
00:42:12 | krux02 | please answer me there, maybe all I need is some sleep |
00:42:18 | krux02 | I think you a lot so far |
00:42:32 | krux02 | good night |
00:42:35 | * | krux02 quit (Quit: Leaving) |
00:42:39 | vlad1777d__ | krux02, I don't know, maybe there is such function in some module. You could try to search it after some sleep |
00:42:42 | vlad1777d__ | good night |
00:46:22 | FromGitter | <gogolxdong> sorry, `undeclared identifier: 'port'` |
00:52:57 | * | dhalinar joined #nim |
00:59:35 | * | vlad1777d__ quit (Quit: Leaving) |
01:38:29 | * | chemist69 quit (Ping timeout: 246 seconds) |
01:42:00 | * | pregressive quit (Remote host closed the connection) |
01:42:36 | * | pregressive joined #nim |
01:46:53 | * | pregressive quit (Ping timeout: 246 seconds) |
01:55:52 | * | Jesin joined #nim |
01:57:10 | * | chemist69 joined #nim |
02:06:34 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
02:18:37 | * | Snircle joined #nim |
02:45:20 | * | chemist69 quit (Ping timeout: 246 seconds) |
02:49:17 | * | Jesin quit (Ping timeout: 260 seconds) |
02:59:04 | * | chemist69 joined #nim |
02:59:45 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
03:07:12 | * | OnO quit (Ping timeout: 260 seconds) |
03:10:09 | * | OnO joined #nim |
03:20:29 | * | brson quit (Quit: leaving) |
03:25:56 | * | chemist69 quit (Ping timeout: 240 seconds) |
03:46:37 | * | chemist69 joined #nim |
03:59:09 | * | marco_ joined #nim |
04:01:23 | * | marco_ quit (Client Quit) |
04:45:27 | * | dddddd quit (Remote host closed the connection) |
04:51:43 | * | chemist69 quit (Ping timeout: 245 seconds) |
05:01:52 | * | synshroud quit (Quit: ZNC 1.6.3 - http://znc.in) |
05:03:28 | * | synshroud joined #nim |
05:10:09 | * | chemist69 joined #nim |
05:33:41 | * | bjz joined #nim |
05:39:26 | * | bjz quit (Read error: Connection reset by peer) |
05:41:31 | * | bjz joined #nim |
05:46:39 | * | bjz quit (Read error: Connection reset by peer) |
05:57:58 | * | pregressive joined #nim |
05:59:47 | * | bjz joined #nim |
06:02:29 | * | pregressive quit (Ping timeout: 260 seconds) |
06:40:06 | * | nsf joined #nim |
06:58:16 | * | ftsf quit (Quit: :q!) |
07:12:20 | * | delian66 joined #nim |
07:19:53 | FromGitter | <vegansk> @Araq, hi. And again about generic concepts branch. What do you think about http://forum.nim-lang.org/t/2396/7#16504? |
07:23:35 | FromGitter | <gogolxdong> How to specify static compile? |
07:29:51 | * | chemist69 quit (Ping timeout: 258 seconds) |
07:36:07 | FromGitter | <gogolxdong> I want to put a binary executable file-which compiled with DLL by default- into a container and execute from command line, how would I achieve that? |
07:37:48 | * | [ui] joined #nim |
07:44:47 | FromGitter | <gogolxdong> like `CGO_ENABLED=0 go build -ldflags '-extldflags "-static"'` |
07:48:36 | * | bjz_ joined #nim |
07:49:25 | * | chemist69 joined #nim |
07:50:45 | * | bjz quit (Ping timeout: 260 seconds) |
07:52:42 | * | Arrrr joined #nim |
08:07:14 | Arrrr | http://nim-lang.org/docs/nimc.html#dynliboverride |
08:07:30 | Arrrr | Not sure if that's what you need. |
08:11:02 | FromGitter | <gogolxdong> `nim c -d:release --opt:size --dynlibOverride:pthread --passL:-libpthread.a hello.nim` with `/usr/bin/ld: cannot find -libpthread.a` |
08:19:51 | Arrrr | maybe you need to pass -LdirOflibpthread ? I have no idea actually, just guessing. |
08:26:25 | Araq | vegansk: let that be my christmas present for you |
08:26:41 | * | rokups joined #nim |
08:27:47 | FromGitter | <gogolxdong> Static libraries vary in big size , libpthread.a 2.4M in particular ,this will cause monolithic binary which breaks the delusion nim always generate small size binary. |
08:28:26 | * | couven92 joined #nim |
08:28:50 | * | couven92 left #nim (#nim) |
08:32:17 | Araq | pthread is not used via .dynlib so you cannot --dynlibOverride it |
08:32:58 | Araq | plus static linking causes license issues anyway with the GPL iirc |
08:36:19 | Araq | and if you statically link libc while caring about binary sizes (why btw?), use an alternative libc that's small |
08:37:27 | FromGitter | <gogolxdong> to control size of rkt or docker images |
08:40:04 | Araq | "Docker containers wrap a piece of software in a complete filesystem that contains everything needed to run: code, runtime, system tools, system libraries – anything that can be installed on a server." |
08:41:18 | FromGitter | <gogolxdong> license is a huge topic, linux kernel is under GPL, is this the reason why go has to implement self bootstrapping |
08:44:16 | Araq | what is "self bootstrapping", it's called "bootstrapping". |
08:45:02 | FromGitter | <gogolxdong> ok |
08:45:04 | Araq | 2. Go bootstraps for the same reason Nim does. Writing compilers in C sucks. |
08:45:15 | FromGitter | <gogolxdong> :) |
08:45:22 | Araq | Linux's license has nothing to do with it. |
08:47:40 | * | sarlalian quit (Ping timeout: 258 seconds) |
08:48:04 | FromGitter | <gogolxdong> you are the Boss, anyhow, how do I compile nim in a static way. |
08:48:42 | Araq | http://www.etalabs.net/compare_libcs.html |
08:51:50 | * | sarlalian joined #nim |
08:54:35 | Araq | I don't compile "nim in a static way", it's pointless. The assumption that the Unix based OS lacks a libc is ridiculous. |
08:55:06 | FromGitter | <gogolxdong> A single conversation across the table with a wise man worth a month's study of books. |
08:55:12 | * | shodan45 quit (Ping timeout: 268 seconds) |
08:58:51 | FromGitter | <gogolxdong> btw, would you please inspire me a scenario of ⏎ > *<Araq>* plus static linking causes license issues anyway with the GPL iirc |
08:59:42 | Araq | static linking with the GNU libc means your program needs to be GPL or LGPL too, but don't quote me on that |
09:00:37 | Araq | you should look into how to build against musl, maybe def- knows more |
09:01:24 | FromGitter | <gogolxdong> I think I will try to copy dynamic libraries into images first to let it run . |
09:02:22 | def- | linking against musl should be simple, dietlibc should also work |
09:02:25 | FromGitter | <gogolxdong> as to the license issue, I mean if I static linking pthread , will it has to be GPL ? |
09:03:25 | def- | pthreads is an API from what I understand, so you can only link against a specific api implementation |
09:03:39 | def- | and then you have to follow that implementation's license |
09:06:42 | flyx | according to this, there is no difference between static and dynamic linking to a GPL lib: https://www.gnu.org/licenses/gpl-faq.en.html#GPLStaticVsDynamic |
09:08:37 | flyx | libc is LGPL, so this applies instead: https://www.gnu.org/licenses/gpl-faq.en.html#LGPLStaticVsDynamic |
09:09:54 | flyx | I don't really see a problem for statically linking to libc as long as you provide the source code of you application (regardless of licenses) |
09:11:46 | * | PMunch joined #nim |
09:17:28 | FromGitter | <gogolxdong> I want to confirm one thing that does every libraries have its own license? |
09:17:28 | Araq | "as long as you provide the source code of your application" -- ok... |
09:18:08 | Calinou | LGPL needs you to provide a way to the user to replace the libc |
09:18:14 | Calinou | so providing source code under any license may be enough |
09:19:32 | flyx | well that's what the gnu page says anyway. but I doubt there's a better source on the topic. |
09:27:02 | * | reuf_ joined #nim |
09:28:55 | * | reuf_ quit (Read error: Connection reset by peer) |
09:35:51 | * | space-wizard quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
09:37:05 | * | space-wizard joined #nim |
09:37:24 | * | space-wizard quit (Client Quit) |
09:37:56 | * | space-wizard joined #nim |
09:38:12 | * | space-wizard quit (Client Quit) |
09:38:41 | * | space-wizard joined #nim |
09:39:00 | * | space-wizard quit (Client Quit) |
09:39:30 | * | space-wizard joined #nim |
09:39:48 | * | space-wizard quit (Client Quit) |
09:40:04 | * | arnetheduck joined #nim |
09:40:16 | * | space-wizard joined #nim |
09:40:36 | * | space-wizard quit (Client Quit) |
09:41:08 | * | space-wizard joined #nim |
09:41:24 | * | space-wizard quit (Client Quit) |
09:44:17 | FromGitter | <gogolxdong> I make a 4.5M image out of rkt. the effort of check dynamic library with ldd, read every symbol link ,find .so ,copy to the same directory is a little bit trivial |
09:44:28 | * | PMunch_ joined #nim |
09:44:32 | * | PMunch quit (Ping timeout: 268 seconds) |
09:46:20 | * | [ui] quit (Quit: Connection closed for inactivity) |
09:47:58 | FromGitter | <gogolxdong> At which compile stage I can change the linker behavior to static? like with following flags `-static -Wl,-Bdynamic,-lgcc_s,-Bstatic -pthread -lm` |
09:49:43 | FromGitter | <gogolxdong> I make a minimal jester hello image sized 4.5. the effort of check dynamic library with ldd, read every symbol link ,find .so ,copy to the same directory is a little bit trivial |
09:51:51 | FromGitter | <gogolxdong> I make a minimal jester hello-example image sized 4.5M. The effort of checking dynamic library with ldd, read every symbol link ,find .so ,copy to the same directory is a little bit trivial. |
09:57:02 | FromGitter | <gogolxdong> At which compile stage can I change the gcc linker behavior to static? like with following flags `-static -Wl,-Bdynamic,-lgcc_s,-Bstatic -pthread -lm` |
10:02:38 | FromGitter | <gogolxdong> I made a minimal 4.5MiB-sized jester hello-world image . The effort of checking dynamic library with ldd, reading every symbol link ,finding .so and copying to the same directory is a little bit trivial. |
10:10:40 | * | sarlalian quit (Remote host closed the connection) |
10:14:28 | * | sarlalian joined #nim |
10:18:31 | * | Matthias247 joined #nim |
10:21:00 | * | chemist69 quit (Ping timeout: 265 seconds) |
10:23:43 | * | chemist69 joined #nim |
10:50:42 | * | Ven joined #nim |
10:56:07 | * | BitPuffin|osx joined #nim |
10:59:13 | FromGitter | <vegansk> @Araq, it'll be the present not only for me :-) |
11:01:43 | * | chemist69 quit (Ping timeout: 245 seconds) |
11:13:17 | FromGitter | <andreaferretti> Surely it will be a present for me :-) |
11:13:44 | FromGitter | <andreaferretti> I have been trying to abuse generic concepts for a while :-P |
11:15:50 | * | chemist69 joined #nim |
11:33:08 | * | byte512 joined #nim |
12:07:30 | * | jtremback____ joined #nim |
12:07:47 | * | M-Quora quit (Ping timeout: 258 seconds) |
12:07:48 | * | jtremback___ quit (Ping timeout: 258 seconds) |
12:15:26 | * | bjz_ quit (Ping timeout: 256 seconds) |
12:15:48 | * | bjz joined #nim |
12:19:05 | * | chemist69 quit (Ping timeout: 260 seconds) |
12:20:56 | * | M-Quora joined #nim |
12:26:51 | * | [ui] joined #nim |
12:37:55 | * | BitPuffin|osx quit (Remote host closed the connection) |
12:39:34 | * | chemist69 joined #nim |
13:08:44 | * | BitPuffin|osx joined #nim |
13:09:58 | * | Andris_zbx joined #nim |
13:14:34 | * | djiin joined #nim |
13:15:25 | * | Snircle joined #nim |
13:17:26 | * | dhalinar quit (Ping timeout: 246 seconds) |
13:22:58 | * | djiin quit (Ping timeout: 245 seconds) |
13:23:44 | * | chemist69 quit (Ping timeout: 246 seconds) |
13:24:36 | * | Arrrr quit (Quit: WeeChat 1.5) |
13:42:08 | * | chemist69 joined #nim |
13:57:45 | * | PMunch joined #nim |
13:59:26 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
14:01:53 | * | PMunch_ quit (Ping timeout: 265 seconds) |
14:06:46 | * | vlad1777d joined #nim |
14:20:03 | * | PMunch quit (Quit: leaving) |
14:27:08 | * | chemist69 quit (Ping timeout: 245 seconds) |
14:36:20 | * | [ui] quit (Quit: Connection closed for inactivity) |
14:36:49 | * | vlad1777d_ joined #nim |
14:37:58 | * | vlad1777d quit (Ping timeout: 245 seconds) |
14:45:37 | * | chemist69 joined #nim |
14:45:39 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
14:46:41 | * | djiin joined #nim |
14:48:16 | * | arnetheduck quit (Ping timeout: 240 seconds) |
14:51:18 | * | djiin quit (Ping timeout: 245 seconds) |
15:09:26 | * | Jesin joined #nim |
15:10:24 | * | vlad1777d_ quit (Ping timeout: 250 seconds) |
15:11:03 | * | vlad1777d_ joined #nim |
15:23:35 | * | krux02 joined #nim |
15:35:39 | * | themagician joined #nim |
15:54:38 | * | dddddd joined #nim |
15:55:52 | * | chemist69 quit (Ping timeout: 258 seconds) |
16:03:06 | * | pregressive joined #nim |
16:03:22 | * | pregressive quit (Remote host closed the connection) |
16:03:58 | * | pregressive joined #nim |
16:08:07 | * | pregressive quit (Read error: No route to host) |
16:08:34 | * | pregressive joined #nim |
16:13:26 | * | pregressive quit (Ping timeout: 256 seconds) |
16:14:05 | FromGitter | <GrundleTrundle> Macro question. I want to generate a few functions from some data in an array. The only way I see to pass the data without it being reduced to a NimNode is to cheese it by marshalling the array to a string, passing the string in to my macro, and then unmarshalling the string back into an array. Am I missing something? |
16:14:08 | * | chemist69 joined #nim |
16:24:26 | * | synshroud quit (Quit: ZNC 1.6.3 - http://znc.in) |
16:25:17 | * | brson joined #nim |
16:26:34 | * | synshroud joined #nim |
16:27:22 | * | kier joined #nim |
16:41:12 | * | vlad1777d_ quit (Ping timeout: 256 seconds) |
16:41:54 | * | vlad1777d_ joined #nim |
16:43:46 | * | kier quit (Ping timeout: 258 seconds) |
16:51:45 | * | djiin joined #nim |
16:58:23 | FromGitter | <nigredo-tori> @GrundleTrundle , you can pass it as a `static[seq[something]]`, for example. Also, if everything else fails, `{.compileTime.}` variables are a reliable if ugly solution for passing data to/from a macro. |
16:58:57 | * | vlad1777d__ joined #nim |
16:59:54 | * | vlad1777d_ quit (Ping timeout: 268 seconds) |
17:01:01 | * | djiin quit (Ping timeout: 258 seconds) |
17:01:49 | * | pregressive joined #nim |
17:02:54 | FromGitter | <GrundleTrundle> I'm guilty of ignoring static[T], since it wasn't completely implemented when I looked last, but I'll go back to it now. Thanks! |
17:04:54 | * | couven92 joined #nim |
17:14:40 | * | krux02 quit (Quit: Leaving) |
17:21:29 | * | BitPuffin|osx quit (Ping timeout: 268 seconds) |
17:31:58 | * | Trustable joined #nim |
17:34:30 | * | shodan45 joined #nim |
17:39:16 | * | chemist69 quit (Ping timeout: 240 seconds) |
17:41:23 | * | Andris_zbx quit (Remote host closed the connection) |
17:43:33 | * | vlad1777d_ joined #nim |
17:44:38 | * | vlad1777d__ quit (Ping timeout: 245 seconds) |
17:56:17 | * | djiin joined #nim |
17:57:42 | * | chemist69 joined #nim |
17:58:19 | * | space-wizard joined #nim |
18:05:16 | * | dhalinar joined #nim |
18:06:12 | * | djiin quit (Ping timeout: 258 seconds) |
18:09:43 | * | kier joined #nim |
18:15:21 | * | vlad1777d__ joined #nim |
18:16:56 | * | vlad1777d_ quit (Ping timeout: 258 seconds) |
18:41:21 | * | kier quit (Remote host closed the connection) |
18:45:15 | * | vlad1777d_ joined #nim |
18:46:35 | * | vlad1777d__ quit (Ping timeout: 268 seconds) |
18:52:01 | * | chemist69 quit (Ping timeout: 260 seconds) |
19:06:06 | * | vlad1777d__ joined #nim |
19:06:34 | * | vlad1777d_ quit (Ping timeout: 250 seconds) |
19:11:05 | * | azur_kind joined #nim |
19:14:23 | * | chemist69 joined #nim |
19:20:39 | * | space-wi_ joined #nim |
19:22:49 | * | space-wizard quit (Ping timeout: 260 seconds) |
19:28:14 | * | byte512 quit (Ping timeout: 250 seconds) |
19:29:43 | * | space-wizard joined #nim |
19:31:18 | * | space-wi_ quit (Ping timeout: 258 seconds) |
19:44:02 | * | kulelu88 joined #nim |
20:09:01 | * | shodan45 quit (Quit: Konversation terminated!) |
20:17:17 | * | azur_kind quit (Ping timeout: 258 seconds) |
20:18:21 | * | Ven joined #nim |
20:26:49 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
20:27:57 | * | couven92 quit (Quit: Client disconnecting) |
20:33:51 | * | Mat4 joined #nim |
20:37:16 | * | vlad1777d__ quit (Ping timeout: 240 seconds) |
20:38:21 | * | vlad1777d__ joined #nim |
20:39:31 | * | chemist69 quit (Ping timeout: 258 seconds) |
21:01:05 | * | chemist69 joined #nim |
21:01:56 | * | rokups quit (Quit: Connection closed for inactivity) |
21:05:56 | * | space-wizard quit (Ping timeout: 240 seconds) |
21:06:35 | * | space-wizard joined #nim |
21:06:55 | * | Mat4 quit (Quit: Leaving) |
21:08:21 | * | Sentreen quit (Ping timeout: 248 seconds) |
21:10:56 | * | brson quit (Ping timeout: 240 seconds) |
21:14:00 | * | brson joined #nim |
21:20:47 | * | vlad1777d_ joined #nim |
21:21:24 | * | Ven joined #nim |
21:21:41 | * | vlad1777d__ quit (Ping timeout: 258 seconds) |
21:22:28 | * | Sentreen joined #nim |
21:42:42 | * | nsf quit (Quit: WeeChat 1.6) |
21:46:15 | * | Trustable quit (Remote host closed the connection) |
21:48:05 | * | chemist69 quit (Ping timeout: 246 seconds) |
21:56:58 | * | vlad1777d__ joined #nim |
21:58:07 | * | vlad1777d_ quit (Ping timeout: 258 seconds) |
22:01:13 | * | bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…) |
22:06:37 | * | chemist69 joined #nim |
22:07:34 | * | space-wi_ joined #nim |
22:09:06 | * | space-wizard quit (Ping timeout: 246 seconds) |
22:10:43 | * | vlad1777d_ joined #nim |
22:13:16 | * | vlad1777d__ quit (Ping timeout: 256 seconds) |
22:21:57 | * | bjz joined #nim |
22:25:11 | * | brson quit (Ping timeout: 246 seconds) |
22:26:04 | * | dhalinar quit (Ping timeout: 250 seconds) |
22:26:34 | * | brson joined #nim |
22:28:13 | * | bjz quit (Max SendQ exceeded) |
22:30:04 | * | bjz joined #nim |
22:36:38 | * | bjz quit (Ping timeout: 264 seconds) |
22:36:43 | * | vlad1777d__ joined #nim |
22:39:20 | * | vlad1777d_ quit (Ping timeout: 250 seconds) |
23:13:24 | * | Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
23:34:02 | * | vlad1777d_ joined #nim |
23:35:29 | * | vlad1777d__ quit (Ping timeout: 258 seconds) |
23:43:50 | * | pregressive quit (Remote host closed the connection) |
23:44:22 | * | pregressive joined #nim |
23:47:21 | * | Matthias247 quit (Read error: Connection reset by peer) |
23:48:54 | * | chemist69 quit (Ping timeout: 258 seconds) |
23:49:08 | * | pregressive quit (Ping timeout: 265 seconds) |