[#110568] [Ruby master Misc#19096] [Question] Time with `-00:00` offset is in UTC — "andrykonchin (Andrew Konchin)" <noreply@...>

SXNzdWUgIzE5MDk2IGhhcyBiZWVuIHJlcG9ydGVkIGJ5IGFuZHJ5a29uY2hpbiAoQW5kcmV3IEtv

10 messages 2022/11/01

[#110578] [Ruby master Feature#19099] Support `private_constant` for an undefined constant — "ujihisa (Tatsuhiro Ujihisa)" <noreply@...>

SXNzdWUgIzE5MDk5IGhhcyBiZWVuIHJlcG9ydGVkIGJ5IHVqaWhpc2EgKFRhdHN1aGlybyBVamlo

7 messages 2022/11/02

[#110621] [Ruby master Feature#19104] Introduce the cache-based optimization for Regexp matching — "make_now_just (Kitsune TSUYUSATO)" <noreply@...>

SXNzdWUgIzE5MTA0IGhhcyBiZWVuIHJlcG9ydGVkIGJ5IG1ha2Vfbm93X2p1c3QgKEtpdHN1bmUg

8 messages 2022/11/05

[#110636] [Ruby master Bug#19108] Format routines like pack blindly treat a string as ASCII-encoded — "chrisseaton (Chris Seaton)" <noreply@...>

SXNzdWUgIzE5MTA4IGhhcyBiZWVuIHJlcG9ydGVkIGJ5IGNocmlzc2VhdG9uIChDaHJpcyBTZWF0

8 messages 2022/11/07

[#110663] [Ruby master Bug#19113] Inconsistency in retention of compare_by_identity flag in Hash methods — "jeremyevans0 (Jeremy Evans)" <noreply@...>

SXNzdWUgIzE5MTEzIGhhcyBiZWVuIHJlcG9ydGVkIGJ5IGplcmVteWV2YW5zMCAoSmVyZW15IEV2

10 messages 2022/11/09

[#110670] [Ruby master Bug#19115] OpenSSL fails to autoload (macOS) — "thomthom (Thomas Thomassen)" <noreply@...>

SXNzdWUgIzE5MTE1IGhhcyBiZWVuIHJlcG9ydGVkIGJ5IHRob210aG9tIChUaG9tYXMgVGhvbWFz

10 messages 2022/11/09

[#110683] [Ruby master Feature#19117] Include the method owner in backtraces, not just the method name — "byroot (Jean Boussier)" <noreply@...>

SXNzdWUgIzE5MTE3IGhhcyBiZWVuIHJlcG9ydGVkIGJ5IGJ5cm9vdCAoSmVhbiBCb3Vzc2llciku

53 messages 2022/11/10

[#110689] [Ruby master Bug#19119] Add an interface for out-of-process profiling tools to access Ruby information — "kjtsanaktsidis (KJ Tsanaktsidis)" <noreply@...>

SXNzdWUgIzE5MTE5IGhhcyBiZWVuIHJlcG9ydGVkIGJ5IGtqdHNhbmFrdHNpZGlzIChLSiBUc2Fu

7 messages 2022/11/10

[#110708] [Ruby master Misc#19122] Use MADV_DONTNEED instead of MADV_FREE when freeing a Fiber's stack — "smcgivern (Sean McGivern)" <noreply@...>

SXNzdWUgIzE5MTIyIGhhcyBiZWVuIHJlcG9ydGVkIGJ5IHNtY2dpdmVybiAoU2VhbiBNY0dpdmVy

8 messages 2022/11/11

[#110737] [Ruby master Bug#19130] MRI failing when executing shell builtins with Errno::ENOENT — "ifiht (Mikal R)" <noreply@...>

SXNzdWUgIzE5MTMwIGhhcyBiZWVuIHJlcG9ydGVkIGJ5IGlmaWh0IChNaWthbCBSKS4NCg0KLS0t

9 messages 2022/11/14

[#110843] [Ruby master Feature#19141] Add thread-owned Monitor to protect thread-local resources — "wildmaples (Maple Ong)" <noreply@...>

SXNzdWUgIzE5MTQxIGhhcyBiZWVuIHJlcG9ydGVkIGJ5IHdpbGRtYXBsZXMgKE1hcGxlIE9uZyku

10 messages 2022/11/21

[#110870] [Ruby master Bug#19144] Ruby should set AI_V4MAPPED | AI_ADDRCONFIG getaddrinfo flags by default — "kjtsanaktsidis (KJ Tsanaktsidis)" <noreply@...>

SXNzdWUgIzE5MTQ0IGhhcyBiZWVuIHJlcG9ydGVkIGJ5IGtqdHNhbmFrdHNpZGlzIChLSiBUc2Fu

7 messages 2022/11/24

[#110876] [Ruby master Bug#19147] `TestFileExhaustive#test_expand_path_for_existent_username` and `TestDir#test_home` fails on i686 — "vo.x (Vit Ondruch)" <noreply@...>

SXNzdWUgIzE5MTQ3IGhhcyBiZWVuIHJlcG9ydGVkIGJ5IHZvLnggKFZpdCBPbmRydWNoKS4KCi0t

6 messages 2022/11/24

[#111027] [Ruby master Bug#19154] Specify require and autoload guarantees in ractors — "fxn (Xavier Noria)" <noreply@...>

Issue #19154 has been reported by fxn (Xavier Noria).

14 messages 2022/11/26

[#111036] [Ruby master Bug#19156] ObjectSpace.dump_all segfault during string inspection — mk <noreply@...>

Issue #19156 has been reported by mk (Matthias K=E4ppler).

25 messages 2022/11/28

[#111053] [Ruby master Bug#19158] Ruby 3.1.3 installs wrong gemspec for debug gem — deivid <noreply@...>

Issue #19158 has been reported by deivid (David Rodr=EDguez).

10 messages 2022/11/29

[#111075] [Ruby master Bug#19161] Cannot compile 3.0.5 or 3.1.3 on Red Hat 7 — "werebus (Matt Moretti)" <noreply@...>

SXNzdWUgIzE5MTYxIGhhcyBiZWVuIHJlcG9ydGVkIGJ5IHdlcmVidXMgKE1hdHQgTW9yZXR0aSku

15 messages 2022/11/29

[ruby-core:111050] [Ruby master Feature#12848] Crazy idea: Allow regex definition for methods (Do not take it seriously please)

From: "byroot (Jean Boussier)" <noreply@...>
Date: 2022-11-29 09:59:22 UTC
List: ruby-core #111050
Issue #12848 has been updated by byroot (Jean Boussier).

Status changed from Open to Rejected

Given the feature request I think we can just close it.

----------------------------------------
Feature #12848: Crazy idea: Allow regex definition for methods (Do not take it seriously please)
https://bugs.ruby-lang.org/issues/12848#change-100312

* Author: shevegen (Robert A. Heiler)
* Status: Rejected
* Priority: Normal
----------------------------------------
Me again, sorry - only crazy ideas coming about as of late here.

### Crazy idea: Allow regex definition for methods

I should wait until first april. :)

But anyway.

Consider this:

```ruby
def foo_bar
  puts 'hi there!'
end; alias foobar foo_bar
```

Ok now we can call this either as:

```ruby
foo_bar()
foobar()
foo_bar
foobar
```

All things work!

Here I was wondering ... what if I can omit the alias part?

Tada! Enter regex-defined methods as idea!

```ruby
def foo_?bar
  puts 'hi there!'
end
```

Now the above works too, without any alias. Yay!

I assume that this may not be possible perhaps syntax-wise - and
perhaps if it WOULD be possible, it should not be done anyway.

# It actually makes things harder to read, so I am also against this idea, too.

But!

It had to be published. :)

I think I remember once a collection of evil code in a file called
evil.rb. If I remember correctly, it may have been championed by
flori ... something. I even forgot the name. But it was pretty
fun. I don't remember if we could have shapechanging object but
I like the idea in itself (if we had that? I think you could
someone change the parent class ... somehow. Actually, this may
not be totally useless, I still think it may be a nice idea to
have things like a generic Button.new interface that gets
translated properly into the different GUI toolsets and also
for www code ... unify all the things!)

Things like that with evil.rb are sorta fun - experiment with evil
ideas that you should not use. There could be a whole type system
added in it as well! Mandatory type system - things that make you
unhappy when you use them. Since it is MANDATORY haha! :D

And then, on top of that, a ruby-to-crystal compiler just for the fun
of it (well, you write in ruby... and then just let it compile into
some binary via crystal ... without having to write crystal on your
own ... then you'd have the best of both worlds. Crystal feels heavier
on my brain than ruby but if it gives me faster binaries OR if I
can distribute code as a drop-out-exe for friends to use, this
would be good! My friends tend to be noobs so making things as
simple as possible is good. Also, I am much more a  crystal noob
than a ruby noob though I am also a ruby noob too. So the crystal
idea, well, actually - would be nice if ruby itself would have
that too. Like scripting languages that can be compiled! And
run like on something like JVM just not needing java haha.)

It's Caturday sorta, don't mind me.

So actually, I think my second idea would be to have something
like evil.rb again, in stdlib/core or so. We have some `GOTO`
stuff too somewhere (I don't remember where ... it is probably
too evil to google for it... but I did ... the variable
`SUPPORT_JOKE`. We could also `SUPPORT_EVIL` yes! Or perhaps
`SUPPORT_FUN` or something like that.)

I don't remember if evil.rb was really used a lot by anyone
else, but perhaps it would be fun to toy with crazy evil
features - and you can not rely on them being made available
either, they may disappear or re-appear!

Anyway, don't take any of this too seriously please.



-- 
https://bugs.ruby-lang.org/
 ______________________________________________
 ruby-core mailing list -- ruby-core@ml.ruby-lang.org
 To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org
 ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/

In This Thread

Prev Next