Yes I am using windows. Is there a way to help the pasting issue? because it severely limits the usefulness of REPL if you cannot paste directly into it. Including this array in a script hanged for me the first time I tried (was like > 2 minutes). But seems to be working fine when I tested it again separately, so I guess it was because of other parts of my script, not the array.
On Monday, April 13, 2015 at 9:51:54 PM UTC-7, Isaiah wrote: > > Are you using Windows? Pasting into the REPL there is especially bad, but > `include` should work fine (and I just tested it). I also pasted this array > into a putty session to a linux box and it only took a few seconds (due to > putty not Julia, pretty sure it would be instant in a local login). > > I cannot put it in a script and include it, also stuck the session. > > > Can you explain why not? > > On Tue, Apr 14, 2015 at 12:36 AM, Siyi Deng <mr.siy...@gmail.com > <javascript:>> wrote: > >> Hi, my array as follows: >> >> >> b = >> [4.67933552111843e-07,-6.32591924726271e-05,-0.000160070579209537,-0.000332845978767382,-0.000588690359282295, >> >> >> -0.000924685049847179,-0.00131849652730193,-0.00172663844738962,-0.00208786977252048,-0.00233221212288082, >> >> >> -0.00239463249655303,-0.00223084413415438,-0.00183153503523871,-0.00123096220524368,-0.000506656901088092, >> >> >> 0.000231273247512499,0.000860169184825533,0.00127049209181452,0.00139133627405064,0.00120931235016613, >> >> >> 0.000775243960106711,0.000195783532681523,-0.000389333441868186,-0.000839715315002484,-0.00104874482507810, >> >> >> -0.000971082976220408,-0.000635588269858116,-0.000139316676086390,0.000376823211516953,0.000765144786939901, >> >> >> 0.000911381735418337,0.000767069729306576,0.000364716481529794,-0.000189255166775865,-0.000742853249617161, >> >> >> -0.00114090399749477,-0.00126989294326956,-0.00109238473975333,-0.000660599971040823,-0.000104137167563394, >> >> >> 0.000405603863401683,0.000704810151823340,0.000686449793195227,0.000334652310940532,-0.000266860012267053, >> >> >> -0.000955811497614575,-0.00153703335145101,-0.00184017465821164,-0.00177248602611196,-0.00135043224798997, >> >> >> -0.000699772991238628,-2.20952367649259e-05,0.000463080417609062,0.000584671530928735,0.000274639234341784, >> >> >> -0.000406253385432046,-0.00128088558535365,-0.00210457446485342,-0.00263694553018369,-0.00271607763844648, >> >> >> -0.00231211432643654,-0.00154295258453597,-0.000645162310074997,9.30623752723795e-05,0.000418248208810247, >> >> >> 0.000191535169468778,-0.000562773863174475,-0.00165664584627324,-0.00278826438187876,-0.00362966080543623, >> >> >> -0.00392678199601546,-0.00358172954744133,-0.00269079897606094,-0.00152435244151553,-0.000451787547517668, >> >> >> 0.000167885370887781,9.77532529617552e-05,-0.000697522948378624,-0.00203068838350111,-0.00353881580196248, >> >> >> -0.00478700223086237,-0.00539960290566932,-0.00517967374898320,-0.00417899466767010,-0.00269445536778436, >> >> >> -0.00118825003033828,-0.000152730366029521,4.08989266963567e-05,-0.000736069064388297,-0.00231761657719439, >> >> >> -0.00427961363828440,-0.00605844774593019,-0.00711896455145624,-0.00712217721790469,-0.00604060957165538, >> >> >> -0.00418280179774257,-0.00211471511846733,-0.000497104824650714,0.000115009784236061,-0.000549582574749379, >> >> >> -0.00237902012751033,-0.00489297896606703,-0.00737250869105017,-0.00907094519283787,-0.00944469951647819, >> >> >> -0.00833332955737742,-0.00603030886114787,-0.00321654433831640,-0.000769870161381384,0.000497241843209471, >> >> >> 9.42673474216162e-05,-0.00197634699766667,-0.00519165844447014,-0.00864083031861910,-0.0112859793931032, >> >> >> -0.0122777768458734,-0.0112312476909986,-0.00837390013709095,-0.00451267862397702,-0.000818957743044659, >> >> >> 0.00151305882838224,0.00163675539214858,-0.000660398517845471,-0.00484819866174476,-0.00976807860243673, >> >> >> -0.0139500017269034,-0.0160478371765713,-0.0152671906488912,-0.0116534872041850,-0.00614172383099131, >> >> >> -0.000335212041994754,0.00393904297918806,0.00517924921134713,0.00270245065682847,-0.00307207700391787, >> >> >> -0.0106530390555229,-0.0178381403614641,-0.0223253306966040,-0.0224124046400330,-0.0175833758777929, >> >> >> -0.00879634423103870,0.00164096711938262,0.0106118431964252,0.0150317893165007,0.0127790454275655, >> >> >> 0.00345979321865954,-0.0112219144884763,-0.0276295433851027,-0.0409003922756233,-0.0460536030548546, >> >> >> -0.0392442385172429,-0.0188523667724536,0.0138805014852943,0.0548558827557978,0.0977996803069081, >> >> >> 0.135488956158212,0.161253124368556,0.170403259362864,0.161253124368556,0.135488956158212,0.0977996803069081, >> >> >> 0.0548558827557978,0.0138805014852943,-0.0188523667724536,-0.0392442385172429,-0.0460536030548546, >> >> >> -0.0409003922756233,-0.0276295433851027,-0.0112219144884763,0.00345979321865954,0.0127790454275655, >> >> >> 0.0150317893165007,0.0106118431964252,0.00164096711938262,-0.00879634423103870,-0.0175833758777929, >> >> >> -0.0224124046400330,-0.0223253306966040,-0.0178381403614641,-0.0106530390555229,-0.00307207700391787, >> >> >> 0.00270245065682847,0.00517924921134713,0.00393904297918806,-0.000335212041994754,-0.00614172383099131, >> >> >> -0.0116534872041850,-0.0152671906488912,-0.0160478371765713,-0.0139500017269034,-0.00976807860243673, >> >> >> -0.00484819866174476,-0.000660398517845471,0.00163675539214858,0.00151305882838224,-0.000818957743044659, >> >> >> -0.00451267862397702,-0.00837390013709095,-0.0112312476909986,-0.0122777768458734,-0.0112859793931032, >> >> >> -0.00864083031861910,-0.00519165844447014,-0.00197634699766667,9.42673474216162e-05,0.000497241843209471, >> >> >> -0.000769870161381384,-0.00321654433831640,-0.00603030886114787,-0.00833332955737742,-0.00944469951647819, >> >> >> -0.00907094519283787,-0.00737250869105017,-0.00489297896606703,-0.00237902012751033,-0.000549582574749379, >> >> >> 0.000115009784236061,-0.000497104824650714,-0.00211471511846733,-0.00418280179774257,-0.00604060957165538, >> >> >> -0.00712217721790469,-0.00711896455145624,-0.00605844774593019,-0.00427961363828440,-0.00231761657719439, >> >> >> -0.000736069064388297,4.08989266963567e-05,-0.000152730366029521,-0.00118825003033828,-0.00269445536778436, >> >> >> -0.00417899466767010,-0.00517967374898320,-0.00539960290566932,-0.00478700223086237,-0.00353881580196248, >> >> >> -0.00203068838350111,-0.000697522948378624,9.77532529617552e-05,0.000167885370887781,-0.000451787547517668, >> >> >> -0.00152435244151553,-0.00269079897606094,-0.00358172954744133,-0.00392678199601546,-0.00362966080543623, >> >> >> -0.00278826438187876,-0.00165664584627324,-0.000562773863174475,0.000191535169468778,0.000418248208810247, >> >> >> 9.30623752723795e-05,-0.000645162310074997,-0.00154295258453597,-0.00231211432643654,-0.00271607763844648, >> >> >> -0.00263694553018369,-0.00210457446485342,-0.00128088558535365,-0.000406253385432046,0.000274639234341784, >> >> >> 0.000584671530928735,0.000463080417609062,-2.20952367649259e-05,-0.000699772991238628,-0.00135043224798997, >> >> >> -0.00177248602611196,-0.00184017465821164,-0.00153703335145101,-0.000955811497614575,-0.000266860012267053, >> >> >> 0.000334652310940532,0.000686449793195227,0.000704810151823340,0.000405603863401683,-0.000104137167563394, >> >> >> -0.000660599971040823,-0.00109238473975333,-0.00126989294326956,-0.00114090399749477,-0.000742853249617161, >> >> >> -0.000189255166775865,0.000364716481529794,0.000767069729306576,0.000911381735418337,0.000765144786939901, >> >> >> 0.000376823211516953,-0.000139316676086390,-0.000635588269858116,-0.000971082976220408,-0.00104874482507810, >> >> >> -0.000839715315002484,-0.000389333441868186,0.000195783532681523,0.000775243960106711,0.00120931235016613, >> >> >> 0.00139133627405064,0.00127049209181452,0.000860169184825533,0.000231273247512499,-0.000506656901088092, >> >> >> -0.00123096220524368,-0.00183153503523871,-0.00223084413415438,-0.00239463249655303,-0.00233221212288082, >> >> >> -0.00208786977252048,-0.00172663844738962,-0.00131849652730193,-0.000924685049847179,-0.000588690359282295, >> >> >> -0.000332845978767382,-0.000160070579209537,-6.32591924726271e-05,4.67933552111843e-07] >> >> Try copy and paste it in julia REPL. >> I tested with more patience this time, the good news is that julia did >> succeeded with parsing this array. The bad news is that it took about 1.5 >> minutes for julia to do it. >> >> >> >> On Monday, April 13, 2015 at 8:40:01 PM UTC-7, Jacob Quinn wrote: >>> >>> Can you share the script? It's hard to troubleshoot this kind of problem >>> without seeing exactly what you're running. >>> >>> On Mon, Apr 13, 2015 at 9:37 PM, Siyi Deng <mr.siy...@gmail.com> wrote: >>> >>>> No, I'm copy and pasting the array, from a text editor to the REPL, and >>>> it hangs there. >>>> >>>> On Monday, April 13, 2015 at 7:53:29 PM UTC-7, Stefan Karpinski wrote: >>>>> >>>>> It's kind of unclear what you're trying to do. Are you printing an >>>>> array and the repl hangs? >>>>> >>>>> On Mon, Apr 13, 2015 at 10:49 PM, Siyi Deng <mr.siy...@gmail.com> >>>>> wrote: >>>>> >>>>>> Hi, I have a coefficient array which looks like b = >>>>>> [4.67933552111843e-07,-6.32591924726271e-05,-0.000160070579209537, >>>>>> ....], with about 320 elements. The entire array in ascii is about 7000 >>>>>> chars. >>>>>> >>>>>> I cannot paste the array directly in REPL, julia simply stuck. I >>>>>> cannot put it in a script and include it, also stuck the session. >>>>>> >>>>>> Is this a known issue? What shall I do to get my coefficients? >>>>>> >>>>> >>>>> >>> >