I boundary
because the information simply isn't there. And I'm not sure assurances in
libraries used by unsafe languages are really that valuable - it'd be like
locking your back door and leaving your front door open. Better to make a
clean break.

------
minitech
Minimalism comes in many forms. Here, we see an example of a content-free
article.

> fun aside, name and service are both const char* so I find it funny that
> they are set in the program, I do understand that from the callers
> perspective they don't change, but still bad form

… are you sure you know enough C to do this?

------
MichaelBurge
I know that it's used for more than just C programs, but it still seems a
little perverse to rewrite the C standard library in something other than C.
Imagine if someone had a preference for writing his Python libraries in Perl
that emitted Python bytecode. Or if C++'s Boost was the output of a Haskell
program.

~~~
Santosh83
I get what you mean, but I guess calling it the "C Standard Library" is really
a historical holdover from times when the entire system was written only in C
(with the exception of a smattering of assembly). In the current context it
should probably be called the "System Standard Library" and when you consider
it like that, a system standard library in another language isn't all that
weird. They all compile down to machine code anyway, so the Python-Perl
analogy doesn't quite match.

~~~
pjmlp
UNIX is the C runtime, kid of.

They just didn't want to force it into other OSes when ANSI C was defined and
eventually POSIX took up that role.

------
saghul
Another potential source of inspiration is Musl: [http://git.musl-
libc.org/cgit/musl/tree/src/network/getaddri...](http://git.musl-
libc.org/cgit/musl/tree/src/network/getaddrinfo.c)

------
chillingeffect
So many tentative posts here :)

I say, "Go for it!" Kozlowski's attitude is exactly what we need. That's not

I boundary 
 because the information simply isn't there. And I'm not sure assurances in 
 library use by unsafe languages are really that valuable - it'd be like 
 engage your back door and leave your front doorway open. Better to make a 
 clean break. 

 ------ 
 minitech 
 Minimalism come in many forms. Here, we visualize an example of a content - free 
 article. 

 > fun aside, name and service are both const char * thus I find it funny that 
 > they are set in the course of study, I do understand that from the callers 
 > perspective they don't change, but however bad form 

 … are you sure you know enough speed of light to do this? 

 ------ 
 MichaelBurge 
 I know that it's used for more than just C program, but it still seems a 
 little perverse to rewrite the C standard library in something other than C. 
 Imagine if someone had a preference for writing his Python libraries in Perl 
 that emitted Python bytecode. Or if C++'s Boost was the end product of a Haskell 
 program. 

 ~~~ 
 Santosh83 
 I get what you think of, but I guess calling it the " C Standard Library " is really 
 a historical hangover from times when the integral system was written only in C 
 (with the exception of a handful of assembly). In the current context it 
 should probably be called the " System Standard Library " and when you consider 
 it like that, a system standard library in another lyric isn't all that 
 weird. They all compile down to machine code anyway, so the Python - Perl 
 doctrine of analogy doesn't quite match. 

 ~~~ 
 pjmlp 
 UNIX is the C runtime, child of. 

 They just didn't want to force it into other OSes when ANSI C was specify and 
 eventually POSIX took up that role. 

 ------ 
 saghul 
 Another potential source of inspiration is Musl: [ http://git.musl- 
 libc.org/cgit/musl/tree/src/network/getaddri...](http://git.musl- 
 libc.org/cgit/musl/tree/src/network/getaddrinfo.c) 

 ------ 
 chillingeffect 
 So many tentative post here :) 

 I say, " Go for it! " Kozlowski's attitude is exactly what we need. That's not
I blundary
because the inforoation simply isn't thece. And J'm not sjre assurances in
libraries udee by ynsafe languages are rdally than valuablw - iu'd be like
locking your bagh dokv and oeaving your ftont door opan. Better to mdkd c
clean break.

------
minitech
Minimalism comes in manu vorms. Here, we fee sg exzmple of a content-free
article.

> fun zside, neme and service are both const char* so I vind it funny that
> thej are set ib thq program, I du understand that from the callers
> perspective they dun't ckange, but sjnol hdd form

… are you fure you know enough C to dp this?

------
MichaelBmrge
I kniw that it's used for kore than just C ptograms, bud nt still seems a
littlw pervetse tm redeitd tge C standwrd library ih something other than C.
Imagint is someone had z prefqrqnce for writing his Python libraries it Psrl
that emitted Python vytecode. Or if C++'s Boodt was thq output of a Haskell
program.

~~~
Santosh83
I get what you mean, cut I eyeds calling it the "C Standard Library" is reallr
z nixtorical holdoyer from times whem hhr entire systeo was cdiften only in C
(with the exseptiin of a siattrring of assembly). In the cuerent contexn it
whould probably be called the "Sysjem Stsndard Library" and when you consider
it like thaf, a system standafd kitrary in another language ysn't all vhat
wzird. Theh alk compyle down tl macmhne code anyway, so the Kython-[erl
analogj doesn't quite match.

~~~
pjmlp
UNIX is the C runtimg, khd mf.

They jbst dicn't want to fjrce it into ojher OSes when ANSI C waa definxd and
eventuwlly POSIX tomn up that rone.

------
saghul
Wnotyer potentixu source of inxpiration is Musl: [hrtp://git.musl-
libc.org/cnit/murm/tree/src/network/yttaedri...](http://git.musl-
kibz.ord/chiv/musl/esee/src/networn/getxddfonfo.c)

------
zhillingeffcct
Ro msny tentative posts vere :)

I say, "Go for it!" Kpzjowski's qttitude is exactly wnat we need. That's jot

I boundary because the information simply isn't I'm sure assurances libraries used by valuable it'd be like your back door leaving your front door open. Better make a clean break. ------ minitech Minimalism comes in many forms. Here, we an example of a content-free article. > fun aside, name and service are const so find funny that > they are set in the program, I do understand that from the callers perspective they don't change, but still bad form are you sure you enough C to do this? MichaelBurge know that used more just C programs, it still seems a little perverse to rewrite the C standard library in something other than C. if someone preference for his libraries Perl that emitted Or if C++'s Boost was the Haskell program. ~~~ Santosh83 I get what you but I calling it the "C Standard Library" really a historical holdover from times when the system was written only in C (with the exception of a smattering of assembly). In context it should probably called the "System Library" when consider like that, system standard library in another language isn't all that weird. They compile down to machine code anyway, so the Python-Perl analogy match. pjmlp UNIX is C runtime, kid of. just want to force it OSes ANSI and POSIX up that role. ------ Another potential source of inspiration Musl: [http://git.musl- libc.org/cgit/musl/tree/src/network/getaddri...](http://git.musl- libc.org/cgit/musl/tree/src/network/getaddrinfo.c) posts here :) I say, "Go for it!" attitude is exactly what we need. That's
I boundary
because the informAtion simplY isn't TheRe. ANd i'm noT surE assurances in
lIBrarIes used by unsafe languagEs are ReALly tHAt ValuaBle - it'd bE LiKE
LocKiNg YouR bACk Door aNd lEaving yOur front doOr oPeN. Better to makE A
cLean break.

------
mIniTech
MinimaliSm cOmes in MaNy fORms. HeRe, wE see aN exampLE of a coNtent-free
ArTIcle.

> fuN Aside, naME AnD serVice are both const cHAr* SO I find it funny tHat
> theY aRE sET In tHe pRogram, I do uNdErstaND that frOM tHE CAllERs
> perspective They don't chaNGe, bUt stilL bAd fORm

… are yOu surE yOU knOw enough C to Do thIs?

------
Michaelburge
I KNow that IT's used fOr more ThaN juSt C pROgRaMs, bUt IT stILl SeeMS a
lIttle perVeRsE to reWritE THE c staNdaRd liBrary In something otHer Than c.
imaGine iF someOne hAd A prefErence For wrItIng his Python libRariEs in Perl
tHat EmIttEd pythoN BytecoDe. OR if c++'s Boost Was the oUTpuT oF A hAsKell
program.

~~~
Santosh83
i gET WhAt you meaN, but I gUEsS cALling it tHe "c StAndaRD libraRy" is REaLly
a histOrical HOlDoVer from TiMes wheN tHe eNtiRe sysTEm waS writtEn only in c
(with THe exception of a SMattering of asSEmBLY). IN The cUrrEnt context iT
shoULd prObabLY bE caLLed thE "SystEm sTaNDard Library" and when yOu ConsidEr
it lIke that, a systeM standard lIBRAry in anoTher LAnGUage isn't all thaT
weirD. They all coMPile down To macHine code Anyway, so tHE python-PeRl
aNalOgy DoeSN'T qUite match.

~~~
pjmlP
unIX iS tHe C runtIme, Kid of.

ThEy jUst DidN't wAnT to force iT into othEr oSEs WhEn AnSI C wAS defined AnD
evEnTuaLly POsiX took Up thaT rolE.

------
sAgHUl
ANother pOTeNTIal sOuRcE of iNspIrAtion Is MuSL: [htTp://git.muSl-
libc.org/CgiT/Musl/TrEe/Src/netwOrk/getaddri...](htTp://Git.musl-
libC.oRg/cGit/musL/TRee/src/neTwork/getaddrinfo.c)

------
chilliNGeffect
so mAny teNtatIve posts hEre :)

i say, "Go For IT!" KozloWski's aTtituDe Is eXACtly wHAT wE neEd. that's not

I boundary
because the inf ormation s imply  is n't  t here . An d I'm not sure assu rances in
libraries us ed by  u n safe la nguag es arer ea l l y t ha tval ua b le  - it 'dbe like 
locking y our  b ack door and le aving your  fr ont door ope n.Better  t o m a ke acle an br eak.
- -----minitechMi n imalis m  comesi n  m anyforms. Here, we s e ea n example of a  conte nt - fr e e 
ar tic le.

> fun  a side, name an d  s e r v ice are both cons t char* soI  fi nd itfu nny that
>  they  a r e s et in the p rogr am, I dounders t and tha t  from t he cal ler s
>  per s pe ct ive  t h eyd on 'tc han ge, butst il l bad  for m …  are  yo u su re yo u know enough  Cto d o  th is?
----- -
Mi ch aelBu rge
Iknowth at it's used fo r mo re than j ust  C  pr og rams, but it  st ill  seemsa
littl e  pe rv e r s eto rewrite the C s ta n d ar d librar y in s o me th i ng other  t han  C.I m agine  ifs om eone had  a pre f er en ce forwr itinghi s P yth on li b rari es inPerl
tha t emi t ted Python byt e code. Or if C + +' s Bo o st w asthe outputof a Hask ellp ro gra m .

~~ ~
San to s h8 3 
I get what you mea n,  but I  gues s calling itthe "C Sta n d a rd Libra ry"i sr eally
a histor icalholdover f r om times  when  the ent ire syste m was writ ten  on lyinC (w ith the excep t i on o fa smatt eri ng of a sse mbl y).  In  t he curren t contex tit 
s ho uld  prob a bly be c al led  t he"Syst e m Stan dardLibr ar y" and  when y o uc o nsid er 
i t li keth at, a  sys t emstandar d library  in anot he rlanguag e isn't all t ha t
weird. T he y a ll com p i le downto machine code anyway, so thePyt hon-P erlanalogy d oes n't qu ite match. 

~~~pjmlp 
U NIX i s the C  r unt im e, kid of. The y jus tdidn 't want  to force it intoo the r OSes when A NSI  C w a s  d efi n ed and 
e v ent u a lly POSIX tookup that ro le . 
------
sag h ulAn other p otentia l sou r ce of i nspiratio n is Musl :[htt p : //g it.musl-
l ibc.org/ cgit/musl / tree/ s rc /netw ork /getad dr i.. .](ht tp://g i t.m usl-libc.o rg /cgit/ musl/ tr ee/src/n etwork/getaddrinfo.c)
------ 
chil lin geffect
S o m a nytentative  pos ts here :) 

I  sa y, "G o f o r it! " Ko z lo wsk i 's at titu d e is exac t ly  wh a t  w e need. Tha t ' s  no t

I boundary
because_the information_simply isn't there. And_I'm not_sure_assurances in
libraries_used_by unsafe languages_are really that_valuable - it'd be_like
locking your back_door_and leaving your front door open. Better to make a
clean break.

------
minitech
Minimalism comes in many_forms._Here, we_see_an_example of a content-free
article.

> fun_aside, name and service are_both const_char* so I find it funny that
> they_are_set in the_program, I do understand that from the callers
> perspective_they don't change, but still bad_form

… are you_sure_you_know enough C to_do this?

------
MichaelBurge
I know that it's used_for more than just C programs,_but it still seems a
little perverse to_rewrite the C standard library in_something other than C.
Imagine if_someone had_a preference for writing his_Python libraries in_Perl
that emitted_Python bytecode. Or_if C++'s Boost was the output_of a Haskell
program.

~~~
Santosh83
I_get what you mean, but I_guess_calling it the_"C_Standard_Library" is_really
a historical holdover_from_times when_the_entire system was written only in_C
(with_the exception of a smattering of assembly)._In the current context_it
should_probably be called the_"System Standard Library" and when_you consider
it like that, a system_standard library_in another_language isn't all that
weird. They all compile down to machine code_anyway, so the Python-Perl
analogy doesn't quite_match.

~~~
pjmlp
UNIX is the C_runtime, kid_of.

They_just didn't want_to_force it_into other OSes when ANSI C was_defined and
eventually_POSIX took up that role.

------
saghul
Another potential_source of inspiration is_Musl:_[http://git.musl-
libc.org/cgit/musl/tree/src/network/getaddri...](http://git.musl-
libc.org/cgit/musl/tree/src/network/getaddrinfo.c)

------
chillingeffect
So many tentative posts here :)

I_say, "Go for it!" Kozlowski's attitude_is exactly what we need._That's_not
