Nish, a command line shell

2024-05-30 Thread moigagoo
Great stuff, thanks!

Nish, a command line shell

2024-05-30 Thread thindil
Just a small bump. The new version (0.8.0, still beta) of the shell arrived today. It contains the option to quit from the shell with Ctrl-D too. Better late than never. :)

Hot Code Reloading viability for Jupyter-Notebook like Nim IDE

2024-05-30 Thread Niminem
Thank you for the suggestion as well @cblake. This is quite the homework!

Hot Code Reloading viability for Jupyter-Notebook like Nim IDE

2024-05-30 Thread Niminem
Thank you for the suggestion that makes better sense now

Privilege Escalation with Nim Package Manager - John Hammond

2024-05-30 Thread m4ul3r
Agreed. I played it and thought it was okay. It teaches people to enumerate versions of software on the box and see if there are any vulnerabilities, and to enumerate sudo capabilities. I think it’s always cool to see nim in ctf challenges though, I’ve enjoyed playing a few rev problems in nim.

Privilege Escalation with Nim Package Manager - John Hammond

2024-05-30 Thread PMunch
Yeah, by looking at this it seems like a "perfect storm" kind of scenario built for the CTF. Allowing something like `nimble run` or `nimble install *` to be run as other users isn't a great idea.

Privilege Escalation with Nim Package Manager - John Hammond

2024-05-30 Thread m4ul3r
It’s based off of an old CVE where input wasn’t properly sanitized and has since been mitigated. The takeaway is don’t give nimble SUID perms

Privilege Escalation with Nim Package Manager - John Hammond

2024-05-30 Thread Hobbyman
What is the main take-away?

karax, input: readonly; textarea: set and get cursor position

2024-05-30 Thread geotre
> How do I set the 'readonly' attribute for 'input'? input(readonly=toChecked(readonly)) Run > How do I set and get the position of the cursor in a 'textarea'? You will need to wrap [setSelectionRange](https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/

Cheap exceptions, opinionated error handling

2024-05-30 Thread Araq
> And if it is a return-value, is there still room for additonal info? Sure but this additional information is available via thread local storage. There should be some syntactic sugar for that but it's not yet written down.

Cheap exceptions, opinionated error handling

2024-05-30 Thread Araq
> So, if a person would like to use a library method - proc canOverflow() > {.raises: ErrorCode.} he may assume that any sort of exception, including > that HTTP 404 could be thrown from that proc? 1. HTTP 404 is not a possible value of ErrorCode. The value is called `NameNotFound` and is mor

Cheap exceptions, opinionated error handling

2024-05-30 Thread Hobbyman
I am speaking from a non-technical user-perpective (user but not a developper of Nim) so dont be too harsh on me. When i think about it, the exception raising is an invasive process into the calling program. Future computing maybe should be more polite in terms of respons-request style. (I have

Cheap exceptions, opinionated error handling

2024-05-30 Thread arnetheduck
> I often find myself wishing the nim standard library used results instead of > exceptions (this is extra painful with async code because the stack traces > are a nightmare to understand). fwiw, we've rewritten large parts of stdlib to do exactly this -

Cheap exceptions, opinionated error handling

2024-05-30 Thread Araq
> Is cheap (space) because it uses int instead of struct? It uses a single byte, but yes. > Is cheap (time) because it is passed by register requiring less cpu > hops/cycles? That too, yes. > Translation is cheap because of time, space or verbosity? Because translation is avoided. > We will

Cheap exceptions, opinionated error handling

2024-05-30 Thread mildred
Why not some solution like Go: use cheap exceptions (with ErrorCode) for things like out of memory that are seldom handled usefully but use return codes for errors that should be handled by the programmer (network error, HTTP error status, ...) The problem lies that it's the standard library th

Privilege Escalation with Nim Package Manager - John Hammond

2024-05-30 Thread IgnisTempestas
Came across this earlier: Usual cybersecurity YouTube stuff, doesn't seem like there's anything ground breaking here, though someone here may find it interesting.

Cheap exceptions, opinionated error handling

2024-05-30 Thread Clonk
With this mechanism can we still disallow certain type of exception in proc signature or does this becomes a raises nothing / raise everything scheme ?

Cheap exceptions, opinionated error handling

2024-05-30 Thread alexeypetrushin
It is mentioned that `ErrorCode` covers many different errors, including HTTP statuses, like 404. proc canOverflow() {.raises: ErrorCode.} = echo a + b Run So, if a person reading a library method - `proc canOverflow() {.raises: ErrorCode.}` he may assume that a

Maximizing Your Potential: ZenCortex Practices for Success in 2024

2024-05-30 Thread suemday
ZenCortex :- The complement supports healthy listening to, sharpens intellectual acuity, strengthens memory, reduces infection, enhances blood waft, and increases cognitive features, all whilst making sure basic health. Official website :- Group go

Cheap exceptions, opinionated error handling

2024-05-30 Thread hugosenario
Suggestion to text, `cheap` term is used, but is barely explained why is cheaper. * Is cheap (space) because it uses `int` instead of `struct`? * Is cheap (time) because it is passed by register requiring less cpu hops/cycles? * Translation is cheap because of time, space or verbosity?

Nexalyn Ervaringen Mannelijke verbetering| Verbeter het uithoudingsvermogen| Haal het vandaag nog!

2024-05-30 Thread nexalynervaringen
Waar Nexalyn kopen? Het product is een gezonde mannelijke verbetering die uw lichaam op natuurlijke wijze behandelt en alle problemen in korte tijd tegengaat. Theanex Dit supplement biedt u een aantal veranderingen die uw welzijn verbeteren en u een complete oplossing bieden. Theanex Heeft u b

https://www.facebook.com/Stimula.Blood.Sugar.Support.Official/

2024-05-30 Thread Kushina026
Stimula Blood Sugar Support the surprise of no one, it's ideal to use such upgrades under the course of a clinical benefits provider to ensure prosperity and efficacy.Stimula Blood Sugar Support is a promising improvement for in

Hot Code Reloading viability for Jupyter-Notebook like Nim IDE

2024-05-30 Thread cblake
@Niminem \- I have done the `std/memfiles` thing a lot to avoid "recalculating The World" only because your process exited. >1 value is not hard and you're already close. is really a generic data layer ("like CSV but running off **_live_** mmaps because, once you

Hot Code Reloading viability for Jupyter-Notebook like Nim IDE

2024-05-30 Thread enthus1ast
You could write an object with `system.copyMem` but then you would have an issue with non shallow datatypes (like strings), so i think the best would be to serialize your data first. For example with