목록programming (70)
관심있는 것들 정리
package main import ( "fmt" "sync" ) func main() { var wg sync.WaitGroup for i := 1; i
concurreny 제어를 위한 waitgroup // test.go package main import ( "fmt" "sync" ) func main() { var data int var wg sync.WaitGroup wg.Add(1) go func() { defer wg.Done() data++ }() wg.Wait() fmt.Printf("the value is %v\n", data) }
Linux 상에서 응용 어플리케이션에서(root 권한 필요), rtnetlink를 이용, ECMP table 설정을 위한 자료를 구글링하다 찾은 자료를 리스트업해둠... man7.org/linux/man-pages/man7/rtnetlink.7.html rtnetlink(7) - Linux manual page rtnetlink(7) — Linux manual page RTNETLINK(7) Linux Programmer's Manual RTNETLINK(7) NAME top rtnetlink - Linux IPv4 routing socket SYNOPSIS top #include #include #include #include rtnetlink_socket = socket(AF_NETLINK, int ..
한동안 Ruby로 script 짤 일이 없어서 잊고 있었는데, 작년 크리스마스에 Ruby 3.0이 발표됐었다... www.ruby-lang.org/en/news/2020/12/25/ruby-3-0-0-released/ Ruby 3.0.0 Released Posted by naruse on 25 Dec 2020 We are pleased to announce the release of Ruby 3.0.0. From 2015 we developed hard toward Ruby 3, whose goal is performance, concurrency, and Typing. Especially about performance, Matz stated “Ruby3 will be 3 times faster t w..
2020년 12월 release된 g60 spec에 redirection 기능이 추가됨 기존에는 redirection 관련하여 NRF 간 통신에만 redirection code handling이 있었으나, 이제는 NFRegister, NFDeregister, NFStatusSubscribe 등 일반 메시지에도 307 redirection이 추가되었다 redirection 관련하여 참조할만한 페이지 Understanding HTTP 307 Temporary Redirect Status Code in Depth (kinsta.com) Understanding HTTP 307 Temporary Redirect Status Code in Depth Learn all about HTTP 307 Temporary ..
https://www.ruby-lang.org/en/news/2019/12/25/ruby-2-7-0-released/ Ruby 2.7.0 Released Posted by naruse on 25 Dec 2019 We are pleased to announce the release of Ruby 2.7.0. It introduces a number of new features and performance improvements, most notably: Pattern Matching REPL improvement Compaction GC Separation of positional and keyword ar www.ruby-lang.org Python을 계속해서 써 오다가, 들여쓰기 때문에 도저히 이건 아..
c++ 용 shared pointer http://sweeper.egloos.com/m/2826435 http://heurinbada.tistory.com/m/118
C, C++, Java i = 100; while(i > 0) { i--; } 또는 i = 100; do { printf("Hello world\n"); i--; } while (i > 0); Python i=0 while true: i = i + 1; if i == 0: break else: pass Ruby i = 0 while i 0 또는 2.times do puts "hello" end 또는 languages = %w(Perl Python Ruby Samll..