1"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[2617],{99418:(s,e,l)=>{l.r(e),l.d(e,{assets:()=>o,contentTitle:()=>c,default:()=>h,frontMatter:()=>a,metadata:()=>i,toc:()=>d});var i=l(54459),n=l(13274),r=l(98703);const a={},c="weekly 2024-03-25",o={authorsImageUrls:[]},d=[{value:"Build System Updates",id:"build-system-updates",level:2},{value:"MoonBit Update",id:"moonbit-update",level:2},{value:"IDE Update",id:"ide-update",level:2}];function t(s){const e={code:"code",h2:"h2",img:"img",li:"li",ol:"ol",p:"p",pre:"pre",span:"span",...(0,r.R)(),...s.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(e.h2,{id:"build-system-updates",children:"Build System Updates"}),"\n",(0,n.jsxs)(e.ol,{children:["\n",(0,n.jsxs)(e.li,{children:["Added support for expect testing.\na. Use ",(0,n.jsx)(e.code,{children:"moon new"})," to create a new MoonBit project.\nb. Write in ",(0,n.jsx)(e.code,{children:"lib/hello.mbt"}),":"]}),"\n"]}),"\n",(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(e.pre,{className:"shiki shiki-themes one-light one-dark-pro",style:{backgroundColor:"#FAFAFA","--shiki-dark-bg":"#282c34",color:"#383A42","--shiki-dark":"#abb2bf"},tabIndex:"0",children:(0,n.jsxs)(e.code,{children:[(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"#A626A4","--shiki-dark":"#C678DD"},children:"pub"}),(0,n.jsx)(e.span,{style:{color:"#A626A4","--shiki-dark":"#C678DD"},children:" fn"}),(0,n.jsx)(e.span,{style:{color:"#4078F2","--shiki-dark":"#61AFEF"},children:" hello"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:"() "}),(0,n.jsx)(e.span,{style:{color:"#A626A4","--shiki-dark":"#C678DD"},children:"->"}),(0,n.jsx)(e.span,{style:{color:"#C18401","--shiki-dark":"#E5C07B"},children:" String"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:" {"})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"#50A14F","--shiki-dark":"#98C379"},children:' "Hello, world!"'})}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:"}"})}),"\n",(0,n.jsx)(e.span,{className:"line"}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"#A626A4","--shiki-dark":"#C678DD"},children:"test"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:" {"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"#A626A4","--shiki-dark":"#C678DD"},children:" let"}),(0,n.jsx)(e.span,{style:{color:"#E45649","--shiki-dark":"#E06C75"},children:" buf"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#56B6C2"},children:" ="}),(0,n.jsx)(e.span,{style:{color:"#C18401","--shiki-dark":"#E5C07B"},children:" Buffer"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:"::"}),(0,n.jsx)(e.span,{style:{color:"#4078F2","--shiki-dark":"#61AFEF"},children:"make"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:"("}),(0,n.jsx)(e.span,{style:{color:"#986801","--shiki-dark":"#D19A66"},children:"10"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:")"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"#E45649","--shiki-dark":"#E06C75"},children:" buf"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:"."}),(0,n.jsx)(e.span,{style:{color:"#4078F2","--shiki-dark":"#61AFEF"},children:"write_string"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:"("}),(0,n.jsx)(e.span,{style:{color:"#4078F2","--shiki-dark":"#61AFEF"},children:"hello"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:"())"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"#E45649","--shiki-dark":"#E06C75"},children:" buf"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:"."}),(0,n.jsx)(e.span,{style:{color:"#4078F2","--shiki-dark":"#61AFEF"},children:"expect"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"}
1,children:"()?"})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:"}"})}),"\n",(0,n.jsx)(e.span,{className:"line"})]})})}),"\n",(0,n.jsxs)(e.p,{children:["c. Then run ",(0,n.jsx)(e.code,{children:"moon test --update"})," or ",(0,n.jsx)(e.code,{children:"moon test -u"}),":"]}),"\n",(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(e.pre,{className:"shiki shiki-themes one-light one-dark-pro",style:{backgroundColor:"#FAFAFA","--shiki-dark-bg":"#282c34",color:"#383A42","--shiki-dark":"#abb2bf"},tabIndex:"0",children:(0,n.jsxs)(e.code,{children:[(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"#4078F2","--shiki-dark":"#61AFEF"},children:"$"}),(0,n.jsx)(e.span,{style:{color:"#50A14F","--shiki-dark":"#98C379"},children:" moon"}),(0,n.jsx)(e.span,{style:{color:"#50A14F","--shiki-dark":"#98C379"},children:" test"}),(0,n.jsx)(e.span,{style:{color:"#986801","--shiki-dark":"#D19A66"},children:" --update"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"#4078F2","--shiki-dark":"#61AFEF"},children:"expect"}),(0,n.jsx)(e.span,{style:{color:"#50A14F","--shiki-dark":"#98C379"},children:" test"}),(0,n.jsx)(e.span,{style:{color:"#50A14F","--shiki-dark":"#98C379"},children:" failed"}),(0,n.jsx)(e.span,{style:{color:"#50A14F","--shiki-dark":"#98C379"},children:" at"}),(0,n.jsx)(e.span,{style:{color:"#50A14F","--shiki-dark":"#98C379"},children:" lib/hello.mbt:8:3-8:15"})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"#4078F2","--shiki-dark":"#61AFEF"},children:"Diff:"})}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"#4078F2","--shiki-dark":"#61AFEF"},children:"----"})}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"#4078F2","--shiki-dark":"#61AFEF"},children:"Hello,"}),(0,n.jsx)(e.span,{style:{color:"#50A14F","--shiki-dark":"#98C379"},children:" world!"})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"#4078F2","--shiki-dark":"#61AFEF"},children:"----"})}),"\n",(0,n.jsx)(e.span,{className:"line"}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"#4078F2","--shiki-dark":"#61AFEF"},children:"Total"}),(0,n.jsx)(e.span,{style:{color:"#50A14F","--shiki-dark":"#98C379"},children:" tests:"}),(0,n.jsx)(e.span,{style:{color:"#50A14F","--shiki-dark":"#98C379"},children:" 1,"}),(0,n.jsx)(e.span,{style:{color:"#50A14F","--shiki-dark":"#98C379"},children:" passed:"}),(0,n.jsx)(e.span,{style:{color:"#50A14F","--shiki-dark":"#98C379"},children:" 0,"}),(0,n.jsx)(e.span,{style:{color:"#50A14F","--shiki-dark":"#98C379"},children:" failed:"}),(0,n.jsx)(e.span,{style:{color:"#50A14F","--shiki-dark":"#98C379"},children:" 1."})]}),"\n",(0,n.jsx)(e.span,{className:"line"}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"#4078F2","--shiki-dark":"#61AFEF"},children:"Auto"}),(0,n.jsx)(e.span,{style:{color:"#50A14F","--shiki-dark":"#98C379"},children:" updating"}),(0,n.jsx)(e.span,{style:{color:"#50A14F","--shiki-dark":"#98C379"},children:" expect"}),(0,n.jsx)(e.span,{style:{color:"#50A14F","--shiki-dark":"#98C379"},children:" tests"}),(0,n.jsx)(e.span,{style:{color:"#50A14F","--shiki-dark":"#98C379"},children:" and"}),(0,n.jsx)(e.span,{style:{color:"#50A14F","--shiki-dark":"#98C379"},children:" retesting"}),(0,n.jsx)(e.span,{style:{color:"#50A14F","--shiki-dark":"#98C379"},children:" ..."})]}),"\n",(0,n.jsx)(e.span,{className:"line"}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"#4078F2","--shiki-dark":"#61AFEF"},children:"Total"}),(0,n.jsx)(e.span,{style:{color:"#50A14F","--shiki-dark":"#98C379"},children:" tests:"}),(0,n.jsx)(e.span,{style:{color:"#50A14F","--shiki-dark":"#98C379"},children:" 1,"}),(0,n.jsx)(e.span,{style:{color:"#50A14F","--shiki-dark":"#98C379"},children:" passed:"}),(0,n.jsx)(e.span,{style:{color:"#50A14F","--shiki-dark":"#98C379"},children:" 1,"}),(0,n.jsx)(e.span,{style:{color:"#50A14F","--shiki-dark":"#98C379"},children:" failed:"}),(0,n.jsx)(e.span,{style:{color:"#50A14F","--shiki-dark":"#98C379"},children:" 0."})]}),"\n",(0,n.jsx)(e.span,{className:"line"})]})})}
1),"\n",(0,n.jsxs)(e.p,{children:["d. Reopen the ",(0,n.jsx)(e.code,{children:"lib/hello.mbt"})," file, and you can see that the test result has been promoted to the source code."]}),"\n",(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(e.pre,{className:"shiki shiki-themes one-light one-dark-pro",style:{backgroundColor:"#FAFAFA","--shiki-dark-bg":"#282c34",color:"#383A42","--shiki-dark":"#abb2bf"},tabIndex:"0",children:(0,n.jsxs)(e.code,{children:[(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"#A626A4","--shiki-dark":"#C678DD"},children:"pub"}),(0,n.jsx)(e.span,{style:{color:"#A626A4","--shiki-dark":"#C678DD"},children:" fn"}),(0,n.jsx)(e.span,{style:{color:"#4078F2","--shiki-dark":"#61AFEF"},children:" hello"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:"() "}),(0,n.jsx)(e.span,{style:{color:"#A626A4","--shiki-dark":"#C678DD"},children:"->"}),(0,n.jsx)(e.span,{style:{color:"#C18401","--shiki-dark":"#E5C07B"},children:" String"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:" {"})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"#50A14F","--shiki-dark":"#98C379"},children:' "Hello, world!"'})}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:"}"})}),"\n",(0,n.jsx)(e.span,{className:"line"}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"#A626A4","--shiki-dark":"#C678DD"},children:"test"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:" {"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"#A626A4","--shiki-dark":"#C678DD"},children:" let"}),(0,n.jsx)(e.span,{style:{color:"#E45649","--shiki-dark":"#E06C75"},children:" buf"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#56B6C2"},children:" ="}),(0,n.jsx)(e.span,{style:{color:"#C18401","--shiki-dark":"#E5C07B"},children:" Buffer"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:"::"}),(0,n.jsx)(e.span,{style:{color:"#4078F2","--shiki-dark":"#61AFEF"},children:"make"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:"("}),(0,n.jsx)(e.span,{style:{color:"#986801","--shiki-dark":"#D19A66"},children:"10"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:")"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"#E45649","--shiki-dark":"#E06C75"},children:" buf"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:"."}),(0,n.jsx)(e.span,{style:{color:"#4078F2","--shiki-dark":"#61AFEF"},children:"write_string"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:"("}),(0,n.jsx)(e.span,{style:{color:"#4078F2","--shiki-dark":"#61AFEF"},children:"hello"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:"())"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"#E45649","--shiki-dark":"#E06C75"},children:" buf"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:"."}),(0,n.jsx)(e.span,{style:{color:"#4078F2","--shiki-dark":"#61AFEF"},children:"expect"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:"(~"}),(0,n.jsx)(e.span,{style:{color:"#E45649","--shiki-dark":"#E06C75"},children:"content"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#56B6C2"},children:"="}),(0,n.jsx)(e.span,{style:{color:"#50A14F","--shiki-dark":"#98C379"},children:'"Hello, world!"'}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:")?"})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"#A0A1A7",fontStyle:"italic","--shiki-dark":"#7F848E","--shiki-dark-font-style":"italic"},children:" // ^~~~~~~~~~~~~~~~~~~~~~~~ Test result updated"})}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:"}"})}),"\n",(0,n.jsx)(e.span,{className:"line"})]})})}),"\n",(0,n.jsxs)(e.ol,{children:["\n",(0,n.jsxs)(e.li,{children:[(0,n.jsx)(e.code,{children:"moon run"})," no longer supports the ",(0,n.jsx)(e.code,{children:"output-wat"})," option."]}),"\n"]}),"\n",(0,n.jsx)(e.h2,{id:"moonbit-update",children:"MoonBit Update"}),"\n",(0,n.jsxs)(e.ol,{children:["\n",(0,n.jsxs)(e.li,{children:["\n",(0,n.jsx)(e.p,{children:"Supported the backend code generation for multi-argument constructors. Now, when constructing a value of a generic type, if the generic parameter is a tuple, parentheses must be used to first explicitly construct a tuple, as in:"}),"\n",(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(e.pre,{className:"shiki shiki-themes one-light one-dark-pro",style:{backgroundColor:"#FAFAFA","--shiki-dark-bg":"#282c34",color:"#383A42","--shiki-dark":"#abb2bf"},tabIndex:"0",children:(0,n.jsxs)(e.code,{children:[(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"#A626A4","--shiki-dark":"#C678DD"},children:"enum"}),(0,n.jsx)(e.span,{style:{color:"#C18401","--shiki-dark":"#E5C07B"},children:" A"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:"["}),(0,n.jsx)(e.span,{style:{color:"#C18401","--shiki-dark":"#E5C07B"},children:"X"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:"] {"})]}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"#C18401","--shiki-dark":"#E5C07B"},children:" A"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:"("}),(0,n.jsx)(e.span,{style:{color:"#C18401","--shiki-dark":"#E5C07B"},children:"X"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:")"})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:"}"})}),"\n",(0,n.jsx)(e.span,{className:"line"}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"#A626A4","--shiki-dark":"#C678DD"},children:"fn"}),(0,n.jsx)(e.span,{style:{color:"#4078F2","--shiki-dark":"#61AFEF"},children:" init"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:" {"})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"#A0A1A7",fontStyle:"italic","--shiki-dark":"#7F848E","--shiki-dark-font-style":"italic"},children:" // Error, expecting 1 arg, getting 2"})}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"#C18401","--shiki-dark":"#E5C07B"},children:" A"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:"::"}),(0,n.jsx)(e.span,{style:{color:"#C18401","--shiki-dark":"#E5C07B"},children:"A"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:"("}),(0,n.jsx)(e.span,{style:{color:"#986801","--shiki-dark":"#D19A66"},children:"1"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:", "}),(0,n.jsx)(e.span,{style:{color:"#986801","--shiki-dark":"#D19A66"},children:"2"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:") |> "}),(0,n.jsx)(e.span,{style:{color:"#E45649","--shiki-dark":"#E06C75"},children:"ignore"})]}),"\n",(0,n.jsx)(e.span,{className:"line"}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"#A0A1A7",fontStyle:"italic","--shiki-dark":"#7F848E","--shiki-dark-font-style":"italic"},children:" // Ok"})}),"\n",(0,n.jsxs)(e.span,{className:"line",children:[(0,n.jsx)(e.span,{style:{color:"#C18401","--shiki-dark":"#E5C07B"},children:" A"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:"::"}),(0,n.jsx)(e.span,{style:{color:"#C18401","--shiki-dark":"#E5C07B"},children:"A"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:"(("}),(0,n.jsx)(e.span,{style:{color:"#986801","--shiki-dark":"#D19A66"},children:"1"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:", "}),(0,n.jsx)(e.span,{style:{color:"#986801","--shiki-dark":"#D19A66"},children:"2"}),(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:")) |> "}),(0,n.jsx)(e.span,{style:{color:"#E45649","--shiki-dark":"#E06C75"},children:"ignore"})]}),"\n",(0,n.jsx)(e.span,{className:"line",children:(0,n.jsx)(e.span,{style:{color:"#383A42","--shiki-dark":"#ABB2BF"},children:"}"})}),"\n",(0,n.jsx)(e.span,{className:"line"})]})})}),"\n",(0,n.jsx)(e.p,{children:"Multi-argument constructors unbox the parameters, which can improve the performance of the generated code and also allow programmers to have more control over the data's memory layout."}),"\n"]}),"\n",(0,n.jsxs)(e.li,{children:["\n",(0,n.jsxs)(e.p,{children:["Adjusted the ",(0,n.jsx)(e.code,{children:"lsl"}),", ",(0,n.jsx)(e.code,{children:"lsr"}),", ",(0,n.jsx)(e.code,{children:"asr"})," methods of ",(0,n.jsx)(e.code,{children:"Int64"}),", now the shift parameter is no longer ",(0,n.jsx)(e.code,{children:"Int64"}),", but ",(0,n.jsx)(e.code,{children:"Int"}),". Also adjusted the ",(0,n.jsx)(e.code,{children:"clz"}),", ",(0,n.jsx)(e.code,{children:"ctz"}),", ",(0,n.jsx)(e.code,{children:"popcnt"})," methods, now their return type is no longer ",(0,n.jsx)(e.code,{children:"Int64"}),", but ",(0,n.jsx)(e.code,{children:"Int"}),". This change helps us generate more efficient code on platforms that do not support native ",(0,n.jsx)(e.code,{children:"Int64"}),"."]}),"\n"]}),"\n"]}),"\n",(0,n.jsx)(e.h2,{id:"ide-update",children:"IDE Update"}),"\n",(0,n.jsxs)(e.ol,{children:["\n",(0,n.jsx)(e.li,{children:"Supported renaming of labeled arguments."}),"\n",(0,n.jsx)(e.li,{children:"The MoonBit VSCode plugin provides support for automatically installing or upgrading the MoonBit toolchain."}),"\n"]}),"\n",(0,n.jsx)(e.p,{children:"a. First, updating the plugin. If Moon is not installed or outdated, a notification will pop up to you to install or upgrade your MoonBit toolchain."}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsx)(e.img,{alt:"Untitled",src:l(14848).A+"",width:"908",height:"264"})}),"\n",(0,n.jsx)(e.p,{children:'b. Click "yes" to start the automatic installation task. When the task is completed, your MoonBit toolchain will be installed or upgraded to the latested version.'}),"\n",(0,n.jsx)(e.p,{children:(0,n.jsx)(e.img,{alt:"Untitled",src:l(61041).A+"",width:"1280",height:"591"})})]})}function h(s={}){const{wrapper:e}={...(0,r.R)(),...s.components};return e?(0,n.jsx)(e,{...s,children:(0,n.jsx)(t,{...s})}):t(s)}},61041:(s,e,l)=>{l.d(e,{A:()=>i});const i=l.p+"assets/images/Untitled 1-5a5ea1db15c403a46e4845cb72f6f30a.png"},14848:(s,e,l)=>{l.d(e,{A:()=>i});const i=l.p+"assets/images/Untitled-274e7d1890f15e338243d419813bd428.png"},98703:(s,e,l)=>{l.d(e,{R:()=>a,x:()=>c});var i=l(79474);const n={},r=i.createContext(n);function a(s){const e=i.useContext(r);return i.useMemo((function(){return"function"==typeof s?s(e):{...e,...s}}),[e,s])}function c(s){let e;return e=s.disableParentContext?"function"==typeof s.components?s.components(n):s.components||n:a(s.components),i.createElement(r.Provider,{value:e},s.children)}},54459:s=>{s.exports=JSON.parse('{"permalink":"/updates/2024/03/25/weekly-03-25","source":"@site/updates/2024-03-25-weekly-03-25/index.md","title":"weekly 2024-03-25","description":"Build System Updates","date":"2024-03-25T00:00:00.000Z","tags":[],"readingTime":1.83,"hasTruncateMarker":false,"authors":[],"frontMatter":{},"unlisted":false,"prevItem":{"title":"weekly 2024-04-01","permalink":"/updates/2024/04/01/weekly-04-01"},"nextItem":{"title":"weekly 2024-03-18","permalink":"/updates/2024/03/18/weekly-03-18"}}')}
1}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.